瀏覽代碼

[sqlalchemy] Support double quotes for Trino (#2854)

Co-authored-by: Harsh Gupta <42064744+Harshg999@users.noreply.github.com>
Fernando Herrera 2 年之前
父節點
當前提交
bafce33ad8
共有 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

@@ -127,7 +127,7 @@ class SqlAlchemyApi(Api):
     if interpreter.get('dialect_properties'):
       self.backticks = interpreter['dialect_properties']['sql_identifier_quote']
     else:
-      self.backticks = '"' if re.match('^(postgresql://|awsathena|elasticsearch|phoenix)', self.options.get('url', '')) else '`'
+      self.backticks = '"' if re.match('^(postgresql://|awsathena|elasticsearch|phoenix|trino)', self.options.get('url', '')) else '`'
 
   def _get_engine_key(self):
     return ENGINE_KEY % {