Skip to content

Commit 64f7c72

Browse files
authored
Merge pull request #13 from databendcloud/fix/fix-and-upgrade
fix: jdk version and metabase upgrade
2 parents fe1dae1 + 5209894 commit 64f7c72

14 files changed

Lines changed: 66 additions & 68 deletions

.github/workflows/check.yaml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,32 +39,33 @@ jobs:
3939
uses: actions/checkout@v2
4040
with:
4141
repository: metabase/metabase
42-
ref: v0.49.12
42+
ref: v0.57.6
4343

4444
- name: Checkout Driver Repo
4545
uses: actions/checkout@v2
4646
with:
4747
path: modules/drivers/databend
4848

49-
- name: Prepare JDK 17
49+
- name: Prepare JDK 23
5050
uses: actions/setup-java@v2
5151
with:
5252
distribution: "temurin"
53-
java-version: "17"
53+
java-version: "23"
5454

5555
- name: Install Clojure CLI
5656
run: |
5757
curl -O https://download.clojure.org/install/linux-install-1.11.1.1182.sh &&
5858
sudo bash ./linux-install-1.11.1.1182.sh
5959
6060
- name: Setup Node
61-
uses: actions/setup-node@v2
61+
uses: actions/setup-node@v4
6262
with:
6363
node-version: "18"
6464
cache: "yarn"
65+
cache-dependency-path: "yarn.lock"
6566

6667
- name: Get M2 cache
67-
uses: actions/cache@v2
68+
uses: actions/cache@v4
6869
with:
6970
path: |
7071
~/.m2
@@ -78,7 +79,7 @@ jobs:
7879
ls -lah resources/modules
7980
8081
- name: Archive driver JAR
81-
uses: actions/upload-artifact@v2
82+
uses: actions/upload-artifact@v4
8283
with:
8384
name: databend.metabase-driver.jar
8485
path: resources/modules/databend.metabase-driver.jar

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
### Prerequisites
1111

