Skip to content

docs: update JDBC type mapping tables for V2#89

Open
mintlify[bot] wants to merge 1 commit into
mainfrom
port/jdbc-type-mapping-v2
Open

docs: update JDBC type mapping tables for V2#89
mintlify[bot] wants to merge 1 commit into
mainfrom
port/jdbc-type-mapping-v2

Conversation

@mintlify
Copy link
Copy Markdown
Contributor

@mintlify mintlify Bot commented May 28, 2026

Summary

Ports ClickHouse/clickhouse-docs#6297 — updates JDBC type mapping documentation for V2.

Changes

  • Adds JDBC type codes (e.g. TINYINT (-6), NUMERIC (2)) to all V2 type-mapping tables (Numeric, String, Enum, Date/Time, Nested).
  • Updates several mappings: Int128/256 and UInt64/128/256NUMERIC; UInt8/16/32SMALLINT/INTEGER/BIGINT; Float32FLOAT; Enum8/16VARCHAR.
  • Adds new Array Element Type Metadata section explaining Array.getBaseTypeName() / getBaseType() and the V1 vs V2 differences, with a comprehensive example table.
  • Updates V1↔V2 migration tables: Float32 REALFLOAT, DateTime/DateTime64 V1 column now TIMESTAMP_WITH_TIMEZONE.

Note

Low Risk
Documentation-only changes to JDBC type mapping tables; no runtime or security impact.

Overview
Updates the Java JDBC reference in jdbc.mdx so V2 type mapping matches current driver behavior and is easier to use from ResultSetMetaData / Array APIs.

JDBC type mapping tables now include standard java.sql.Types codes (e.g. NUMERIC (2), VARCHAR (12)) alongside type names. Several V2 mappings are corrected vs the old doc: wide integers and large unsigned types use NUMERIC instead of OTHER; UInt8/16/32 map to SMALLINT/INTEGER/BIGINT; Float32 is FLOAT; Enum8/16 are VARCHAR; nested types list explicit ARRAY/JAVA_OBJECT codes.

A new Array Element Type Metadata section documents Array.getBaseTypeName() and Array.getBaseType() for V2, including nested/wrapper types (Nullable, LowCardinality, tuples, enums) and notes that V2 keeps full ClickHouse type strings where V1 strips them.

The V1↔V2 migration tables are aligned with the same JDBC labels (unsigned numeric JDBC types, FLOAT for Float32 on both sides, and V1 DateTime/DateTime64 documented as TIMESTAMP_WITH_TIMEZONE vs V2 TIMESTAMP).

Reviewed by Cursor Bugbot for commit d65fb60. Bugbot is set up for automated code reviews on this repo. Configure here.

@mintlify
Copy link
Copy Markdown
Contributor Author

mintlify Bot commented May 28, 2026

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
ClickHouse-docs 🟢 Ready View Preview May 28, 2026, 12:35 AM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants