From 0a10c78374347434c11ac03ac60257a018d8769e Mon Sep 17 00:00:00 2001 From: mertmit Date: Thu, 18 Apr 2024 21:12:38 +0000 Subject: [PATCH] feat: dbricks --- .../settings/data-sources/EditBase.vue | 34 + .../nc-gui/components/template/Editor.vue | 2 +- packages/nc-gui/lib/enums.ts | 1 + packages/nc-gui/utils/baseCreateUtils.ts | 27 +- .../nocodb-sdk/src/lib/sqlUi/DatabricksUi.ts | 820 ++++++ .../nocodb-sdk/src/lib/sqlUi/SqlUiFactory.ts | 5 + packages/nocodb/src/db/BaseModelSqlv2.ts | 18 +- .../src/db/formulav2/formulaQueryBuilderv2.ts | 26 + .../src/db/functionMappings/databricks.ts | 44 + packages/nocodb/src/db/mapFunctionName.ts | 4 + .../src/db/sql-client/lib/SqlClientFactory.ts | 6 + .../lib/databricks/DatabricksClient.ts | 2621 +++++++++++++++++ .../lib/databricks/databricks.queries.ts | 3 + .../code/models/xc/ModelXcMetaDatabricks.ts | 509 ++++ .../code/models/xc/ModelXcMetaFactory.ts | 3 + packages/nocodb/src/helpers/populateMeta.ts | 8 + packages/nocodb/src/schema/swagger-v2.json | 9 +- packages/nocodb/src/schema/swagger.json | 12 +- .../nocodb/src/services/meta-diffs.service.ts | 12 +- .../nocodb/src/services/tables.service.ts | 4 +- packages/nocodb/src/utils/globals.ts | 1 + .../nocodb/src/utils/nc-config/constants.ts | 1 + 22 files changed, 4148 insertions(+), 22 deletions(-) create mode 100644 packages/nocodb-sdk/src/lib/sqlUi/DatabricksUi.ts create mode 100644 packages/nocodb/src/db/functionMappings/databricks.ts create mode 100644 packages/nocodb/src/db/sql-client/lib/databricks/DatabricksClient.ts create mode 100644 packages/nocodb/src/db/sql-client/lib/databricks/databricks.queries.ts create mode 100644 packages/nocodb/src/db/sql-mgr/code/models/xc/ModelXcMetaDatabricks.ts diff --git a/packages/nc-gui/components/dashboard/settings/data-sources/EditBase.vue b/packages/nc-gui/components/dashboard/settings/data-sources/EditBase.vue index 0798a35964..e4cd16c3c7 100644 --- a/packages/nc-gui/components/dashboard/settings/data-sources/EditBase.vue +++ b/packages/nc-gui/components/dashboard/settings/data-sources/EditBase.vue @@ -437,6 +437,40 @@ onMounted(async () => { + +