iceberg icon indicating copy to clipboard operation
iceberg copied to clipboard

include Postgres driver in iceberg-rest-fixture image

Open raphaelauv opened this issue 2 months ago • 2 comments

Feature Request / Improvement

by default the image use an sqlite db

would be great that the image can directly use a remote postgres without need to create a custom image

because currently doing

CATALOG_URI=jdbc:postgresql://iceberg_rest-db:5432/iceberg_restdb

fail with

Caused by: java.sql.SQLException: No suitable driver found for jdbc:postgresql://iceberg_rest-db:5432/iceberg_restdb

Query engine

None

Willingness to contribute

  • [x] I can contribute this improvement/feature independently
  • [ ] I would be willing to contribute this improvement/feature with guidance from the Iceberg community
  • [ ] I cannot contribute this improvement/feature at this time

raphaelauv avatar Dec 08 '25 23:12 raphaelauv

Can we make it configurable?

manuzhang avatar Dec 09 '25 03:12 manuzhang

I don't understand , what do you mean by configurable ?

currently I do

FROM apache/iceberg-rest-fixture:1.10.0
USER root
RUN curl -L -o /usr/lib/iceberg-rest/postgresql.jar \
    https://jdbc.postgresql.org/download/postgresql-42.7.8.jar \
 && chown iceberg:iceberg /usr/lib/iceberg-rest/postgresql.jar
USER iceberg:iceberg
CMD ["java", "-cp", "iceberg-rest-adapter.jar:postgresql.jar", "org.apache.iceberg.rest.RESTCatalogServer"]

raphaelauv avatar Dec 09 '25 04:12 raphaelauv