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

Union All does not match corresponding columns by index to union columns

    XMLWordPrintableJSON

Details

    Description

      Union all currently relies on columns to be named the same to merge them, this does not follow the behavior of traditional databases. This is a bit complicated with Drill, as we do not always know type information up front, so validating these queries will have to be less strict. We need to either fix this at planning to insert renaming based on the column orderings in the query or by changing the behavior of the operator to use the column orders that come in. This does not seem to be the best behavior as the engine canonicalizes the column order in some cases, so the order is not always preserved in the middle of processing, it is reordered at the end to provide the correct order to users.

      Attachments

        Issue Links

          Activity

            People

              seanhychu Sean Hsuan-Yi Chu
              jaltekruse Jason Altekruse
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: