-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add native 'array contains element' filter #15366
Changes from all commits
f1588eb
f91dce6
8db6bae
6c6be26
0a2c08b
0cf0fff
72176f1
671806b
46d6856
e34d380
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3327,11 +3327,11 @@ public void validateArguments(List<Expr> args) | |
@Override | ||
public ExpressionType getOutputType(Expr.InputBindingInspector inspector, List<Expr> args) | ||
{ | ||
ExpressionType type = ExpressionType.LONG; | ||
ExpressionType type = null; | ||
for (Expr arg : args) { | ||
type = ExpressionTypeConversion.function(type, arg.getOutputType(inspector)); | ||
type = ExpressionTypeConversion.leastRestrictiveType(type, arg.getOutputType(inspector)); | ||
} | ||
return ExpressionType.asArrayType(type); | ||
return type == null ? null : ExpressionTypeFactory.getInstance().ofArray(type); | ||
} | ||
Comment on lines
-3330
to
3335
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. why was this changed? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. it was wrong in some cases and written before
which doesn't happen after the change. Will add a test. |
||
|
||
/** | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for moving these from expression benchmarks to here