Browse Source

[con] Add dask-sql conn type #1480

Added a first draft for a dask-sql type, basically
copying the presto one (except fro the risks).
Nils Braun 5 years ago
parent
commit
78205ab45b
1 changed files with 28 additions and 0 deletions
  1. 28 0
      desktop/core/src/desktop/lib/connectors/types.py

+ 28 - 0
desktop/core/src/desktop/lib/connectors/types.py

@@ -368,6 +368,34 @@ CONNECTOR_TYPES = [
       'trim_statement_semicolon': True,
     }
   },
+  {
+    'nice_name': "dask-sql",
+    'dialect': 'presto',
+    'interface': 'sqlalchemy',
+    'settings': [
+      {'name': 'url', 'value': 'presto://host:8080/catalog/default'},
+      {'name': 'has_ssh', 'value': False},
+      {'name': 'ssh_server_host', 'value': '127.0.0.1'},
+      {'name': 'has_impersonation', 'value': False},
+    ],
+    'category': 'editor',
+    'description': '',
+    'properties': {
+      'is_sql': True,
+      'sql_identifier_quote': '"',
+      'sql_identifier_comment_single': '--',
+      'has_catalog': True,
+      'has_database': True,
+      'has_table': True,
+      'has_live_queries': False,
+      'has_optimizer_risks': False,
+      'has_optimizer_values': True,
+      'has_auto_limit': False,
+      'has_reference_language': False,
+      'has_reference_functions': False,
+      'trim_statement_semicolon': True,
+    }
+  },
   {
     'nice_name': "Elasticsearch SQL",
     'dialect': 'elasticsearch',