zhztheplayer commented on a change in pull request #1013: [CALCITE-2791]Add the
JSON_TYPE function
URL: https://github.com/apache/calcite/pull/1013#discussion_r251231439
##########
File path:
core/src/test/java/org/apache/calcite/sql/test/SqlOperatorBaseTest.java
##########
@@ -4473,6 +4473,32 @@ private void checkNullOperand(SqlTester tester, String
op) {
"{\"foo\":{\"foo\":\"bar\"}}", "VARCHAR(2000) NOT NULL");
}
+ @Test public void testJsonType() {
+ tester.setFor(SqlStdOperatorTable.JSON_TYPE);
+ tester.checkString("json_type('1')",
Review comment:
I guess the right case should be
```java
tester.checkString("json_type('1')", "INTEGER", "VARCHAR(20) NOT NULL");
```
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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