chunweilei commented on a change in pull request #1095: [CALCITE-2599] add the
ASCII function
URL: https://github.com/apache/calcite/pull/1095#discussion_r264001145
##########
File path:
core/src/test/java/org/apache/calcite/sql/test/SqlOperatorBaseTest.java
##########
@@ -4247,6 +4247,14 @@ private void checkNullOperand(SqlTester tester, String
op) {
tester.checkNull("CHARACTER_LENGTH(cast(null as varchar(1)))");
}
+ @Test public void testAsciiFunc() {
+ tester.setFor(SqlStdOperatorTable.ASCII);
+ tester.checkScalarExact("ASCII('')", "0");
Review comment:
Ok, I will add more test cases.
----------------------------------------------------------------
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]
With regards,
Apache Git Services