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

count(*) on empty JSON produce nothing

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 1.17.0
    • Fix Version/s: None
    • Component/s: Storage - JSON
    • Labels:
      None

      Description

      With 2 files containing nothing

      touch 0.csv
      touch 0.json
      

      the count( * ) doesn't produce the same result

      apache drill> select count(*) from dfs.TEST.`0.json`;
      +--------+
      | EXPR$0 |
      +--------+
      +--------+
      No rows selected (0.151 seconds)
      
      apache drill> select count(*) from dfs.TEST.`0.csv`;
      +--------+
      | EXPR$0 |
      +--------+
      | 0      |
      +--------+
      1 row selected (0.415 seconds)
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                benj641 benj
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated: