danny0405 commented on a change in pull request #2093:
URL: https://github.com/apache/calcite/pull/2093#discussion_r464753949
##########
File path:
core/src/test/java/org/apache/calcite/rel/rel2sql/RelToSqlConverterTest.java
##########
@@ -5050,6 +5050,13 @@ private void checkLiteral2(String expression, String
expected) {
}
@Test void testSelectNull() {
+ String query = "SELECT NULL AS DUMMY FROM \"product\"";
+ final String expected = "SELECT CAST(NULL AS NULL) AS \"DUMMY\"\n"
+ + "FROM \"foodmart\".\"product\"";
+ sql(query).ok(expected);
Review comment:
Can we promote the `CAST(NULL AS NULL)` to just `NULL` ?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]