joewee commented on code in PR #4326:
URL: https://github.com/apache/calcite/pull/4326#discussion_r2055408592
##########
core/src/main/java/org/apache/calcite/sql/SqlDelete.java:
##########
@@ -32,7 +32,20 @@
*/
public class SqlDelete extends SqlCall {
public static final SqlSpecialOperator OPERATOR =
- new SqlSpecialOperator("DELETE", SqlKind.DELETE);
+ new SqlSpecialOperator("DELETE", SqlKind.DELETE) {
+ @SuppressWarnings("argument.type.incompatible")
+ @Override public SqlCall createCall(
+ @Nullable SqlLiteral functionQualifier,
+ SqlParserPos pos,
+ @Nullable SqlNode... operands) {
+ return new SqlDelete(
+ pos,
+ operands[0],
+ operands[1],
+ operands.length > 2 ? (SqlSelect) operands[2] : null,
Review Comment:
I looked at the createCall method of other sqlcall operators, and it seems
that none of them check the length. I keep it the same?😁
--
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]