Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-22236

Fail to create View selecting View containing NOT IN subquery

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 4.0.0-alpha-1
    • None
    • None

    Description

      • 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.

      Attachments

        1. HIVE-22236.01.patch
          6 kB
          Zoltan Matyus
        2. HIVE-22236.02.patch
          6 kB
          Zoltan Matyus
        3. HIVE-22236.03.patch
          7 kB
          Zoltan Matyus
        4. HIVE-22236.q
          0.7 kB
          Zoltan Matyus

        Activity

          People

            zmatyus Zoltan Matyus
            zmatyus Zoltan Matyus
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: