Uploaded image for project: 'Apache Drill'
  1. Apache Drill
  2. DRILL-3323

Flatten planning rule creates unneeded copy of the list being flattened, causes executuion/allocation issues with large lists

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • Future
    • Execution - Flow
    • None

    Description

      The planning rule for flatten was written to not only handle the flatten operator, but it also was designed to address some shortcomings in expression evaluation involving complex types. The rule currently plans inefficiently to try to cover some of these more advanced cases, but there is not thorough test coverage to even demonstrate the benefits of it. We should disable a particular behavior of copying complex data and extra time when it is not needed, because it is causing flatten queries to fail with allocation issues.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              jaltekruse Jason Altekruse
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: