Skip to content

[client-v2] Add new Geometry type #2678

Description

@chernser

Description

New type Geometry is released in 52.11 https://clickhouse.com/docs/whats-new/changelog#2511

Notes:
In previous versions, the Geometry type was aliased to String, but now it is a full-featured type. #83344

Introduce Geometry type. Support reading WKB and WKT formats for it. In previous versions, the Geometry type was aliased to String, but now it is a full-featured type. #83344

https://clickhouse.com/docs/sql-reference/data-types/geo#geometry

Activity

  1. added theissue type on Dec 3, 2025
  2. linghengqian commented on Dec 17, 2025

    @linghengqian
    [ERROR] 2025-12-17 15:03:47.935 [main] c.c.j.metadata.DatabaseMetaDataImpl - Failed to convert column data type to SQL type: {}
    java.lang.IllegalArgumentException: No enum constant com.clickhouse.data.ClickHouseDataType.Geometry
            at java.base/java.lang.Enum.valueOf(Enum.java:293)
            at com.clickhouse.data.ClickHouseDataType.valueOf(ClickHouseDataType.java:52)
            at com.clickhouse.jdbc.metadata.DatabaseMetaDataImpl.lambda$static$2(DatabaseMetaDataImpl.java:1102)
            at com.clickhouse.jdbc.internal.DetachedResultSet.createFromResultSet(DetachedResultSet.java:93)
            at com.clickhouse.jdbc.metadata.DatabaseMetaDataImpl.getTypeInfo(DatabaseMetaDataImpl.java:1082)
            at io.github.linghengqian.SimpleTest.simpleTest(SimpleTest.java:14)
  3. chernser commented on Dec 17, 2025

    @chernser
    ContributorAuthor

    Good dau, @linghengqian !
    Caused by this issue. But for the problem that old client may not work with the new CH there is another #2394

    Thank you for bringing this - I will update #2394 with your scenario.

  4. chernser commented on Dec 18, 2025

    @chernser
    ContributorAuthor

    @linghengqian
    I've looked into your case - this message is reported because client may not know type and requires upgrade.
    In this case JDBC Driver and Client will continue to work except moments when using unknown type. So this exception is not a bug but warning that client found an unknown type.

  5. linghengqian commented on Dec 18, 2025

    @linghengqian

    @linghengqian
    I've looked into your case - this message is reported because client may not know type and requires upgrade.
    In this case JDBC Driver and Client will continue to work except moments when using unknown type. So this exception is not a bug but warning that client found an unknown type.

    Yes, this error log won't prevent the unit tests from running; it only prints out the log under a specific logback configuration. That's why I'm asking if we need to open a new issue for this.

    But this logback configuration is really quite common.😂

  6. chernser commented on Dec 18, 2025

    @chernser
    ContributorAuthor

    @linghengqian
    we have another test to detect new types on HEAD and latest version of ClickHouse (just in case we missed it).
    I will fix the message to be more informative.

  7. added this to the 0.9.9 milestone on Mar 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions