[
https://issues.apache.org/jira/browse/HIVE-22236?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16936643#comment-16936643
]
Zoltan Matyus commented on HIVE-22236:
--------------------------------------
Attached minimum script to reproduce.
> Fail to create View selecting View containing NOT IN subquery
> -------------------------------------------------------------
>
> Key: HIVE-22236
> URL: https://issues.apache.org/jira/browse/HIVE-22236
> Project: Hive
> Issue Type: Bug
> Reporter: Zoltan Matyus
> Assignee: Zoltan Matyus
> Priority: Minor
> Attachments: HIVE-22236.q
>
>
> * Given a complicated view with a select statement that has subquery
> containing "{{NOT IN}}"
> * Hive fails to create a simple view as {{SELECT * FROM complicated_view}}
> * (with CBO disabled).
> The unparse replacements of the complicated view will be applied to the text
> of the simple view, resulting in {{IllegalArgumentException: replace: range
> invalid}} exceptions from {{org.antlr.runtime.TokenRewriteStream.replace}}.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)