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

select * is not working with flatten

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • None
    • None
    • Functions - Drill
    • None

    Description

      git.commit.id.abbrev=c54bd6a

      Data Set :

      {
        "id" : 1,
        "lst" : [1,2,3]
      }
      

      The below queries incorrectly return null

      0: jdbc:drill:schema=dfs> select *, flatten(lst) from `temp.json`;
      +------------+------------+
      |     *      |   EXPR$1   |
      +------------+------------+
      | null       | 1          |
      | null       | 2          |
      | null       | 3          |
      +------------+------------+
      
      0: jdbc:drill:schema=dfs> select * from `temp.json` order by flatten(lst);
      +------------+
      |     *      |
      +------------+
      | null       |
      | null       |
      | null       |
      +------------+
      

      Attachments

        Issue Links

          Activity

            People

              dsbos Daniel Barclay
              rkins Rahul Kumar Challapalli
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: