You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Dongming Liang (JIRA)" <ji...@apache.org> on 2015/02/04 19:38:35 UTC
[jira] [Commented] (HIVE-5326) Operators && and || do not work
[ https://issues.apache.org/jira/browse/HIVE-5326?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14305692#comment-14305692 ]
Dongming Liang commented on HIVE-5326:
--------------------------------------
I will work on a patch for it.
> Operators && and || do not work
> -------------------------------
>
> Key: HIVE-5326
> URL: https://issues.apache.org/jira/browse/HIVE-5326
> Project: Hive
> Issue Type: Bug
> Components: Query Processor
> Reporter: Amareshwari Sriramadasu
>
> Though the documentation https://cwiki.apache.org/Hive/languagemanual-udf.html says they are same as AND and OR, they do not even get parsed. User gets parsing when they are used.
> hive> select key from src where key=a || key =b;
> FAILED: Parse Error: line 1:33 cannot recognize input near '|' 'key' '=' in expression specification
> hive> select key from src where key=a && key =b;
> FAILED: Parse Error: line 1:33 cannot recognize input near '&' 'key' '=' in expression specification
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)