You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Sergey Shelukhin (JIRA)" <ji...@apache.org> on 2014/12/22 23:22:14 UTC

[jira] [Commented] (HIVE-8155) In select statement after * any random characters are allowed in hive but in RDBMS its not allowed

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

Sergey Shelukhin commented on HIVE-8155:
----------------------------------------

What would the original result of the query be? There's code in Hive where * is resolved that appears to resolve column names based on regex. I never tried it, but it seems that the original intent might have been to be able to pattern-match columns, E.g. select *_name from employee to select first and last name, or something. It's rather esoteric, but would be nice to check

>  In select statement after * any random characters are allowed in hive but in RDBMS its not allowed
> ---------------------------------------------------------------------------------------------------
>
>                 Key: HIVE-8155
>                 URL: https://issues.apache.org/jira/browse/HIVE-8155
>             Project: Hive
>          Issue Type: Improvement
>            Reporter: Ferdinand Xu
>            Assignee: Dong Chen
>            Priority: Critical
>         Attachments: HIVE-8155.patch
>
>
> In select statement after * any random characters are allowed in hive but in RDBMS its not allowed. 
> Steps:
> In the below query "abcdef" is random characters.
> In RDBMS(oracle): 
> select *abcdef from mytable;
> Output: 
> ERROR prepare() failed with: ORA-00923: FROM keyword not found where expected
> In Hive:
> select *abcdef from mytable;
> Output: 
> Query worked fine and display all the records of mytable.



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