apache / apache/doris

[Bug] [Ecosystem] Metabase Doris Driver fails to load on Metabase v0.53.9 due to missing driver_api

Open
#63,065 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
15.9k
Forks
3.9k
Avg merge
2d 23h
Merged PRs (30d)
520

Description

### Search before asking

- [x] I had searched in the [issues](https://github.com/apache/doris/issues?q=is%3Aissue) and found no similar issues.

### Version

### **Search before asking**

* [x] I had searched in the [[issues](https://github.com/apache/doris/issues)](https://github.com/apache/doris/issues) and found no similar issues.

### **Version**

* **Metabase Version:** v0.53.9
* **Doris Version:** 4.0.5
* **Driver Version:** Latest [[metabase-doris-driver.jar](https://velodb-bi-connector-1316291683.cos.ap-hongkong.myqcloud.com/Metabase/latest/doris.metabase-driver.jar)](https://velodb-bi-connector-1316291683.cos.ap-hongkong.myqcloud.com/Metabase/latest/doris.metabase-driver.jar)

### **Description**

The current Doris Metabase driver is incompatible with recent Metabase releases (v0.50.x - v0.53.x). When attempting to initialize the driver or connect to a Doris instance, Metabase throws a `FileNotFoundException` because it can no longer find the legacy `metabase.driver-api` namespace.

Metabase has deprecated and removed `metabase.driver-api` in favor of a new driver structure in their recent versions.

### **Logs**

```text
2026-05-08 11:30:46,548 DEBUG plugins.init-steps :: Loading plugin namespace metabase.driver.doris...
2026-05-08 11:30:46,563 ERROR driver.util :: Failed to connect to Database
Caused by: java.io.FileNotFoundException: Could not locate metabase/driver_api/core__init.class, metabase/driver_api/core.clj or metabase/driver_api/core.cljc on classpath.
at clojure.lang.RT.load(RT.java:482)
at clojure.lang.RT.load(RT.java:444)
...
at metabase.driver.doris$eval1532$loading__6812__auto____1533.invoke(doris.clj:1)

```

### **Analysis**

The error `Could not locate metabase/driver_api/core__init.class` indicates that the driver is trying to require `metabase.driver-api`, which was removed in Metabase's major internal refactoring (Migration to Driver API v2).

**Affected File:** `metabase/driver/doris.clj`
**Root Cause:**

```clojure
;; The following line in the driver source is incompatible with Metabase v0.50+
(ns metabase.driver.doris
(:require [metabase.driver-api :as driver-api] ...))

```

### **Expected Behavior**

The driver should be updated to support the Metabase Shared Dependencies and the new Driver Namespace (`metabase.driver`) to be compatible with Metabase v0.50.0 and above.

### **Are you willing to submit a PR?**

* [ ] Yes I am willing to submit a PR!

### What's Wrong?

The current Doris Metabase driver is incompatible with recent Metabase releases (v0.50.x - v0.53.x). When attempting to initialize the driver or connect to a Doris instance, Metabase throws a `FileNotFoundException` because it can no longer find the legacy `metabase.driver-api` namespace.

Metabase has deprecated and removed `metabase.driver-api` in favor of a new driver structure in their recent versions.

### What You Expected?

fix it

### How to Reproduce?

_No response_

### Anything Else?

_No response_

### Are you willing to submit PR?

- [ ] Yes I am willing to submit a PR!

### Code of Conduct

- [x] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.