Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
1.13.0
-
None
Description
The count function shouldn't return null result. For the 0 rows case it should always return 0.
0: jdbc:drill:zk=local> select count(`last_name`) from dfs.`/tmp/empty_file.json`; +---------+ | EXPR$0 | +---------+ +---------+ No rows selected (0.3 seconds)
The result should be the similar to:
0: jdbc:drill:zk=local> select count(`non_existent_column`) from cp.`employee.json`; +---------+ | EXPR$0 | +---------+ | 0 | +---------+ 1 row selected (0.274 seconds)
Note: empty_file.json is an empty file.