Return-Path: X-Original-To: apmail-hive-dev-archive@www.apache.org Delivered-To: apmail-hive-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 89AE910D7B for ; Sun, 5 Jan 2014 13:46:31 +0000 (UTC) Received: (qmail 42389 invoked by uid 500); 5 Jan 2014 13:45:53 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 42310 invoked by uid 500); 5 Jan 2014 13:45:52 -0000 Mailing-List: contact dev-help@hive.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@hive.apache.org Delivered-To: mailing list dev@hive.apache.org Received: (qmail 42294 invoked by uid 500); 5 Jan 2014 13:45:51 -0000 Delivered-To: apmail-hadoop-hive-dev@hadoop.apache.org Received: (qmail 42290 invoked by uid 99); 5 Jan 2014 13:45:50 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 05 Jan 2014 13:45:50 +0000 Date: Sun, 5 Jan 2014 13:45:50 +0000 (UTC) From: "dima machlin (JIRA)" To: hive-dev@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HIVE-6141) Can't select from views after upgrading metastore from 0.7 to 0.10 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HIVE-6141?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] dima machlin updated HIVE-6141: ------------------------------- Description: Selecting from a view created in 0.7 after upgrade to 0.10 fails on bq. Invalid table alias or column reference The reason is that while running this : bq. create view a as select b from c.d; in v0.7 will generate in the metastore this SQL : bq. select `*c.*d`.b from `c`.`d`; which fails in v0.10 While running the same create SQL in v0.10 generates different SQL : bq. select `d`.b from `c`.`d`; which succeeds in v0.10. A workaround is to recreate the view. was: Selecting from a view created in 0.7 after upgrade to 0.10 fails on bq. Invalid table alias or column reference The reason is that while running this : bq. create view a as select b from c.d; in v0.7 will generate in the metastore this SQL : bq. select `*c.*d`.b from `c`.`d`; which fails in v0.10 While running the same SQL in v0.10 generates different SQL : bq. select `d`.b from `c`.`d`; which succeeds in v0.10. A workaround is to recreate the view. > Can't select from views after upgrading metastore from 0.7 to 0.10 > ------------------------------------------------------------------ > > Key: HIVE-6141 > URL: https://issues.apache.org/jira/browse/HIVE-6141 > Project: Hive > Issue Type: Bug > Components: Metastore > Affects Versions: 0.10.0 > Reporter: dima machlin > Priority: Minor > > Selecting from a view created in 0.7 after upgrade to 0.10 fails on > bq. Invalid table alias or column reference > The reason is that while running this : > bq. create view a as select b from c.d; > in v0.7 will generate in the metastore this SQL : > bq. select `*c.*d`.b from `c`.`d`; > which fails in v0.10 > While running the same create SQL in v0.10 generates different SQL : > bq. select `d`.b from `c`.`d`; > which succeeds in v0.10. > A workaround is to recreate the view. -- This message was sent by Atlassian JIRA (v6.1.5#6160)