@@ -587,72 +587,81 @@ public void getColumns() throws SQLException {
587
587
TableAssert .ResultSetAssert rs = columns .check (metaData .getColumns (null , null , ALL_TYPES_TABLE , null ))
588
588
.assertMetaColumns ();
589
589
590
+ rs .nextRow (columnName .eq ("c_Interval64" ), dataType .eq (Types .BIGINT ), typeName .eq ("Interval64" ),
591
+ columnSize .eq (8 ), ordinal .eq (1 )).assertAll ();
590
592
rs .nextRow (columnName .eq ("key" ), dataType .eq (Types .INTEGER ), typeName .eq ("Int32" ),
591
- columnSize .eq (4 ), ordinal .eq (1 )).assertAll ();
593
+ columnSize .eq (4 ), ordinal .eq (2 )).assertAll ();
592
594
593
595
rs .nextRow (columnName .eq ("c_Bool" ), dataType .eq (Types .BOOLEAN ), typeName .eq ("Bool" ),
594
- columnSize .eq (1 ), ordinal .eq (2 )).assertAll ();
596
+ columnSize .eq (1 ), ordinal .eq (3 )).assertAll ();
595
597
596
598
rs .nextRow (columnName .eq ("c_Int8" ), dataType .eq (Types .SMALLINT ), typeName .eq ("Int8" ),
597
- columnSize .eq (1 ), ordinal .eq (3 )).assertAll ();
599
+ columnSize .eq (1 ), ordinal .eq (4 )).assertAll ();
598
600
rs .nextRow (columnName .eq ("c_Int16" ), dataType .eq (Types .SMALLINT ), typeName .eq ("Int16" ),
599
- columnSize .eq (2 ), ordinal .eq (4 )).assertAll ();
601
+ columnSize .eq (2 ), ordinal .eq (5 )).assertAll ();
600
602
rs .nextRow (columnName .eq ("c_Int32" ), dataType .eq (Types .INTEGER ), typeName .eq ("Int32" ),
601
- columnSize .eq (4 ), ordinal .eq (5 )).assertAll ();
603
+ columnSize .eq (4 ), ordinal .eq (6 )).assertAll ();
602
604
rs .nextRow (columnName .eq ("c_Int64" ), dataType .eq (Types .BIGINT ), typeName .eq ("Int64" ),
603
- columnSize .eq (8 ), ordinal .eq (6 )).assertAll ();
605
+ columnSize .eq (8 ), ordinal .eq (7 )).assertAll ();
604
606
605
607
rs .nextRow (columnName .eq ("c_Uint8" ), dataType .eq (Types .INTEGER ), typeName .eq ("Uint8" ),
606
- columnSize .eq (1 ), ordinal .eq (7 )).assertAll ();
608
+ columnSize .eq (1 ), ordinal .eq (8 )).assertAll ();
607
609
rs .nextRow (columnName .eq ("c_Uint16" ), dataType .eq (Types .INTEGER ), typeName .eq ("Uint16" ),
608
- columnSize .eq (2 ), ordinal .eq (8 )).assertAll ();
610
+ columnSize .eq (2 ), ordinal .eq (9 )).assertAll ();
609
611
rs .nextRow (columnName .eq ("c_Uint32" ), dataType .eq (Types .BIGINT ), typeName .eq ("Uint32" ),
610
- columnSize .eq (4 ), ordinal .eq (9 )).assertAll ();
612
+ columnSize .eq (4 ), ordinal .eq (10 )).assertAll ();
611
613
rs .nextRow (columnName .eq ("c_Uint64" ), dataType .eq (Types .BIGINT ), typeName .eq ("Uint64" ),
612
- columnSize .eq (8 ), ordinal .eq (10 )).assertAll ();
614
+ columnSize .eq (8 ), ordinal .eq (11 )).assertAll ();
613
615
614
616
rs .nextRow (columnName .eq ("c_Float" ), dataType .eq (Types .FLOAT ), typeName .eq ("Float" ),
615
- columnSize .eq (4 ), ordinal .eq (11 )).assertAll ();
617
+ columnSize .eq (4 ), ordinal .eq (12 )).assertAll ();
616
618
rs .nextRow (columnName .eq ("c_Double" ), dataType .eq (Types .DOUBLE ), typeName .eq ("Double" ),
617
- columnSize .eq (8 ), ordinal .eq (12 )).assertAll ();
619
+ columnSize .eq (8 ), ordinal .eq (13 )).assertAll ();
618
620
619
621
rs .nextRow (columnName .eq ("c_Bytes" ), dataType .eq (Types .BINARY ), typeName .eq ("Bytes" ),
620
- columnSize .eq (YdbConst .MAX_COLUMN_SIZE ), ordinal .eq (13 )).assertAll ();
621
- rs .nextRow (columnName .eq ("c_Text" ), dataType .eq (Types .VARCHAR ), typeName .eq ("Text" ),
622
622
columnSize .eq (YdbConst .MAX_COLUMN_SIZE ), ordinal .eq (14 )).assertAll ();
623
- rs .nextRow (columnName .eq ("c_Json " ), dataType .eq (Types .VARCHAR ), typeName .eq ("Json " ),
623
+ rs .nextRow (columnName .eq ("c_Text " ), dataType .eq (Types .VARCHAR ), typeName .eq ("Text " ),
624
624
columnSize .eq (YdbConst .MAX_COLUMN_SIZE ), ordinal .eq (15 )).assertAll ();
625
- rs .nextRow (columnName .eq ("c_JsonDocument " ), dataType .eq (Types .VARCHAR ), typeName .eq ("JsonDocument " ),
625
+ rs .nextRow (columnName .eq ("c_Json " ), dataType .eq (Types .VARCHAR ), typeName .eq ("Json " ),
626
626
columnSize .eq (YdbConst .MAX_COLUMN_SIZE ), ordinal .eq (16 )).assertAll ();
627
- rs .nextRow (columnName .eq ("c_Yson " ), dataType .eq (Types .BINARY ), typeName .eq ("Yson " ),
627
+ rs .nextRow (columnName .eq ("c_JsonDocument " ), dataType .eq (Types .VARCHAR ), typeName .eq ("JsonDocument " ),
628
628
columnSize .eq (YdbConst .MAX_COLUMN_SIZE ), ordinal .eq (17 )).assertAll ();
629
+ rs .nextRow (columnName .eq ("c_Yson" ), dataType .eq (Types .BINARY ), typeName .eq ("Yson" ),
630
+ columnSize .eq (YdbConst .MAX_COLUMN_SIZE ), ordinal .eq (18 )).assertAll ();
629
631
630
632
rs .nextRow (columnName .eq ("c_Uuid" ), dataType .eq (Types .VARCHAR ), typeName .eq ("Uuid" ),
631
- columnSize .eq (16 ), ordinal .eq (18 )).assertAll ();
633
+ columnSize .eq (16 ), ordinal .eq (19 )).assertAll ();
632
634
633
635
rs .nextRow (columnName .eq ("c_Date" ), dataType .eq (Types .DATE ), typeName .eq ("Date" ),
634
- columnSize .eq (10 ), ordinal .eq (19 )).assertAll ();
636
+ columnSize .eq (10 ), ordinal .eq (20 )).assertAll ();
635
637
rs .nextRow (columnName .eq ("c_Datetime" ), dataType .eq (Types .TIMESTAMP ), typeName .eq ("Datetime" ),
636
- columnSize .eq (19 ), ordinal .eq (20 )).assertAll ();
638
+ columnSize .eq (19 ), ordinal .eq (21 )).assertAll ();
637
639
rs .nextRow (columnName .eq ("c_Timestamp" ), dataType .eq (Types .TIMESTAMP ), typeName .eq ("Timestamp" ),
638
- columnSize .eq (26 ), ordinal .eq (21 )).assertAll ();
640
+ columnSize .eq (26 ), ordinal .eq (22 )).assertAll ();
639
641
rs .nextRow (columnName .eq ("c_Interval" ), dataType .eq (Types .BIGINT ), typeName .eq ("Interval" ),
640
- columnSize .eq (8 ), ordinal .eq (22 )).assertAll ();
642
+ columnSize .eq (8 ), ordinal .eq (23 )).assertAll ();
641
643
642
644
rs .nextRow (columnName .eq ("c_Decimal" ), dataType .eq (Types .DECIMAL ), typeName .eq ("Decimal(22, 9)" ),
643
- columnSize .eq (22 ), ordinal .eq (23 ), decimalDigits .eq (22 )).assertAll ();
645
+ columnSize .eq (22 ), ordinal .eq (24 ), decimalDigits .eq (22 )).assertAll ();
644
646
rs .nextRow (columnName .eq ("c_BigDecimal" ), dataType .eq (Types .DECIMAL ), typeName .eq ("Decimal(35, 0)" ),
645
- columnSize .eq (35 ), ordinal .eq (24 ), decimalDigits .eq (35 )).assertAll ();
647
+ columnSize .eq (35 ), ordinal .eq (25 ), decimalDigits .eq (35 )).assertAll ();
646
648
rs .nextRow (columnName .eq ("c_BankDecimal" ), dataType .eq (Types .DECIMAL ), typeName .eq ("Decimal(31, 9)" ),
647
- columnSize .eq (31 ), ordinal .eq (25 ), decimalDigits .eq (31 )).assertAll ();
649
+ columnSize .eq (31 ), ordinal .eq (26 ), decimalDigits .eq (31 )).assertAll ();
650
+
651
+ rs .nextRow (columnName .eq ("c_Date32" ), dataType .eq (Types .DATE ), typeName .eq ("Date32" ),
652
+ columnSize .eq (10 ), ordinal .eq (27 )).assertAll ();
653
+ rs .nextRow (columnName .eq ("c_Datetime64" ), dataType .eq (Types .TIMESTAMP ), typeName .eq ("Datetime64" ),
654
+ columnSize .eq (19 ), ordinal .eq (28 )).assertAll ();
655
+ rs .nextRow (columnName .eq ("c_Timestamp64" ), dataType .eq (Types .TIMESTAMP ), typeName .eq ("Timestamp64" ),
656
+ columnSize .eq (26 ), ordinal .eq (29 )).assertAll ();
648
657
649
658
rs .assertNoRows ();
650
659
651
660
// find only one column
652
661
rs = columns .check (metaData .getColumns (null , null , ALL_TYPES_TABLE , "c_JsonDocument" ))
653
662
.assertMetaColumns ();
654
663
rs .nextRow (columnName .eq ("c_JsonDocument" ), dataType .eq (Types .VARCHAR ), typeName .eq ("JsonDocument" ),
655
- columnSize .eq (YdbConst .MAX_COLUMN_SIZE ), ordinal .eq (16 )).assertAll ();
664
+ columnSize .eq (YdbConst .MAX_COLUMN_SIZE ), ordinal .eq (17 )).assertAll ();
656
665
rs .assertNoRows ();
657
666
}
658
667
0 commit comments