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

count(*) on empty JSON produce nothing

Attach filesAttach ScreenshotAdd voteVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            benj641 benj

            Dates

              Created:
              Updated:

              Slack

                Issue deployment