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

when 'select *' is used along with an order by on length of a column, Drill is adding the computed length to the list of columns

    XMLWordPrintableJSON

Details

    Description

      git.commit.id.abbrev=9dfa4a1

      Dataset :

      {
       "col1":1,
       "col2":"a"
      }
      {
       "col1":2,
       "col2":"b"
      }
      {
       "col1":2,
       "col2":"abc"
      }
      

      Query :

       select * from `b.json` order by length(col2);
      +------------+------------+------------+
      |    col1    |    col2    |   EXPR$1   |
      +------------+------------+------------+
      | 1          | a          | 1          |
      | 2          | b          | 1          |
      | 2          | abc        | 3          |
      +------------+------------+------------+
      

      Drill adds the length column. (EXPR$1) Not sure if this is intended behavior since postgres does not do this

      Attachments

        Issue Links

          Activity

            People

              jni Jinfeng Ni
              rkins Rahul Kumar Challapalli
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: