GitHub user adrian-wang opened a pull request:

    https://github.com/apache/spark/pull/3131

    [SPARK-4239] [SQL] support view in HiveQl

    Currently still not support view like 
    
    CREATE VIEW view3(valoo) 
    TBLPROPERTIES ("fear" = "factor")
    AS SELECT upper(value) FROM src WHERE key=86;
    
    because the text in metastore for this view is like
    
    select `_c0` as `valoo` from (select upper(`src`.`value`) from 
`default`.`src` where ...) `view3`
    
    while catalyst cannot resolve _c0 for this query.
    For view without colname definition in parentheses, it works fine.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/adrian-wang/spark view

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/spark/pull/3131.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #3131
    
----
commit 88afcad1ffc0d4b74da20b5f706a835069450a57
Author: Daoyuan Wang <[email protected]>
Date:   2014-11-06T08:08:00Z

    support view in HiveQl

commit 079290a524bf46b342ef5deb09e3bea8418d52b5
Author: Daoyuan Wang <[email protected]>
Date:   2014-11-06T08:42:20Z

    remove useless import

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to