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

Can't select from views after upgrading metastore from 0.7 to 0.10

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 0.10.0
    • None
    • Metastore
    • None

    Description

      Selecting from a view created in 0.7 after upgrade to 0.10 fails on

      Invalid table alias or column reference

      The reason is that while running this :

      create view a as select b from c.d;

      in v0.7 will generate in the metastore this SQL :

      select `c.d`.b from `c`.`d`;

      which fails in v0.10
      While running the same create SQL in v0.10 generates different SQL in the metastore :

      select `d`.b from `c`.`d`;

      which succeeds in v0.10 (notice there is no DB prefix in the select part)

      A workaround is to recreate the view.

      Attachments

        Activity

          People

            Unassigned Unassigned
            dimamah dima machlin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: