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

Different logical plan based on field names

    XMLWordPrintableJSON

Details

    Description

      The following two queries produce different logical plans:

      select count(*) from cp.`employee.json` where mytestFieldNum = 4 and myOtherLongIdString = '12345'
      
      select count(*) from cp.`employee.json` where my_testFieldNum = 4 and my_OtherLongIdString = '12345'
      

      The latter adds a project step to the logical plan. The ramifications of this means that, for example, the Mongo storage provider will not push down filters because it's matching on a scan/filter.

      It has nothing to do with the underscore - in fact, it seems if you substitute the underscore with a variety of characters, it produces different results.

      It also seems to not be reliant on the length of the field names in question.

      These two queries should really produce identical logical plans.

      Attachments

        Activity

          People

            Unassigned Unassigned
            dragoncurve Adam Gilmore
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: