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

Hudson commented on LENS-603:
-----------------------------

SUCCESS: Integrated in Lens-Commit #827 (See 
[https://builds.apache.org/job/Lens-Commit/827/])
LENS-603: Skip expression rewrite in columnar rewriter (rajatgupta59: rev 
6d5f955fbdb904790506fcb1c8fa5fbe4458aa05)
* 
lens-driver-jdbc/src/main/java/org/apache/lens/driver/jdbc/ColumnarSQLRewriter.java
* 
lens-driver-jdbc/src/test/java/org/apache/lens/driver/jdbc/TestColumnarSQLRewriter.java


> Skip expression rewrite in columnar rewriter
> --------------------------------------------
>
>                 Key: LENS-603
>                 URL: https://issues.apache.org/jira/browse/LENS-603
>             Project: Apache Lens
>          Issue Type: Bug
>            Reporter: Sushil Mohanty
>            Assignee: Sushil Mohanty
>         Attachments: LENS-603-2.patch
>
>
> There are certain cases where expressions has conditions which needs to be 
> applied for  each resultant row. For eg. sum(case when city_dim.city_name = 
> 'abc' then total_count when city_dim.city_name is null then 0 end) .  
> Columnar rewriter is rewriting such expression as fact subquery and passing 
> the result to main query. We should skip such rewrite and do it only once in 
> the main query. 



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

Reply via email to