Uploaded image for project: 'IMPALA'
  1. IMPALA
  2. IMPALA-5270

Crash with ORDER BY in OVER clause with RANDOM

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: Impala 2.6.0, Impala 2.7.0, Impala 2.8.0, Impala 2.9.0, Impala 2.10.0, Impala 2.11.0
    • Fix Version/s: Impala 2.12.0
    • Component/s: Frontend
    • Labels:

      Description

      A recent change IMPALA-4728 added materialization of sort expressions for performance and to solve an issue with sorting on non-deterministic expressions.
      However, this change doesn't materialize sort exprs when you have an inline view combined with an analytic function.

      Example:

      select id, r, last_value(r) over (order by r) from
        (select id, random() r from functional.alltypestiny) x
      

      A query like the above can lead to a crash just like in IMPALA-4731.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                alex.behm Alexander Behm
                Reporter:
                twmarshall Thomas Tauber-Marshall
              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: