Skip to content

Commit

Permalink
4
Browse files Browse the repository at this point in the history
  • Loading branch information
xinyiZzz committed Mar 28, 2023
1 parent 56c2d85 commit 50824d2
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -579,8 +579,8 @@ public class BuiltinScalarFunctions implements FunctionHelper {
scalar(Sm3.class, "sm3"),
scalar(Sm3sum.class, "sm3sum"),
scalar(Sm4Decrypt.class, "sm4_decrypt"),
scalar(Sm4Encrypt.class, "sm4_encrypt"),
scalar(Sm4DecryptV2.class, "sm4_decrypt_v2"),
scalar(Sm4Encrypt.class, "sm4_encrypt"),
scalar(Sm4EncryptV2.class, "sm4_encrypt_v2"),
scalar(Space.class, "space"),
scalar(SplitByChar.class, "split_by_char"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,6 @@ public AesDecrypt withChildren(List<Expression> children) {
} else if (children().size() == 3) {
return new AesDecrypt(children.get(0), children.get(1), children.get(2));
} else {
if (!(children.get(3) instanceof StringLiteral)) {
throw new AnalysisException("the 4th parameter should be string literal: " + this.toSql());
}
return new AesDecrypt(children.get(0), children.get(1), children.get(2), (StringLiteral) children.get(3));
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,6 @@ public AesDecryptV2 withChildren(List<Expression> children) {
} else if (children().size() == 3) {
return new AesDecryptV2(children.get(0), children.get(1), children.get(2));
} else {
if (!(children.get(3) instanceof StringLiteral)) {
throw new AnalysisException("the 4th parameter should be string literal: " + this.toSql());
}
return new AesDecryptV2(children.get(0), children.get(1), children.get(2), (StringLiteral) children.get(3));
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,6 @@ public AesEncrypt withChildren(List<Expression> children) {
} else if (children().size() == 3) {
return new AesEncrypt(children.get(0), children.get(1), children.get(2));
} else {
if (!(children.get(3) instanceof StringLiteral)) {
throw new AnalysisException("the 4th parameter should be string literal: " + this.toSql());
}
return new AesEncrypt(children.get(0), children.get(1), children.get(2), (StringLiteral) children.get(3));
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,6 @@ public AesEncryptV2 withChildren(List<Expression> children) {
} else if (children().size() == 3) {
return new AesEncryptV2(children.get(0), children.get(1), children.get(2));
} else {
if (!(children.get(3) instanceof StringLiteral)) {
throw new AnalysisException("the 4th parameter should be string literal: " + this.toSql());
}
return new AesEncryptV2(children.get(0), children.get(1), children.get(2), (StringLiteral) children.get(3));
}
}
Expand Down

0 comments on commit 50824d2

Please sign in to comment.