mirror of
https://github.com/apache/impala.git
synced 2026-01-24 06:00:49 -05:00
The bug was that we were not properly cloning the params of a FunctionCallExpr. In a CTAS we analyze the underlying query stmt twice, the first time on a clone of the original stmt. The problem was that the first analysis affected the second analysis due to an improper clone, leading to missing slots in a scan because the corresponding SlotRefs were already analyzed. Change-Id: I0025c0ee54b2f2cb3ba470b26a9de5aa5a3a3ade Reviewed-on: http://gerrit.cloudera.org:8080/2291 Reviewed-by: Alex Behm <alex.behm@cloudera.com> Tested-by: Internal Jenkins