Skip to content

Commit

Permalink
add not-null case
Browse files Browse the repository at this point in the history
  • Loading branch information
Chen768959 committed Dec 6, 2023
1 parent 0e33a50 commit 9fdbade
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7457,9 +7457,9 @@ 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_name\" IS NULL THEN \"product_name\"+ 1 END\n"
final String query = "SELECT CASE WHEN \"product_id\" IS NULL THEN CAST(\"product_id\" AS TINYINT) END, CAST(\"product_id\" AS TINYINT)\n"

Check failure on line 7460 in core/src/test/java/org/apache/calcite/rel/rel2sql/RelToSqlConverterTest.java

View workflow job for this annotation

GitHub Actions / Linux (JDK 19)

[Task :core:checkstyleTest] [LineLength] Line is longer than 100 characters (found 142).

Check failure on line 7460 in core/src/test/java/org/apache/calcite/rel/rel2sql/RelToSqlConverterTest.java

View workflow job for this annotation

GitHub Actions / Linux (JDK 8), oldest Guava, America/New_York Timezone

[Task :core:checkstyleTest] [LineLength] Line is longer than 100 characters (found 142).

Check failure on line 7460 in core/src/test/java/org/apache/calcite/rel/rel2sql/RelToSqlConverterTest.java

View workflow job for this annotation

GitHub Actions / Linux (JDK 17)

[Task :core:checkstyleTest] [LineLength] Line is longer than 100 characters (found 142).

Check failure on line 7460 in core/src/test/java/org/apache/calcite/rel/rel2sql/RelToSqlConverterTest.java

View workflow job for this annotation

GitHub Actions / Linux (JDK 11), Pacific/Chatham Timezone

[Task :core:checkstyleTest] [LineLength] Line is longer than 100 characters (found 142).

Check failure on line 7460 in core/src/test/java/org/apache/calcite/rel/rel2sql/RelToSqlConverterTest.java

View workflow job for this annotation

GitHub Actions / Linux (JDK 11), Avatica main

[Task :core:checkstyleTest] [LineLength] Line is longer than 100 characters (found 142).

Check failure on line 7460 in core/src/test/java/org/apache/calcite/rel/rel2sql/RelToSqlConverterTest.java

View workflow job for this annotation

GitHub Actions / Linux (JDK 8), latest Guava, America/New_York Timezone

[Task :core:checkstyleTest] [LineLength] Line is longer than 100 characters (found 142).

Check failure on line 7460 in core/src/test/java/org/apache/calcite/rel/rel2sql/RelToSqlConverterTest.java

View workflow job for this annotation

GitHub Actions / macOS (JDK 19)

[Task :core:checkstyleTest] [LineLength] Line is longer than 100 characters (found 142).
+ "FROM \"foodmart\".\"product\"";
final String expectedSql = "SELECT CAST(NULL AS `Nullable(Int32)`)\n"
final String expectedSql = "SELECT CAST(NULL AS `Nullable(Int8)`), CAST(`product_id` AS `Int8`)\n"

Check failure on line 7462 in core/src/test/java/org/apache/calcite/rel/rel2sql/RelToSqlConverterTest.java

View workflow job for this annotation

GitHub Actions / Linux (JDK 19)

[Task :core:checkstyleTest] [LineLength] Line is longer than 100 characters (found 102).

Check failure on line 7462 in core/src/test/java/org/apache/calcite/rel/rel2sql/RelToSqlConverterTest.java

View workflow job for this annotation

GitHub Actions / Linux (JDK 8), oldest Guava, America/New_York Timezone

[Task :core:checkstyleTest] [LineLength] Line is longer than 100 characters (found 102).

Check failure on line 7462 in core/src/test/java/org/apache/calcite/rel/rel2sql/RelToSqlConverterTest.java

View workflow job for this annotation

GitHub Actions / Linux (JDK 17)

[Task :core:checkstyleTest] [LineLength] Line is longer than 100 characters (found 102).

Check failure on line 7462 in core/src/test/java/org/apache/calcite/rel/rel2sql/RelToSqlConverterTest.java

View workflow job for this annotation

GitHub Actions / Linux (JDK 11), Pacific/Chatham Timezone

[Task :core:checkstyleTest] [LineLength] Line is longer than 100 characters (found 102).

Check failure on line 7462 in core/src/test/java/org/apache/calcite/rel/rel2sql/RelToSqlConverterTest.java

View workflow job for this annotation

GitHub Actions / Linux (JDK 11), Avatica main

[Task :core:checkstyleTest] [LineLength] Line is longer than 100 characters (found 102).

Check failure on line 7462 in core/src/test/java/org/apache/calcite/rel/rel2sql/RelToSqlConverterTest.java

View workflow job for this annotation

GitHub Actions / Linux (JDK 8), latest Guava, America/New_York Timezone

[Task :core:checkstyleTest] [LineLength] Line is longer than 100 characters (found 102).

Check failure on line 7462 in core/src/test/java/org/apache/calcite/rel/rel2sql/RelToSqlConverterTest.java

View workflow job for this annotation

GitHub Actions / macOS (JDK 19)

[Task :core:checkstyleTest] [LineLength] Line is longer than 100 characters (found 102).
+ "FROM `foodmart`.`product`";

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

0 comments on commit 9fdbade

Please sign in to comment.