Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for DuckDB #2508

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Add support for DuckDB #2508

wants to merge 1 commit into from

Conversation

frafra
Copy link
Contributor

@frafra frafra commented Aug 27, 2024

This simple patch adds support for DuckDB. It just requires a single extra line to the Dockerfile:

ADD https://repo1.maven.org/maven2/org/duckdb/duckdb_jdbc/1.0.0/duckdb_jdbc-1.0.0.jar /usr/local/tomcat/webapps/ROOT/WEB-INF/lib

This allows to read a large variety of data sources, such as Parquet files.

For example:

  • Database: :memory:
  • SQL Statement:
install httpfs; load httpfs;
select * from read_parquet('s3://gbif-open-data-eu-central-1/occurrence/2024-08-01/occurrence.parquet/000000');

@MattBlissett
Copy link
Member

Interesting!

@mike-podolskiy90, this would be better as a Maven dependency so non-Docker users can benefit.

@mike-podolskiy90
Copy link
Contributor

Thanks @frafra and @MattBlissett , I'll have a look

@mike-podolskiy90 mike-podolskiy90 self-assigned this Oct 14, 2024
@mike-podolskiy90 mike-podolskiy90 added this to the 3.2 milestone Oct 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants