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

Dir0 has issues when we have a '/' at the beginning of the path

    XMLWordPrintableJSON

Details

    Description

      Follow the below steps :

      hadoop fs -mkdir /drill/testdata/repro1/20150120
      hadoop fs -mkdir /drill/testdata/repro1/20150121
      
      1. Add the below workspace :
      "repro1": {
            "location": "/drill/testdata/repro1",
            "writable": true,
            "defaultInputFormat": "parquet"
          }
      
      2. Now copy a sample json file into both the above directories
      

      The below query returns incorrect results :

      select * from dfs.repro1.`/*/sample.json` limit 1;
      +-----------+---------+-----------+-----+------+
      |   dir0    |  dir1   |   dir2    | id  | val  |
      +-----------+---------+-----------+-----+------+
      | testdata  | repro1  | 20150121  | 1   | 1    |
      +-----------+---------+-----------+-----+------+
      

      The same query worked from an older build (commit # d10769f478900ff1868d206086874bdd67a45e7d)

      select * from dfs.repro1.`/*/sample.json` limit 1;
      +------------+------------+------------+
      |    dir0    |     id     |    val     |
      +------------+------------+------------+
      | 20150121   | 1          | 1          |
      +------------+------------+------------+
      

      Attachments

        Activity

          People

            paul-rogers Paul Rogers
            rkins Rahul Kumar Challapalli
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated: