[ 
https://issues.apache.org/jira/browse/KYLIN-4791?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17217371#comment-17217371
 ] 

ASF subversion and git services commented on KYLIN-4791:
--------------------------------------------------------

Commit d4cd28d108c8f16aa1546434a9f311002d2d8010 in kylin's branch 
refs/heads/kylin-on-parquet-v2 from Zhichao Zhang
[ https://gitbox.apache.org/repos/asf?p=kylin.git;h=d4cd28d ]

KYLIN-4791 Fix exception 'UnsupportedOperationException: empty.reduceLeft' when 
there are cast expressions in the filters of FilePruner

When execute function 'pruneSegments' of FilePruner, if there are some cast 
expressions in filter, it will throw exception 'UnsupportedOperationException: 
empty.reduceLeft'.

Solution:
Convert cast expressions in filter to attribute before translating filter.


> Throws exception 'UnsupportedOperationException: empty.reduceLeft' when there 
> are cast expressions in the filters of FilePruner
> -------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: KYLIN-4791
>                 URL: https://issues.apache.org/jira/browse/KYLIN-4791
>             Project: Kylin
>          Issue Type: Bug
>          Components: Query Engine, Spark Engine
>    Affects Versions: v4.0.0-alpha
>            Reporter: Zhichao  Zhang
>            Assignee: Zhichao  Zhang
>            Priority: Minor
>             Fix For: v4.0.0-beta
>
>
> When execute function 'pruneSegments' of FilePruner, if there are some cast 
> expressions in filter, it will throw exception 
> 'UnsupportedOperationException: empty.reduceLeft'.
>  
> Solution:
> Convert cast expressions in filter to attribute before translating filter.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to