1212
- [Leiningen](https://leiningen.org/)
13+
- JDK 21 or newer (current builds target Metabase 0.56.x and above, which require Java 21+)
1314

1415
### Build from source
1516

@@ -47,6 +48,11 @@
4748
LEIN_SNAPSHOTS_IN_RELEASE=true DEBUG=1 lein uberjar
4849
```
4950

51+
Notes:
52+
53+
- Use JDK 21+ when compiling; newer Metabase builds (0.56.x and above) depend on Java 21 APIs and will fail on older JDKs.
54+
- This driver version is intended for Metabase 0.56.x and later. For older Metabase releases, use the matching driver version from the table below.
55+
5056
5. Let's assume we download `metabase.jar` from the [Metabase jar](https://www.metabase.com/docs/latest/operations-guide/running-the-metabase-jar-file.html) to `~/metabase/` and we built the project above. Copy the built jar to the Metabase plugins directly and run Metabase from there!
5157

5258
```shell
@@ -72,4 +78,4 @@ You should see a message on startup similar to:
7278
| 0.42.x | 0.0.5 |
7379
| 0.44.x | 0.0.6 |
7480
| 0.47.7+ | 0.0.7 |
75-
| 0.49.x | 0.0.8 |
81+
| 0.49.x | 0.0.8 |

deps.edn

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
["src" "resources"]
33

44
:deps
5-
{com.databend/databend-jdbc {:mvn/version "0.0.7"}
5+
{com.databend/databend-jdbc {:mvn/version "0.4.2"}
66
com.widdindustries/cljc.java-time {:mvn/version "0.1.21"}}
77
:mvn/repos
88
{"releases" {:url "https://repo.repsy.io/mvn/databend/maven"}}

metabase.pom

Lines changed: 19 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,23 @@
1-
<?xml version="1.0" encoding="UTF-8"?><project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.0.xsd">
23
<modelVersion>4.0.0</modelVersion>
3-
<groupId>amalloy</groupId>
4-
<artifactId>ring-buffer</artifactId>
5-
<packaging>jar</packaging>
6-
<version>1.3.1</version>
7-
<name>ring-buffer</name>
8-
<description>Persistent bounded-size queue implementation in Clojure</description>
9-
<url>https://github.com/clj-commons/ring-buffer</url>
4+
<groupId>scout</groupId>
5+
<artifactId>scout</artifactId>
6+
<version>0.1.0</version>
7+
<name>scout</name>
8+
<description>Functional string searching and matching for parsing.</description>
9+
<url>http://example.com/FIXME</url>
1010
<licenses>
1111
<license>
1212
<name>Eclipse Public License</name>
1313
<url>http://www.eclipse.org/legal/epl-v10.html</url>
1414
</license>
1515
</licenses>
1616
<scm>
17-
<tag>ef3635c71182eac1b6ecfa216c14adf90fabd28e</tag>
17+
<connection>scm:git:git://github.com/davidsantiago/scout.git</connection>
18+
<developerConnection>scm:git:ssh://git@github.com/davidsantiago/scout.git</developerConnection>
19+
<tag>2b825a7f8d8073b805ad37e0006dccd8d2d9efef</tag>
20+
<url>https://github.com/davidsantiago/scout</url>
1821
</scm>
1922
<build>
2023
<sourceDirectory>src</sourceDirectory>
@@ -25,28 +28,30 @@
2528
</resource>
2629
</resources>
2730
<testResources>
31+
<testResource>
32+
<directory>dev-resources</directory>
33+
</testResource>
2834
<testResource>
2935
<directory>resources</directory>
3036
</testResource>
3137
</testResources>
3238
<directory>target</directory>
3339
<outputDirectory>target/classes</outputDirectory>
34-
<plugins/>
3540
</build>
3641
<repositories>
3742
<repository>
3843
<id>central</id>
39-
<url>https://repo1.maven.org/maven2/</url>
44+
<url>http://repo1.maven.org/maven2</url>
4045
<snapshots>
41-
<enabled>false</enabled>
46+
<enabled>true</enabled>
4247
</snapshots>
4348
<releases>
4449
<enabled>true</enabled>
4550
</releases>
4651
</repository>
4752
<repository>
4853
<id>clojars</id>
49-
<url>https://repo.clojars.org/</url>
54+
<url>http://clojars.org/repo/</url>
5055
<snapshots>
5156
<enabled>true</enabled>
5257
</snapshots>
@@ -55,21 +60,11 @@
5560
</releases>
5661
</repository>
5762
</repositories>
58-
<dependencyManagement>
59-
<dependencies/>
60-
</dependencyManagement>
6163
<dependencies>
6264
<dependency>
6365
<groupId>org.clojure</groupId>
6466
<artifactId>clojure</artifactId>
65-
<version>1.10.1</version>
66-
<scope>provided</scope>
67-
</dependency>
68-
<dependency>
69-
<groupId>org.clojure</groupId>
70-
<artifactId>clojurescript</artifactId>
71-
<version>1.10.520</version>
72-
<scope>provided</scope>
67+
<version>1.3.0</version>
7368
</dependency>
7469
</dependencies>
7570
</project>

project.clj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
:min-lein-version "2.5.0"
33

44
:dependencies
5-
[[com.databend/databend-jdbc "0.0.7"]
5+
[[com.databend/databend-jdbc "0.4.2"]
66
[clojure.java-time "0.3.2"]
77
]
88

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
a99d82f92b21c5c761f0d2c8ac6b177e
1+
842303d66671f38eeac0faf81dfb1e0e
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
cf45160a9fef4b0f3e15afdfcfa1ad063df70070
1+
3a70ac07cecbf79c3e80c89d9b4a2eedd9f4c125
Lines changed: 19 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,23 @@
1-
<?xml version="1.0" encoding="UTF-8"?><project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.0.xsd">
23
<modelVersion>4.0.0</modelVersion>
3-
<groupId>amalloy</groupId>
4-
<artifactId>ring-buffer</artifactId>
5-
<packaging>jar</packaging>
6-
<version>1.3.1</version>
7-
<name>ring-buffer</name>
8-
<description>Persistent bounded-size queue implementation in Clojure</description>
9-
<url>https://github.com/clj-commons/ring-buffer</url>
4+
<groupId>scout</groupId>
5+
<artifactId>scout</artifactId>
6+
<version>0.1.0</version>
7+
<name>scout</name>
8+
<description>Functional string searching and matching for parsing.</description>
9+
<url>http://example.com/FIXME</url>
1010
<licenses>
1111
<license>
1212
<name>Eclipse Public License</name>
1313
<url>http://www.eclipse.org/legal/epl-v10.html</url>
1414
</license>
1515
</licenses>
1616
<scm>
17-
<tag>ef3635c71182eac1b6ecfa216c14adf90fabd28e</tag>
17+
<connection>scm:git:git://github.com/davidsantiago/scout.git</connection>
18+
<developerConnection>scm:git:ssh://git@github.com/davidsantiago/scout.git</developerConnection>
19+
<tag>2b825a7f8d8073b805ad37e0006dccd8d2d9efef</tag>
20+
<url>https://github.com/davidsantiago/scout</url>
1821
</scm>
1922
<build>
2023
<sourceDirectory>src</sourceDirectory>
@@ -25,28 +28,30 @@
2528
</resource>
2629
</resources>
2730
<testResources>
31+
<testResource>
32+
<directory>dev-resources</directory>
33+
</testResource>
2834
<testResource>
2935
<directory>resources</directory>
3036
</testResource>
3137
</testResources>
3238
<directory>target</directory>
3339
<outputDirectory>target/classes</outputDirectory>
34-
<plugins/>
3540
</build>
3641
<repositories>
3742
<repository>
3843
<id>central</id>
39-
<url>https://repo1.maven.org/maven2/</url>
44+
<url>http://repo1.maven.org/maven2</url>
4045
<snapshots>
41-
<enabled>false</enabled>
46+
<enabled>true</enabled>
4247
</snapshots>
4348
<releases>
4449
<enabled>true</enabled>
4550
</releases>
4651
</repository>
4752
<repository>
4853
<id>clojars</id>
49-
<url>https://repo.clojars.org/</url>
54+
<url>http://clojars.org/repo/</url>
5055
<snapshots>
5156
<enabled>true</enabled>
5257
</snapshots>
@@ -55,21 +60,11 @@
5560
</releases>
5661
</repository>
5762
</repositories>
58-
<dependencyManagement>
59-
<dependencies/>
60-
</dependencyManagement>
6163
<dependencies>
6264
<dependency>
6365
<groupId>org.clojure</groupId>
6466
<artifactId>clojure</artifactId>
65-
<version>1.10.1</version>
66-
<scope>provided</scope>
67-
</dependency>
68-
<dependency>
69-
<groupId>org.clojure</groupId>
70-
<artifactId>clojurescript</artifactId>
71-
<version>1.10.520</version>
72-
<scope>provided</scope>
67+
<version>1.3.0</version>
7368
</dependency>
7469
</dependencies>
7570
</project>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
419561bf2a35cfa4ece195698b6a6640
1+
927bed85091e091f37059344817fd841
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
8a10de8a144faafe7dd71decc36e0a2d9dc7af2e
1+
c4afa795efeb3025ca9f9a5b4e8c37f1f5d59249

0 commit comments

Comments
 (0)