You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@impala.apache.org by "Tim Armstrong (JIRA)" <ji...@apache.org> on 2017/09/08 18:11:01 UTC

[jira] [Created] (IMPALA-5911) Grouping aggregations with having conjuncts and Serialize()/Finalize() functions may return incorrect results

Tim Armstrong created IMPALA-5911:
-------------------------------------

             Summary: Grouping aggregations with having conjuncts and Serialize()/Finalize() functions may return incorrect results
                 Key: IMPALA-5911
                 URL: https://issues.apache.org/jira/browse/IMPALA-5911
             Project: IMPALA
          Issue Type: Bug
          Components: Backend
    Affects Versions: Impala 2.10.0
            Reporter: Tim Armstrong
            Assignee: Tim Armstrong
            Priority: Critical


The QueryMaintenance() call below is problematic because it may free local allocations made by the Finalize() or Serialize() call in the GetOutputTuple() function.

{code}
  while (!output_iterator_.AtEnd()) {
    // This loop can go on for a long time if the conjuncts are very selective. Do query
    // maintenance every N iterations.
    if ((count++ & (N - 1)) == 0) {
      RETURN_IF_CANCELLED(state);
      RETURN_IF_ERROR(QueryMaintenance(state));
    }
{code}

I need to come up with a reproduction but filing the bug to track the issue.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)