Skip to content

Commit

Permalink
UT fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
abhishekrb19 committed Apr 14, 2023
1 parent 14ba102 commit 7caa193
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ private static RelDataType getExplainStructType(RelDataTypeFactory typeFactory)
Calcites.createSqlType(typeFactory, SqlTypeName.VARCHAR),
Calcites.createSqlType(typeFactory, SqlTypeName.VARCHAR)
),
ImmutableList.of("PLAN", "RESOURCES", "STATEMENT_RESOURCES")
ImmutableList.of("PLAN", "RESOURCES", "STATEMENT_ATTRIBUTES")
);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -465,11 +465,13 @@ public void testExplainSelectCount() throws SQLException
ImmutableMap.of(
"PLAN",
StringUtils.format(
"[{\"query\":{\"queryType\":\"timeseries\",\"dataSource\":{\"type\":\"table\",\"name\":\"foo\"},\"intervals\":{\"type\":\"intervals\",\"intervals\":[\"-146136543-09-08T08:23:32.096Z/146140482-04-24T15:36:27.903Z\"]},\"granularity\":{\"type\":\"all\"},\"aggregations\":[{\"type\":\"count\",\"name\":\"a0\"}],\"context\":{\"sqlQueryId\":\"%s\",\"sqlStringifyArrays\":false,\"sqlTimeZone\":\"America/Los_Angeles\"}},\"signature\":[{\"name\":\"a0\",\"type\":\"LONG\"}]},{\"statementKind\":\"SELECT\"},{\"targetDataSource\":\"null\"}]",
"[{\"query\":{\"queryType\":\"timeseries\",\"dataSource\":{\"type\":\"table\",\"name\":\"foo\"},\"intervals\":{\"type\":\"intervals\",\"intervals\":[\"-146136543-09-08T08:23:32.096Z/146140482-04-24T15:36:27.903Z\"]},\"granularity\":{\"type\":\"all\"},\"aggregations\":[{\"type\":\"count\",\"name\":\"a0\"}],\"context\":{\"sqlQueryId\":\"%s\",\"sqlStringifyArrays\":false,\"sqlTimeZone\":\"America/Los_Angeles\"}},\"signature\":[{\"name\":\"a0\",\"type\":\"LONG\"}]}]",
DUMMY_SQL_QUERY_ID
),
"RESOURCES",
"[{\"name\":\"foo\",\"type\":\"DATASOURCE\"}]"
"[{\"name\":\"foo\",\"type\":\"DATASOURCE\"}]",
"STATEMENT_RESOURCES",
"{\"statementKind\":\"SELECT\",\"targetDataSource\":null}"
)
),
getRows(resultSet)
Expand Down

0 comments on commit 7caa193

Please sign in to comment.