[ 
https://issues.apache.org/jira/browse/TAJO-840?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jaehwa Jung updated TAJO-840:
-----------------------------

    Description: 
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.

  was:
If there is no data, tsql will print as follows:
{code:xml}
?count
-------------------------------
(0 rows, 0.4 sec, 0 B selected)
{code}

But it need to print result detailedly as follows:
{code:xml}
?count
-------------------------------
0
-------------------------------
(1 rows, 0.4 sec, 0 B selected)
{code}




>  Improve query result print with counting rows get zero.
> --------------------------------------------------------
>
>                 Key: TAJO-840
>                 URL: https://issues.apache.org/jira/browse/TAJO-840
>             Project: Tajo
>          Issue Type: Improvement
>            Reporter: Jaehwa Jung
>            Assignee: Jaehwa Jung
>
> 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)

Reply via email to