mirror of
https://github.com/apache/impala.git
synced 2026-01-08 03:02:48 -05:00
distinct This commit fixes two subquery issues: 1. During the rewrite of aggregate subqueries with count, a new select list is created for the outer select block to eliminate new visible tuples. However, the new select list was not initialized correctly, causing distinct clauses to not be preserved. 2. Pushing negation to operands during a query rewrite was causing a StackOverflowError when it was encountering predicates for which a negate function is not implemented. Consequently, it was using the negate function from the parent class causing it to recurse infinitely. Change-Id: I6f1b8090af40fa55b13661d637f9aaaa00dfcf5c Reviewed-on: http://gerrit.sjc.cloudera.com:8080/4115 Reviewed-by: Dimitris Tsirogiannis <dtsirogiannis@cloudera.com> Tested-by: jenkins Reviewed-on: http://gerrit.sjc.cloudera.com:8080/4141