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

count(*) on empty JSON produce nothing

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.17.0
    • None
    • Storage - JSON
    • 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

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

              Dates

                Created:
                Updated: