[JAVA] Update JDBC docs#6297
Open
chernser wants to merge 2 commits into
Open
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
4 Skipped Deployments
|
|
Docs PR opened: ClickHouse/mintlify-docs-dev#89 Updated the Java JDBC docs with V2 type codes, revised type mappings, and a new Array element metadata section. Once this PR is merged, we'll do a second pass to capture any additional changes and update the docs PR. |
mshustov
reviewed
May 29, 2026
| | Decimal256 | DECIMAL | java.math.BigDecimal | | ||
| | Bool | BOOLEAN | java.lang.Boolean | | ||
| | Int8 | TINYINT (-6) | java.lang.Byte | | ||
| | Int16 | SMALLINT (5) | java.lang.Short | |
Member
There was a problem hiding this comment.
is it precision or a constant? the column legend doesn't tell much
mshustov
reviewed
May 29, 2026
|
|
||
| **JDBC V2** | ||
|
|
||
| | ClickHouse Type (Example) | `getBaseTypeName()` | `getBaseType()` | |
Member
There was a problem hiding this comment.
I'd vote to move Example to a separate column since it's hard to read (at least in markdown)
mshustov
approved these changes
May 29, 2026
Blargian
approved these changes
May 29, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Closes: ClickHouse/clickhouse-java#2746
Checklist
Note
Low Risk
Documentation-only changes to jdbc.mdx; no runtime, security, or API code is modified.
Overview
Updates the Java JDBC integration docs to match JDBC V2 type metadata and migration guidance.
Type mapping tables now list standard JDBC type codes (e.g.
TINYINT (-6),VARCHAR (12)) alongside type names. Scalar mappings are corrected for V2: wide integers andUInt64useNUMERICinstead ofOTHER; unsigned integers map to signed JDBC numeric types with standard Java boxed types;Float32isFLOATnotREAL;Enum8/Enum16areVARCHAR.A new Array element type metadata section documents
Array.getBaseTypeName()/getBaseType()for V2, including nestedNullable,LowCardinality,Tuple,UUID, and multi-dimensional arrays, and notes that V2 keeps full ClickHouse type signatures where V1 strips them.The V1 vs V2 migration tables are aligned with the same JDBC/Java class changes (unsigned types,
NUMERIC,FLOAT, and V1DateTime/DateTime64asTIMESTAMP_WITH_TIMEZONEwithOffsetDateTime).Reviewed by Cursor Bugbot for commit 0ec4b5b. Bugbot is set up for automated code reviews on this repo. Configure here.