mirror of
https://github.com/apache/impala.git
synced 2026-02-02 15:00:38 -05:00
This patch fixes the BetweenToCompound rewrite rule's binary predicate creation. When the BETWEEN expression gets separated, the first operand's reference is assigned to both upper and lower binary predicates, but in the case of different typed second and third operands, the first operand must be cloned to make type casting unique for both binary predicates. Testing: - test cases added to exprs.test Change-Id: Iaff4199f6d0875c38fa7e91033385c9290c57bf5 Reviewed-on: http://gerrit.cloudera.org:8080/19618 Reviewed-by: Impala Public Jenkins <impala-public-jenkins@cloudera.com> Tested-by: Impala Public Jenkins <impala-public-jenkins@cloudera.com>
80 KiB
80 KiB