-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/66370/#review200565
-----------------------------------------------------------




ql/src/java/org/apache/hadoop/hive/ql/parse/CalcitePlanner.java
Line 1314 (original), 1309 (patched)
<https://reviews.apache.org/r/66370/#comment281309>

    If it is CalciteSemanticException we convert it to SemanticException for 
saving original cause(CalciteSubquerySemanticException or 
CalciteViewSemanticException). 
    If it is Semantic exceptin we just wrapped original message into 
CalciteSemanticException. If 
    we will do 
    throw new CalciteSemanticException(first) we will have redundant exception 
message such as 
    SemanticException : CalciteSemanticException : 
CalciteSubquerySemanticException.


- Igor Kryvenko


On Апрель 1, 2018, 8:36 п.п., Igor Kryvenko wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/66370/
> -----------------------------------------------------------
> 
> (Updated Апрель 1, 2018, 8:36 п.п.)
> 
> 
> Review request for hive, Ashutosh Chauhan and Vineet Garg.
> 
> 
> Bugs: HIVE-18725
>     https://issues.apache.org/jira/browse/HIVE-18725
> 
> 
> Repository: hive-git
> 
> 
> Description
> -------
> 
> If there is a column reference within subquery which doesn't exist Hive 
> throws misleading error message.
> 
> 
> Diffs
> -----
> 
>   
> ql/src/java/org/apache/hadoop/hive/ql/optimizer/calcite/CalciteSubquerySemanticException.java
>  4321a5c7894cec0713ef6e89092ec923f8273b4c 
>   
> ql/src/java/org/apache/hadoop/hive/ql/optimizer/calcite/CalciteViewSemanticException.java
>  c2a4e94a032b46134932d4bec5f70b197788654b 
>   ql/src/java/org/apache/hadoop/hive/ql/parse/CalcitePlanner.java 
> 41de17fd4679009ef6a4fb5a6d976cbc794ce791 
>   ql/src/test/queries/clientnegative/subquery_non_exisiting_column.q 
> PRE-CREATION 
>   ql/src/test/results/clientnegative/subquery_non_exisiting_column.q.out 
> PRE-CREATION 
> 
> 
> Diff: https://reviews.apache.org/r/66370/diff/2/
> 
> 
> Testing
> -------
> 
> 
> Thanks,
> 
> Igor Kryvenko
> 
>

Reply via email to