Dan Hecht has posted comments on this change. Change subject: IMPALA-4120: Incorrect results with LEAD() analytic function ......................................................................
Patch Set 3: Code-Review+2 (3 comments) http://gerrit.cloudera.org:8080/#/c/4740/3/be/src/exec/analytic-eval-node.cc File be/src/exec/analytic-eval-node.cc: Line 403: } so this bug was similar to IMPALA-3311 (see PartitionedAggregationNode::HandleOutputStrings()), right? but i guess we can't share the solution since in this case we're not directly populating the result row batch. Line 420: (next_partition || (fn_scope_ == RANGE && window_.__isset.window_end && this indentation seems off. what does clang-format say? http://gerrit.cloudera.org:8080/#/c/4740/3/be/src/exprs/agg-fn-evaluator.h File be/src/exprs/agg-fn-evaluator.h: PS3, Line 153: beyond the scope of the call site > I'm still not sure this is precise enough... this sounds like it's scoped a Maybe say "The memory is a local allocation and so needs to be copied out before local allocations are freed" or something? (As much as I dislike the terminology "local allocations" it is the terminology we currently have). -- To view, visit http://gerrit.cloudera.org:8080/4740 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-MessageType: comment Gerrit-Change-Id: I85bb1745232d8dd383a6047c86019c6378ab571f Gerrit-PatchSet: 3 Gerrit-Project: Impala-ASF Gerrit-Branch: master Gerrit-Owner: Michael Ho <k...@cloudera.com> Gerrit-Reviewer: Dan Hecht <dhe...@cloudera.com> Gerrit-Reviewer: Matthew Jacobs <m...@cloudera.com> Gerrit-Reviewer: Michael Ho <k...@cloudera.com> Gerrit-HasComments: Yes