You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Zheng Shao (JIRA)" <ji...@apache.org> on 2010/02/23 23:22:27 UTC

[jira] Commented: (HIVE-1184) Expression Not In Group By Key error is sometimes masked

    [ https://issues.apache.org/jira/browse/HIVE-1184?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12837476#action_12837476 ] 

Zheng Shao commented on HIVE-1184:
----------------------------------

The explanation looks good to me, but I am not convinced the solution will solve the problem.

When processing "concat(value, concat(value))". we will set "error" when processing the first "value", then overwrite the "error" when processing the second "value", correct?
I think the "error" should be part of the "return value" of the "process" function, instead of a global field in the "context".

Does that make sense?


> Expression Not In Group By Key error is sometimes masked
> --------------------------------------------------------
>
>                 Key: HIVE-1184
>                 URL: https://issues.apache.org/jira/browse/HIVE-1184
>             Project: Hadoop Hive
>          Issue Type: Bug
>    Affects Versions: 0.6.0
>            Reporter: Paul Yang
>            Assignee: Paul Yang
>         Attachments: HIVE-1184.1.patch
>
>
> Depending on the order of expressions, the error message for a expression not in group key is not displayed; instead it is null.
> {code}
> hive> select concat(value, concat(value)) from src group by concat(value);
> FAILED: Error in semantic analysis: null
> hive> select concat(concat(value), value) from src group by concat(value);
> FAILED: Error in semantic analysis: line 1:29 Expression Not In Group By Key value
> {code}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.