@@ -424,6 +424,11 @@ public void getTypeInfo() throws SQLException {
424
424
rs .nextRow (name .eq ("Timestamp" ), type .eq (Types .TIMESTAMP ), precision .eq (26 ), unsigned .eq (false )).assertAll ();
425
425
rs .nextRow (name .eq ("Interval" ), type .eq (Types .BIGINT ), precision .eq (8 ), unsigned .eq (false )).assertAll ();
426
426
427
+ rs .nextRow (name .eq ("Date32" ), type .eq (Types .DATE ), precision .eq (10 ), unsigned .eq (false )).assertAll ();
428
+ rs .nextRow (name .eq ("Datetime64" ), type .eq (Types .TIMESTAMP ), precision .eq (19 ), unsigned .eq (false )).assertAll ();
429
+ rs .nextRow (name .eq ("Timestamp64" ), type .eq (Types .TIMESTAMP ), precision .eq (26 ), unsigned .eq (false )).assertAll ();
430
+ rs .nextRow (name .eq ("Interval64" ), type .eq (Types .BIGINT ), precision .eq (8 ), unsigned .eq (false )).assertAll ();
431
+
427
432
rs .nextRow (name .eq ("Decimal(22, 9)" ), type .eq (Types .DECIMAL ), precision .eq (22 ),
428
433
unsigned .eq (false ), fixedPrec .eq (true ), minScale .eq (9 ), maxScale .eq (9 )).assertAll ();
429
434
@@ -618,12 +623,24 @@ public void getColumns() throws SQLException {
618
623
rs .nextRow (columnName .eq ("c_Interval" ), dataType .eq (Types .BIGINT ), typeName .eq ("Interval" ),
619
624
columnSize .eq (8 ), ordinal .eq (22 )).assertAll ();
620
625
626
+ rs .nextRow (columnName .eq ("c_Date32" ), dataType .eq (Types .DATE ), typeName .eq ("Date32" ),
627
+ columnSize .eq (10 ), ordinal .eq (23 )).assertAll ();
628
+ rs .nextRow (columnName .eq ("c_Datetime64" ), dataType .eq (Types .TIMESTAMP ), typeName .eq ("Datetime64" ),
629
+ columnSize .eq (19 ), ordinal .eq (24 )).assertAll ();
630
+ rs .nextRow (columnName .eq ("c_Timestamp64" ), dataType .eq (Types .TIMESTAMP ), typeName .eq ("Timestamp64" ),
631
+ columnSize .eq (26 ), ordinal .eq (25 )).assertAll ();
632
+ rs .nextRow (columnName .eq ("c_Interval64" ), dataType .eq (Types .BIGINT ), typeName .eq ("Interval64" ),
633
+ columnSize .eq (8 ), ordinal .eq (26 )).assertAll ();
634
+
621
635
rs .nextRow (columnName .eq ("c_Decimal" ), dataType .eq (Types .DECIMAL ), typeName .eq ("Decimal(22, 9)" ),
622
- columnSize .eq (22 ), ordinal .eq (23 ), decimalDigits .eq (22 )).assertAll ();
636
+ columnSize .eq (22 ), ordinal .eq (27 ), decimalDigits .eq (22 )).assertAll ();
623
637
rs .nextRow (columnName .eq ("c_BigDecimal" ), dataType .eq (Types .DECIMAL ), typeName .eq ("Decimal(35, 0)" ),
624
- columnSize .eq (35 ), ordinal .eq (24 ), decimalDigits .eq (35 )).assertAll ();
638
+ columnSize .eq (35 ), ordinal .eq (28 ), decimalDigits .eq (35 )).assertAll ();
625
639
rs .nextRow (columnName .eq ("c_BankDecimal" ), dataType .eq (Types .DECIMAL ), typeName .eq ("Decimal(31, 9)" ),
626
- columnSize .eq (31 ), ordinal .eq (25 ), decimalDigits .eq (31 )).assertAll ();
640
+ columnSize .eq (31 ), ordinal .eq (29 ), decimalDigits .eq (31 )).assertAll ();
641
+
642
+ rs .nextRow (columnName .eq ("c_Extra" ), dataType .eq (Types .INTEGER ), typeName .eq ("Int32" ),
643
+ columnSize .eq (4 ), ordinal .eq (30 )).assertAll ();
627
644
628
645
rs .assertNoRows ();
629
646
0 commit comments