Skip to content

Commit

Permalink
fix line is longer
Browse files Browse the repository at this point in the history
  • Loading branch information
Chen768959 committed Dec 8, 2023
1 parent 9fdbade commit d1f9cd9
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7457,9 +7457,12 @@ private void checkLiteral2(String expression, String expected) {
* <a href="https://issues.apache.org/jira/browse/CALCITE-6149">[CALCITE-6149]
* unparse for CAST Nullable with ClickHouseSqlDialect</a>. */
@Test void testClickhouseNullableFieldCast() {
final String query = "SELECT CASE WHEN \"product_id\" IS NULL THEN CAST(\"product_id\" AS TINYINT) END, CAST(\"product_id\" AS TINYINT)\n"
final String query = ""
+ "SELECT CASE WHEN \"product_id\" IS NULL "
+ "THEN CAST(\"product_id\" AS TINYINT) END, CAST(\"product_id\" AS TINYINT)\n"
+ "FROM \"foodmart\".\"product\"";
final String expectedSql = "SELECT CAST(NULL AS `Nullable(Int8)`), CAST(`product_id` AS `Int8`)\n"
final String expectedSql = ""
+ "SELECT CAST(NULL AS `Nullable(Int8)`), CAST(`product_id` AS `Int8`)\n"
+ "FROM `foodmart`.`product`";

sql(query).withClickHouse().ok(expectedSql);
Expand Down

0 comments on commit d1f9cd9

Please sign in to comment.