Skip to content

Commit

Permalink
[fix](DOE)esquery not working
Browse files Browse the repository at this point in the history
  • Loading branch information
qidaye committed Aug 1, 2023
1 parent fbc5e1c commit 432c5f8
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,11 @@ public static QueryBuilder toEsDsl(Expr expr, List<Expr> notPushDownList, Map<St
if (expr == null) {
return null;
}
// esquery functionCallExpr will be rewritten to castExpr in where clause rewriter,
// so we get the functionCallExpr here.
if (expr instanceof CastExpr) {
return toEsDsl(expr.getChild(0), notPushDownList, fieldsContext, builderOptions);
}
// CompoundPredicate, `between` also converted to CompoundPredicate.
if (expr instanceof CompoundPredicate) {
return toCompoundEsDsl(expr, notPushDownList, fieldsContext, builderOptions);
Expand Down

0 comments on commit 432c5f8

Please sign in to comment.