Skip to content

Unsupported data type: BFloat16 #2349

Closed

Description

@tolberg91

Hi

I created a table with a column of type BFloat16 ( https://clickhouse.com/docs/ru/sql-reference/data-types/float ).
And now I am trying to read this table with jdbc driver (version 0.8.5, https://mvnrepository.com/artifact/com.clickhouse/clickhouse-jdbc/0.8.5 ) but I am getting a error: Unsupported data type: BFloat16

Is there a reason, or is it an oversight?

Stacktrace:
Exception in thread "main" java.lang.RuntimeException: java.sql.SQLException: Failed to read value for column column_bfloat
at com.abc.MyService.main(MyService.java:45)
Caused by: java.sql.SQLException: Failed to read value for column column_bfloat
at com.clickhouse.jdbc.internal.ExceptionUtils.toSqlState(ExceptionUtils.java:69)
at com.clickhouse.jdbc.internal.ExceptionUtils.toSqlState(ExceptionUtils.java:42)
at com.clickhouse.jdbc.ResultSetImpl.next(ResultSetImpl.java:105)
at com.abc.MyService.main(MyService.java:24)
Caused by: com.clickhouse.client.api.ClientException: Failed to read value for column column_bfloat
at com.clickhouse.client.api.data_formats.internal.BinaryStreamReader.readValue(BinaryStreamReader.java:246)
at com.clickhouse.client.api.data_formats.internal.BinaryStreamReader.readValue(BinaryStreamReader.java:82)
at com.clickhouse.client.api.data_formats.internal.AbstractBinaryFormatReader.readRecord(AbstractBinaryFormatReader.java:175)
at com.clickhouse.client.api.data_formats.internal.AbstractBinaryFormatReader.next(AbstractBinaryFormatReader.java:245)
at com.clickhouse.jdbc.ResultSetImpl.next(ResultSetImpl.java:103)
... 1 more
Caused by: java.lang.IllegalArgumentException: Unsupported data type: BFloat16
at com.clickhouse.client.api.data_formats.internal.BinaryStreamReader.readValue(BinaryStreamReader.java:240)
... 5 more

Activity

  1. mshustov commented on May 5, 2025

    @mshustov
    Member

    duplicate of #2279

  2. chernser commented on May 5, 2025

    @chernser
    Contributor

    Good day, @tolberg91!

    Thank you for the reporting! We aware of the issue.

  3. added
    area:data-type
    on Jul 12, 2025
  4. modified the milestones: 0.9.10, 0.10.0 on Apr 15, 2026
  5. mshustov commented on Jul 19, 2026

    @mshustov
    Member

    closed by #2934

  6. modified the milestones: 0.12.0, 0.11.0 on Jul 27, 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

    Labels

    area:data-typebugclient-api-v2

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions