Commit 3941d1d
committed
test(jdbc-v2): assert BFloat16 JDBC metadata is reported as FLOAT/Float
Add focused tests proving BFloat16 type information is reported correctly through the
JDBC metadata surfaces, per review feedback:
- JdbcDataTypeTests#testBFloat16ResultSetMetaData: ResultSetMetaData reports a BFloat16
(and Nullable(BFloat16)) result column as Types.FLOAT / java.lang.Float, with the
ClickHouse type name preserved (BFloat16 / Nullable(BFloat16)).
- DatabaseMetaDataTest#testGetColumnsBFloat16: DatabaseMetaData.getColumns reports a
BFloat16 (and Nullable(BFloat16)) column as Types.FLOAT with the ClickHouse type name,
plus a sibling Int32 contrast column.
The BFloat16 -> Types.FLOAT / java.lang.Float mapping already lives in
JdbcUtils.CLICKHOUSE_TO_SQL_TYPE_MAP; these tests pin it end-to-end. getTypeInfo BFloat16
coverage is already exercised by the existing DatabaseMetaDataTest#testGetTypeInfo.
Implements: #22791 parent 7eea000 commit 3941d1d
2 files changed
Lines changed: 68 additions & 0 deletions
File tree
- jdbc-v2/src/test/java/com/clickhouse/jdbc
- metadata
Lines changed: 25 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
610 | 610 | | |
611 | 611 | | |
612 | 612 | | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
| 621 | + | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
| 625 | + | |
| 626 | + | |
| 627 | + | |
| 628 | + | |
| 629 | + | |
| 630 | + | |
| 631 | + | |
| 632 | + | |
| 633 | + | |
| 634 | + | |
| 635 | + | |
| 636 | + | |
| 637 | + | |
613 | 638 | | |
614 | 639 | | |
615 | 640 | | |
| |||
Lines changed: 43 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
| |||
146 | 147 | | |
147 | 148 | | |
148 | 149 | | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
149 | 192 | | |
150 | 193 | | |
151 | 194 | | |
| |||
0 commit comments