[
https://issues.apache.org/jira/browse/TAJO-840?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jaehwa Jung updated TAJO-840:
-----------------------------
Attachment: TAJO-840_4.patch
I rebased the patch against branch master and I edited a null check condition
in DistinctGroupbySortAggregationExec::next.
https://reviews.apache.org/r/21902/
> Improve query result print with counting empty table.
> ------------------------------------------------------
>
> Key: TAJO-840
> URL: https://issues.apache.org/jira/browse/TAJO-840
> Project: Tajo
> Issue Type: Improvement
> Components: physical operator, worker
> Reporter: Jaehwa Jung
> Assignee: Jaehwa Jung
> Fix For: 0.9.0, 0.8.1
>
> Attachments: TAJO-840.patch, TAJO-840_2.patch, TAJO-840_3.patch,
> TAJO-840_4.patch
>
>
> If there is no data, tsql will print as follows:
> {code:xml}
> default> select * from table1;
> id, name, score, type
> -------------------------------
> 1, name1-1, 1.1, a
> 2, name1-2, 2.3, b
> 3, name1-3, 3.4, c
> 4, name1-4, 4.5, d
> 5, name1-5, 5.6, e
> default> select count(*) from table1 where id = 10;
> Progress: 100%, response time: 0.231 sec
> ?count
> -------------------------------
> (0 rows, 0.231 sec, 0 B selected)
> {code}
> But it need to print result detailedly as follows:
> {code:xml}
> ?count
> -------------------------------
> 0
> -------------------------------
> (1 rows, 0.231 sec, 0 B selected)
> {code}
> Because if users implement some applications with TajoClient or TajoJDBC,
> they can't understand easy that a query finished successfully or a query
> finished unsuccessfully.
--
This message was sent by Atlassian JIRA
(v6.2#6252)