xiedeyantu commented on code in PR #4334:
URL: https://github.com/apache/calcite/pull/4334#discussion_r2061267841
##########
core/src/main/java/org/apache/calcite/sql/fun/SqlJsonQueryFunction.java:
##########
@@ -45,12 +45,24 @@
import java.util.List;
import java.util.Optional;
+import static org.apache.calcite.sql.type.OperandTypes.family;
+
import static java.util.Objects.requireNonNull;
/**
* The <code>JSON_QUERY</code> function.
*/
public class SqlJsonQueryFunction extends SqlFunction {
+ static final SqlSingleOperandTypeChecker TYPE_CHECKER =
Review Comment:
I have a small question, can it be written like this?
```
public static final SqlSingleOperandTypeChecker TYPE_CHECKER =
family(SqlTypeFamily.ANY, SqlTypeFamily.CHARACTER,
SqlTypeFamily.ANY, SqlTypeFamily.ANY, SqlTypeFamily.ANY)
.or(family(SqlTypeFamily.ANY));
```
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]