Skip to content

DuckDBAppender doesn't support GEOMETRY values #671

Closed

Description

@wyuxiao729

My table structure is :

CREATE TABLE IF NOT EXISTS spatial_data ( id VARCHAR, name VARCHAR, geometry GEOMETRY )

When I created the DuckDBAppender, the following error occurred:

message: unsupported C API type: 40

I would like to know if this is caused by the GEOMETRY in the table. What types are currently supported by the DuckDBAppender? Is there a list of relevant supports? If it is not supported, will that mean I cannot perform batch data insertion through the DuckDBAppender method?

By the way, the version of duckdb_jdbc that I am currently using is 1.5.2.0

Activity

  1. wyuxiao729 commented on Apr 24, 2026

    @wyuxiao729
    Author

    I have found all the data types supported by Appender in the official documentation. It's a pity that the GEOMETRY type is not supported. Are there any plans to add support for GEOMETRY in the future?

  2. staticlibs commented on Apr 24, 2026

    @staticlibs
    Member

    Hi, thanks for the report! Docs may be a bit outdated, almost all types are supported in Appender - list, with the notable absence of VARIANT (#643).

    I've filed #672 to support GEOMETRY (as a WKB blob), going to backport it to 1.5 branch to include into 1.5.3 update.

  3. added a commit that references this issue on Apr 24, 2026
    5096486
  4. staticlibs commented on Apr 24, 2026

    @staticlibs
    Member

    @wyuxiao729

    Just FYI, the GEOMETRY with Appender can be tried using this 1.5 snapshot:

    <dependency>
        <groupId>org.duckdb</groupId>
        <artifactId>duckdb_jdbc</artifactId>
        <version>1.5.3.0-50964864-SNAPSHOT</version>
      </dependency>
      <repository>
        <id>central-snapshots</id>
        <url>https://central.sonatype.com/repository/maven-snapshots/</url>
        <snapshots><enabled>true</enabled></snapshots>
      </repository>
  5. added a commit that references this issue on May 5, 2026
    fddcfe5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions