소스 검색

[phoenix] Automatically strip ; in non connector mode

Romain Rigaux 5 년 전
부모
커밋
b3d73aec87
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

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