- Once you've started up Metabase, open http://localhost:3000 , go to add a database and select "GreptimeDB".
- You'll need to provide the Host/Port, Database Name, Username and Password.
-
Clone metabase.
git clone https://github.com/metabase/metabase
-
Clone metabase-greptime-driver repo
git clone https://github.com/GreptimeTeam/metabase-greptimedb-driver
-
Prepare metabase dependencies
cd metabase DRIVER_PATH=`readlink -f ../metabase-greptimedb-driver` clojure \ -Sdeps "{:aliases {:greptimedb {:extra-deps {com.metabase/greptimedb-driver {:local/root \"$DRIVER_PATH\"}}}}}" \ -X:build:greptimedb \ build-drivers.build-driver/build-driver! \ "{:driver :greptimedb, :project-dir \"$DRIVER_PATH\", :target-dir \"$DRIVER_PATH/target\"}"
-
Let's assume we download
metabase.jar
from the Metabase jar to~/metabase/
and we built the project above. Copy the built jar to the Metabase plugins directly and run Metabase from there!cd ~/metabase/ java -jar metabase.jar
You should see a message on startup similar to:
2023-10-12 17:09:49,257 DEBUG plugins.lazy-loaded-driver :: Registering lazy loading driver :greptimedb...
2023-10-12 17:09:49,257 INFO driver.impl :: Registered driver :greptimedb (parents: [:sql-jdbc]) 🚚
- Unsupport some SQL syntax, such as
SELECT * FROM table WHERE column BETWEEN (1, 2, 3)
- Semantic recognition of Column is inaccurate.