Skip to content

Commit

Permalink
fix struct test
Browse files Browse the repository at this point in the history
  • Loading branch information
stepansergeevitch committed Feb 19, 2025
1 parent a0aa02d commit 36276d1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,7 @@ void shouldInsertAndSelectComplexStruct() throws SQLException {
.executeQuery("SELECT test_struct FROM test_struct")) {
rs.next();
assertEquals(FireboltDataType.STRUCT.name().toLowerCase()
+ "(id int, s struct(a array(text null), `b column` timestamp null))",
+ "(id int, s struct(a array(text null) null, `b column` timestamp null))",
rs.getMetaData().getColumnTypeName(1).toLowerCase());
String expectedJson = String.format(
"{\"id\":%d,\"s\":{\"a\":[\"%s\",\"%s\"],\"b column\":\"%s\"}}", 1, car1.getTags()[0],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ SET prevent_create_on_information_schema=true;
SET enable_create_table_with_struct_type=true;
DROP TABLE IF EXISTS test_struct;
DROP TABLE IF EXISTS test_struct_helper;
CREATE TABLE IF NOT EXISTS test_struct(id int not null, s struct(a array(text) not null, "b column" datetime null) not null);
CREATE TABLE IF NOT EXISTS test_struct(id int not null, s struct(a array(text) null, "b column" datetime null) not null);
CREATE TABLE IF NOT EXISTS test_struct_helper(a array(text) not null, "b column" datetime null);

0 comments on commit 36276d1

Please sign in to comment.