Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Added array test in PostgresCatalogITCase#testArrayTypes()
  • Loading branch information
fpompermaier committed Apr 30, 2020
commit 174b4dbf50719f2a8a215be245bbd469acc3b3d5
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ public void testArrayTypes() throws Exception {
"[5.5, 6.6, 7.7]," +
"[6.6, 7.7, 8.8]," +
"[7.70000, 8.80000, 9.90000]," +
"[8.800000000000000000, 9.900000000000000000, 10.100000000000000000]," +
"[true, false, true]," +
"[a, b, c]," +
"[b, c, d]," +
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,7 @@ public static TestTable getArrayTable() {
.field("real_arr", DataTypes.ARRAY(DataTypes.FLOAT()))
.field("double_precision_arr", DataTypes.ARRAY(DataTypes.DOUBLE()))
.field("numeric_arr", DataTypes.ARRAY(DataTypes.DECIMAL(10, 5)))
.field("numeric_arr_default", DataTypes.ARRAY(DataTypes.DECIMAL(DecimalType.MAX_PRECISION, 18)))
.field("boolean_arr", DataTypes.ARRAY(DataTypes.BOOLEAN()))
.field("text_arr", DataTypes.ARRAY(DataTypes.STRING()))
.field("char_arr", DataTypes.ARRAY(DataTypes.CHAR(1)))
Expand All @@ -243,6 +244,7 @@ public static TestTable getArrayTable() {
"real_arr real[], " +
"double_precision_arr double precision[], " +
"numeric_arr numeric(10, 5)[], " +
"numeric_arr_default numeric[], " +
"boolean_arr boolean[], " +
"text_arr text[], " +
"char_arr char[], " +
Expand All @@ -260,6 +262,7 @@ public static TestTable getArrayTable() {
"'{5.5,6.6,7.7}'," +
"'{6.6,7.7,8.8}'," +
"'{7.7,8.8,9.9}'," +
"'{8.8,9.9,10.10}'," +
"'{true,false,true}'," +
"'{a,b,c}'," +
"'{b,c,d}'," +
Expand Down