[ 
https://issues.apache.org/jira/browse/TAJO-1183?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14232658#comment-14232658
 ] 

Hyunsik Choi commented on TAJO-1183:
------------------------------------

+1

I'm sorry for late review. The patch looks good to me. I just tested your patch 
on my machine. It works well.

{noformat}
cat > test.sql
\set ON_ERROR_STOP true
select * from tablex1;select * from tablex2;
<ctrl +d>

$ bin/tsql -f test.sql 
2014-12-03 15:26:36.048 java[8598:1065201] Unable to load realm info from 
SCDynamicStore
ERROR: relation "default.table1" does not exist

$ cat > test.sql
select * from tablex1;select * from tablex2;
<ctrl +d>

$ bin/tsql -f test.sql 
2014-12-03 15:24:17.733 java[8373:1063964] Unable to load realm info from 
SCDynamicStore
ERROR: relation "default.table1" does not exist
ERROR: relation "default.table2" does not exist

$ bin/tsql
default> select * from table2; select * from table3;
ERROR: relation "default.table2" does not exist
ERROR: relation "default.table3" does not exist
{noformat}

> Some statements are seemingly ignored when multiple statements are entered in 
> one line.
> ---------------------------------------------------------------------------------------
>
>                 Key: TAJO-1183
>                 URL: https://issues.apache.org/jira/browse/TAJO-1183
>             Project: Tajo
>          Issue Type: Bug
>            Reporter: Jaewoong Jung
>            Assignee: Jaewoong Jung
>            Priority: Minor
>
> Found this while working on TAJO-1159.
> See the below example, which basically shows entering 2 SQL statements in one 
> line.
> ex)
> jungjw$ $TAJO_HOME/bin/tsql
> Try \? for help.
> default> select * from table1; select * from table2;
> ERROR: relation "default.table1" does not exist
> default>
> As you can see, I'm not seeing the error message for "select * from table2" 
> statement. I don't know yet whether the statement itself is completely 
> ignored or tsql is just showing only one error message here, though. I'm 
> guessing that tsql stops executing following statements if it runs into an 
> error.
> Will take a closer look after resolving other issues.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to