hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hector Lagos (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HIVE-10419) can't do query on partitioned view with analytic function in strictmode
Date Tue, 21 Apr 2015 17:29:58 GMT

     [ https://issues.apache.org/jira/browse/HIVE-10419?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Hector Lagos updated HIVE-10419:
--------------------------------
          Description: 
Hey Guys,

I created the following table:

CREATE TABLE t1 (id int, key string, value string) partitioned by (dt int);

And after that i created a view on that table as follow:

create view v1 PARTITIONED ON (dt)
as
SELECT * FROM (
SELECT row_number() over (partition by key order by value asc) as row_n, * FROM t1 
) t WHERE row_n = 1;

We are working with hive.mapred.mode=strict and when I try to do the  query select * from
v1 where dt = 2 , I'm getting the following error:

FAILED: SemanticException [Error 10041]: No partition predicate found for Alias "v1:t:t1"
Table "t1"

Is this a bug or a limitation of Hive when you use analytic functions in partitioned views?
If i remove the row_number function it works without problems. 

Thanks in advance, any help will be appreciated. 



  was:
Hey Guysm



    Affects Version/s: 0.14.0
                       1.0.0
                 Tags: view,partition,analytical function  (was: view)
              Summary: can't do query on partitioned view with analytic function in strictmode
 (was: can't do query on partitioned view with analytical function in strictmode)

> can't do query on partitioned view with analytic function in strictmode
> -----------------------------------------------------------------------
>
>                 Key: HIVE-10419
>                 URL: https://issues.apache.org/jira/browse/HIVE-10419
>             Project: Hive
>          Issue Type: Bug
>          Components: Hive, Views
>    Affects Versions: 0.13.0, 0.14.0, 1.0.0
>         Environment: Cloudera 5.3.x. 
>            Reporter: Hector Lagos
>
> Hey Guys,
> I created the following table:
> CREATE TABLE t1 (id int, key string, value string) partitioned by (dt int);
> And after that i created a view on that table as follow:
> create view v1 PARTITIONED ON (dt)
> as
> SELECT * FROM (
> SELECT row_number() over (partition by key order by value asc) as row_n, * FROM t1 
> ) t WHERE row_n = 1;
> We are working with hive.mapred.mode=strict and when I try to do the  query select *
from v1 where dt = 2 , I'm getting the following error:
> FAILED: SemanticException [Error 10041]: No partition predicate found for Alias "v1:t:t1"
Table "t1"
> Is this a bug or a limitation of Hive when you use analytic functions in partitioned
views? If i remove the row_number function it works without problems. 
> Thanks in advance, any help will be appreciated. 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message