Skip to content

Commit

Permalink
Test commit
Browse files Browse the repository at this point in the history
  • Loading branch information
tanclary committed Dec 1, 2023
1 parent f5200c3 commit 3eb6796
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1324,10 +1324,10 @@ private static String toSql(RelNode root, SqlDialect dialect,
+ "FROM foodmart.product";
final String query = "select percentile_cont(\"product_id\", 0.5) over()\n"
+ "from \"foodmart\".\"product\"";
final String expected = "SELECT PERCENTILE_CONT(product_id, 0.5) OVER ()\n"
final String expectedQuery = "SELECT PERCENTILE_CONT(product_id, 0.5) OVER ()\n"
+ "FROM foodmart.product";
sql(partitionQuery).withBigQuery().withLibrary(SqlLibrary.BIG_QUERY).ok(expectedPartition);
sql(query).withBigQuery().withLibrary(SqlLibrary.BIG_QUERY).ok(expected);
sql(query).withBigQuery().withLibrary(SqlLibrary.BIG_QUERY).ok(expectedQuery);
}

/** Test case for
Expand All @@ -1342,10 +1342,10 @@ private static String toSql(RelNode root, SqlDialect dialect,
+ "FROM foodmart.product";
final String query = "select percentile_disc(\"product_id\", 0.5) over()\n"
+ "from \"foodmart\".\"product\"";
final String expected = "SELECT PERCENTILE_DISC(product_id, 0.5) OVER ()\n"
final String expectedQuery = "SELECT PERCENTILE_DISC(product_id, 0.5) OVER ()\n"
+ "FROM foodmart.product";
sql(partitionQuery).withBigQuery().withLibrary(SqlLibrary.BIG_QUERY).ok(expectedPartition);
sql(query).withBigQuery().withLibrary(SqlLibrary.BIG_QUERY).ok(expected);
sql(query).withBigQuery().withLibrary(SqlLibrary.BIG_QUERY).ok(expectedQuery);
}

/** Test case for
Expand Down

0 comments on commit 3eb6796

Please sign in to comment.