Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
auden-woolfson committed Jan 7, 2025
1 parent 7ef83d9 commit 76302f2
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1079,14 +1079,11 @@ private void testSelectOrPartitionedByTime(boolean partitioned, FileFormat forma
assertQuery(format("SELECT COUNT(*) FROM %s", tableName), "SELECT 2");
assertQuery(format("SELECT x FROM %s WHERE y = 12345", tableName), "SELECT CAST('10:12:34' AS TIME)");
assertQuery(format("SELECT x FROM %s WHERE y = 67890", tableName), "SELECT CAST('9:00:00' AS TIME)");
assertQuery(format("SELECT x FROM %s ORDER BY x LIMIT 1", tableName), "SELECT CAST('9:00:00' AS TIME)");
assertUpdate(format("INSERT INTO %s VALUES (TIME '10:12:34', 54321)", tableName), 1);
assertQuery(
format("SELECT x, COUNT(*) FROM %s GROUP BY x ORDER BY x", tableName),
"SELECT CAST('9:00:00' AS TIME), 1 UNION ALL SELECT CAST('10:12:34' AS TIME), 2");
assertQuery(
format("SELECT y FROM %s WHERE x = time '10:12:34'", tableName),
"values 12345, 54321");
assertQuery(format("SELECT y FROM %s WHERE x = time '10:12:34'", tableName), "values 12345, 54321");
}
finally {
dropTable(getSession(), tableName);
Expand Down

0 comments on commit 76302f2

Please sign in to comment.