Преглед на файлове

HUE-8758 [sqlalchemy] Fix missing self.interpreter in rebase

Romain преди 5 години
родител
ревизия
a058e41cb2
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      desktop/libs/notebook/src/notebook/connectors/sql_alchemy.py

+ 1 - 1
desktop/libs/notebook/src/notebook/connectors/sql_alchemy.py

@@ -205,7 +205,7 @@ class SqlAlchemyApi(Api):
     statement = snippet['statement']
 
     if self.options['url'].startswith('presto://') or \
-        self.interpreter.get('dialect_properties') and interpreter['dialect_properties']['trim_statement_semicolon']:
+        self.interpreter.get('dialect_properties') and self.interpreter['dialect_properties']['trim_statement_semicolon']:
       statement = statement.strip().rstrip(';')
 
     result = connection.execute(statement)