You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@drill.apache.org by "benj (Jira)" <ji...@apache.org> on 2020/01/07 16:43:00 UTC

[jira] [Created] (DRILL-7516) count(*) on empty JSON produce nothing

benj created DRILL-7516:
---------------------------

             Summary: count(*) on empty JSON produce nothing
                 Key: DRILL-7516
                 URL: https://issues.apache.org/jira/browse/DRILL-7516
             Project: Apache Drill
          Issue Type: Bug
          Components: Storage - JSON
    Affects Versions: 1.17.0
            Reporter: benj


With 2 files containing nothing

{code:bash}
touch 0.csv
touch 0.json
{code}

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

{code:sql}
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)
{code}







--
This message was sent by Atlassian Jira
(v8.3.4#803005)