Browse Source

HUE-8758 [spark] Add Livy sql connector type

Romain 5 năm trước cách đây
mục cha
commit
1393866fda
1 tập tin đã thay đổi với 24 bổ sung0 xóa
  1. 24 0
      desktop/core/src/desktop/lib/connectors/types.py

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

@@ -172,6 +172,30 @@ CONNECTOR_TYPES = [
       'has_auto_limit': False,
     }
   },
+  {
+    'nice_name': "Livy",
+    'dialect': 'livy',
+    'interface': 'livy',
+    'settings': [
+      {'name': 'api_url', 'value': 'http://localhost:8998'},
+      {'name': 'has_ssh', 'value': False},
+      {'name': 'ssh_server_host', 'value': '127.0.0.1'},
+    ],
+    'category': 'editor',
+    'description': '',
+    'properties': {
+      'is_sql': True,
+      'sql_identifier_quote': '`',
+      'sql_identifier_comment_single': '--',
+      'has_catalog': False,
+      'has_database': True,
+      'has_table': True,
+      'has_live_queries': False,
+      'has_optimizer_risks': True,
+      'has_optimizer_values': True,
+      'has_auto_limit': False,
+    }
+  },
   {
     'nice_name': "Phoenix SQL",
     'dialect': 'phoenix',