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

select * query returns wrong result when column name in json file changes case

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • 0.8.0
    • 1.0.0
    • Storage - JSON
    • None

    Description

      #Sun Jan 18 21:24:57 EST 2015
      git.commit.id.abbrev=a418af1
      

      test.json - column "city" has upper case C in the second row

      { "CustomerId": "100", "city": 10 }
      { "CustomerId": "101", "City": 20 }
      

      Wrong result:

      0: jdbc:drill:schema=dfs> select * from `test.json`;
      +------------+------------+
      | CustomerId |    city    |
      +------------+------------+
      | 100        | null       |
      | 101        | 20         |
      +------------+------------+
      2 rows selected (0.077 seconds)
      

      Attachments

        1. DRILL-2036.patch
          3 kB
          Steven Phillips

        Issue Links

          Activity

            People

              sphillips Steven Phillips
              vicky Victoria Markman
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: