hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jesus Camacho Rodriguez (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HIVE-17867) Exception in windowing functions with TIMESTAMP WITH LOCAL TIME ZONE type
Date Fri, 20 Oct 2017 18:31:00 GMT

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

Jesus Camacho Rodriguez updated HIVE-17867:
-------------------------------------------
    Description: 
The following query where column {{ts}} is of type {{TIMESTAMP WITH LOCAL TIME ZONE}}:
{code}
select ts, i, sum(f) over (partition by i order by ts)
from over10k_2
limit 100;
{code}
fails with the following stacktrace:
{code}
org.apache.hadoop.hive.ql.parse.SemanticException: Failed to breakup Windowing invocations
into Groups. At least 1 group must only depend on input columns. Also check for circular dependencies.
Underlying error: Primitive type TIMESTAMPLOCALTZ not supported in Value Boundary expression
        at org.apache.hadoop.hive.ql.parse.WindowingComponentizer.next(WindowingComponentizer.java:97)
        at org.apache.hadoop.hive.ql.parse.SemanticAnalyzer.genWindowingPlan(SemanticAnalyzer.java:13508)
        at org.apache.hadoop.hive.ql.parse.SemanticAnalyzer.genPostGroupByBodyPlan(SemanticAnalyzer.java:9912)
        at org.apache.hadoop.hive.ql.parse.SemanticAnalyzer.genBodyPlan(SemanticAnalyzer.java:9871)
        at org.apache.hadoop.hive.ql.parse.SemanticAnalyzer.genPlan(SemanticAnalyzer.java:10784)
...
{code}

The list of supported types for boundaries expressions in PTFTranslator needs to be updated.

  was:
The following query:
{code}
select ts, i, sum(f) over (partition by i order by ts)
from over10k_2
limit 100;
{code}
fails with the following stacktrace:
{code}
org.apache.hadoop.hive.ql.parse.SemanticException: Failed to breakup Windowing invocations
into Groups. At least 1 group must only depend on input columns. Also check for circular dependencies.
Underlying error: Primitive type TIMESTAMPLOCALTZ not supported in Value Boundary expression
        at org.apache.hadoop.hive.ql.parse.WindowingComponentizer.next(WindowingComponentizer.java:97)
        at org.apache.hadoop.hive.ql.parse.SemanticAnalyzer.genWindowingPlan(SemanticAnalyzer.java:13508)
        at org.apache.hadoop.hive.ql.parse.SemanticAnalyzer.genPostGroupByBodyPlan(SemanticAnalyzer.java:9912)
        at org.apache.hadoop.hive.ql.parse.SemanticAnalyzer.genBodyPlan(SemanticAnalyzer.java:9871)
        at org.apache.hadoop.hive.ql.parse.SemanticAnalyzer.genPlan(SemanticAnalyzer.java:10784)
...
{code}

The list of supported types for boundaries expressions in PTFTranslator needs to be updated.


> Exception in windowing functions with TIMESTAMP WITH LOCAL TIME ZONE type
> -------------------------------------------------------------------------
>
>                 Key: HIVE-17867
>                 URL: https://issues.apache.org/jira/browse/HIVE-17867
>             Project: Hive
>          Issue Type: Bug
>            Reporter: Jesus Camacho Rodriguez
>            Assignee: Jesus Camacho Rodriguez
>
> The following query where column {{ts}} is of type {{TIMESTAMP WITH LOCAL TIME ZONE}}:
> {code}
> select ts, i, sum(f) over (partition by i order by ts)
> from over10k_2
> limit 100;
> {code}
> fails with the following stacktrace:
> {code}
> org.apache.hadoop.hive.ql.parse.SemanticException: Failed to breakup Windowing invocations
into Groups. At least 1 group must only depend on input columns. Also check for circular dependencies.
> Underlying error: Primitive type TIMESTAMPLOCALTZ not supported in Value Boundary expression
>         at org.apache.hadoop.hive.ql.parse.WindowingComponentizer.next(WindowingComponentizer.java:97)
>         at org.apache.hadoop.hive.ql.parse.SemanticAnalyzer.genWindowingPlan(SemanticAnalyzer.java:13508)
>         at org.apache.hadoop.hive.ql.parse.SemanticAnalyzer.genPostGroupByBodyPlan(SemanticAnalyzer.java:9912)
>         at org.apache.hadoop.hive.ql.parse.SemanticAnalyzer.genBodyPlan(SemanticAnalyzer.java:9871)
>         at org.apache.hadoop.hive.ql.parse.SemanticAnalyzer.genPlan(SemanticAnalyzer.java:10784)
> ...
> {code}
> The list of supported types for boundaries expressions in PTFTranslator needs to be updated.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message