You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "Viktor Gerdin (JIRA)" <ji...@apache.org> on 2017/01/27 12:46:24 UTC

[jira] [Commented] (HIVE-2409) Semicolons in strings/comments are parsed as query-ending.

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

Viktor Gerdin commented on HIVE-2409:
-------------------------------------

This is still an issue (Hive version 1.2.1.2.4 via HDP 2.4).

> Semicolons in strings/comments are parsed as query-ending.
> ----------------------------------------------------------
>
>                 Key: HIVE-2409
>                 URL: https://issues.apache.org/jira/browse/HIVE-2409
>             Project: Hive
>          Issue Type: Bug
>          Components: Query Processor
>            Reporter: Adam Kramer
>
> This fails:
> select '.*? (f_.*?)[ ;$]' from akramer_one_row ;
> This succeeds:
> select '.*? (f_.*?)[ \;$]' from akramer_one_row ;
> ...there is no reasonable syntactic structure that wuold require the escaping of a semicolon in a '-marked string. The query parser should NOT split on semicolons that are in strings OR in comments. 



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