From 2d6049d471de527f2364f83b3df440117b4c4440 Mon Sep 17 00:00:00 2001 From: jingyu Date: Fri, 13 Oct 2023 17:57:44 +0800 Subject: [PATCH] FIX replace the usage of u/snake-key with u/->snake_case_en --- .github/workflows/check.yaml | 6 +++--- resources/metabase-plugin.yaml | 2 +- src/metabase/driver/databend.clj | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/check.yaml b/.github/workflows/check.yaml index 29accaa..1fa81f0 100644 --- a/.github/workflows/check.yaml +++ b/.github/workflows/check.yaml @@ -39,7 +39,7 @@ jobs: uses: actions/checkout@v2 with: repository: metabase/metabase - ref: v0.46.0-RC2 + ref: v0.47.4 - name: Checkout Driver Repo uses: actions/checkout@v2 @@ -60,7 +60,7 @@ jobs: - name: Setup Node uses: actions/setup-node@v2 with: - node-version: "16" + node-version: "18" cache: "yarn" - name: Get M2 cache @@ -84,7 +84,7 @@ jobs: - name: Build databend driver run: | echo "{:deps {metabase/databend {:local/root \"databend\" }}}" > modules/drivers/deps.edn - bin/build-driver.sh databend + bin/build-driver.sh databend ls -lah resources/modules - name: Archive driver JAR diff --git a/resources/metabase-plugin.yaml b/resources/metabase-plugin.yaml index cc18d2f..c564d7e 100644 --- a/resources/metabase-plugin.yaml +++ b/resources/metabase-plugin.yaml @@ -1,6 +1,6 @@ info: name: Metabase Databend Driver - version: 0.0.6 + version: 0.0.7 description: Allows Metabase to connect to Databend databases. contact-info: name: Databend diff --git a/src/metabase/driver/databend.clj b/src/metabase/driver/databend.clj index 3b81847..53a7c0d 100644 --- a/src/metabase/driver/databend.clj +++ b/src/metabase/driver/databend.clj @@ -425,4 +425,4 @@ (defmethod driver/db-start-of-week :databend [_] :monday) (defmethod ddl.i/format-name :databend [_ table-or-field-name] - (u/snake-key table-or-field-name)) + (u/->snake_case_en table-or-field-name))