[jira] [Commented] (LENS-1439) Having clause getting skipped if query goes to a segmentation containing single segment

2017-09-03 Thread Hudson (JIRA)

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

Hudson commented on LENS-1439:
--

SUCCESS: Integrated in Jenkins build Lens-Commit #1438 (See 
[https://builds.apache.org/job/Lens-Commit/1438/])
LENS-1439: Having clause getting skipped if query goes to a segmentation 
(rajatgupta59: rev a8d23df80dcfc22b3d67938f8f522bbd33072466)
* (edit) 
lens-cube/src/test/resources/schema/cubes/derived/union_join_ctx_der1.xml
* (edit) 
lens-cube/src/test/java/org/apache/lens/cube/parse/TestCubeSegmentationRewriter.java
* (edit) 
lens-cube/src/main/java/org/apache/lens/cube/parse/StorageCandidateHQLContext.java


> Having clause getting skipped if query goes to a segmentation containing 
> single segment
> ---
>
> Key: LENS-1439
> URL: https://issues.apache.org/jira/browse/LENS-1439
> Project: Apache Lens
>  Issue Type: Bug
>  Components: cube
>Reporter: Rajat Khandelwal
>Assignee: Rajat Khandelwal
> Fix For: 2.7, 2.8
>
> Attachments: LENS-1439.01.patch, LENS-1439.01.patch, 
> LENS-1439.02.patch
>
>
> The condition of {{setHaving(null)}} is wrong in singleCandidatehqlcontext



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


[jira] [Commented] (LENS-1439) Having clause getting skipped if query goes to a segmentation containing single segment

2017-09-03 Thread Rajat Khandelwal (JIRA)

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

Rajat Khandelwal commented on LENS-1439:


Committed myself.

> Having clause getting skipped if query goes to a segmentation containing 
> single segment
> ---
>
> Key: LENS-1439
> URL: https://issues.apache.org/jira/browse/LENS-1439
> Project: Apache Lens
>  Issue Type: Bug
>  Components: cube
>Reporter: Rajat Khandelwal
>Assignee: Rajat Khandelwal
> Fix For: 2.7, 2.8
>
> Attachments: LENS-1439.01.patch, LENS-1439.01.patch, 
> LENS-1439.02.patch
>
>
> The condition of {{setHaving(null)}} is wrong in singleCandidatehqlcontext



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


[jira] [Updated] (LENS-1439) Having clause getting skipped if query goes to a segmentation containing single segment

2017-09-03 Thread Rajat Khandelwal (JIRA)

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

Rajat Khandelwal updated LENS-1439:
---
Resolution: Fixed
Status: Resolved  (was: Patch Available)

> Having clause getting skipped if query goes to a segmentation containing 
> single segment
> ---
>
> Key: LENS-1439
> URL: https://issues.apache.org/jira/browse/LENS-1439
> Project: Apache Lens
>  Issue Type: Bug
>  Components: cube
>Reporter: Rajat Khandelwal
>Assignee: Rajat Khandelwal
> Fix For: 2.7, 2.8
>
> Attachments: LENS-1439.01.patch, LENS-1439.01.patch, 
> LENS-1439.02.patch
>
>
> The condition of {{setHaving(null)}} is wrong in singleCandidatehqlcontext



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


[jira] [Updated] (LENS-1439) Having clause getting skipped if query goes to a segmentation containing single segment

2017-09-03 Thread Rajat Khandelwal (JIRA)

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

Rajat Khandelwal updated LENS-1439:
---
Fix Version/s: 2.8

> Having clause getting skipped if query goes to a segmentation containing 
> single segment
> ---
>
> Key: LENS-1439
> URL: https://issues.apache.org/jira/browse/LENS-1439
> Project: Apache Lens
>  Issue Type: Bug
>  Components: cube
>Reporter: Rajat Khandelwal
>Assignee: Rajat Khandelwal
> Fix For: 2.7, 2.8
>
> Attachments: LENS-1439.01.patch, LENS-1439.01.patch, 
> LENS-1439.02.patch
>
>
> The condition of {{setHaving(null)}} is wrong in singleCandidatehqlcontext



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


[jira] [Commented] (LENS-1468) Expressions in having clauses are not getting rewritten properly for join queries

2017-09-03 Thread Hudson (JIRA)

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

Hudson commented on LENS-1468:
--

SUCCESS: Integrated in Jenkins build Lens-Commit #1437 (See 
[https://builds.apache.org/job/Lens-Commit/1437/])
LENS-1468: Expressions in having clauses are not getting rewritten 
(rajatgupta59: rev b4cc2ed8af533fc9d7310452b6c7e12d7ac7afac)
* (edit) 
lens-cube/src/main/java/org/apache/lens/cube/parse/UnionQueryWriter.java
* (edit) lens-cube/src/test/resources/schema/cubes/base/basecube.xml
* (edit) lens-cube/src/test/resources/schema/cubes/derived/der2.xml
* (edit) 
lens-cube/src/main/java/org/apache/lens/cube/parse/ExpressionResolver.java
* (edit) 
lens-cube/src/main/java/org/apache/lens/cube/parse/StorageCandidateHQLContext.java
* (edit) 
lens-cube/src/test/java/org/apache/lens/cube/parse/TestBaseCubeQueries.java


> Expressions in having clauses are not getting rewritten properly for join 
> queries
> -
>
> Key: LENS-1468
> URL: https://issues.apache.org/jira/browse/LENS-1468
> Project: Apache Lens
>  Issue Type: Bug
>  Components: cube
>Reporter: Rajat Khandelwal
>Assignee: Rajat Khandelwal
> Fix For: 2.8
>
> Attachments: LENS-1468.01.patch, LENS-1468.02.patch
>
>
> The issue is not seen in test cases yet since somehow the order of child 
> candidates in {{JoinCandidate}} has been fixed. We have observed the order 
> being non-deterministic in production. And in one ordering, having clause 
> works fine and in another it doesn't. Will be adding test cases to reproduce 
> this issue and the fix as well. 



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


[jira] [Commented] (LENS-1468) Expressions in having clauses are not getting rewritten properly for join queries

2017-09-03 Thread Rajat Khandelwal (JIRA)

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

Rajat Khandelwal commented on LENS-1468:


Committed myself.

> Expressions in having clauses are not getting rewritten properly for join 
> queries
> -
>
> Key: LENS-1468
> URL: https://issues.apache.org/jira/browse/LENS-1468
> Project: Apache Lens
>  Issue Type: Bug
>  Components: cube
>Reporter: Rajat Khandelwal
>Assignee: Rajat Khandelwal
> Fix For: 2.8
>
> Attachments: LENS-1468.01.patch, LENS-1468.02.patch
>
>
> The issue is not seen in test cases yet since somehow the order of child 
> candidates in {{JoinCandidate}} has been fixed. We have observed the order 
> being non-deterministic in production. And in one ordering, having clause 
> works fine and in another it doesn't. Will be adding test cases to reproduce 
> this issue and the fix as well. 



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


[jira] [Updated] (LENS-1468) Expressions in having clauses are not getting rewritten properly for join queries

2017-09-03 Thread Rajat Khandelwal (JIRA)

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

Rajat Khandelwal updated LENS-1468:
---
Resolution: Fixed
Status: Resolved  (was: Patch Available)

> Expressions in having clauses are not getting rewritten properly for join 
> queries
> -
>
> Key: LENS-1468
> URL: https://issues.apache.org/jira/browse/LENS-1468
> Project: Apache Lens
>  Issue Type: Bug
>  Components: cube
>Reporter: Rajat Khandelwal
>Assignee: Rajat Khandelwal
> Fix For: 2.8
>
> Attachments: LENS-1468.01.patch, LENS-1468.02.patch
>
>
> The issue is not seen in test cases yet since somehow the order of child 
> candidates in {{JoinCandidate}} has been fixed. We have observed the order 
> being non-deterministic in production. And in one ordering, having clause 
> works fine and in another it doesn't. Will be adding test cases to reproduce 
> this issue and the fix as well. 



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


[jira] [Updated] (LENS-1468) Expressions in having clauses are not getting rewritten properly for join queries

2017-09-03 Thread Rajat Khandelwal (JIRA)

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

Rajat Khandelwal updated LENS-1468:
---
Fix Version/s: 2.8

> Expressions in having clauses are not getting rewritten properly for join 
> queries
> -
>
> Key: LENS-1468
> URL: https://issues.apache.org/jira/browse/LENS-1468
> Project: Apache Lens
>  Issue Type: Bug
>  Components: cube
>Reporter: Rajat Khandelwal
>Assignee: Rajat Khandelwal
> Fix For: 2.8
>
> Attachments: LENS-1468.01.patch, LENS-1468.02.patch
>
>
> The issue is not seen in test cases yet since somehow the order of child 
> candidates in {{JoinCandidate}} has been fixed. We have observed the order 
> being non-deterministic in production. And in one ordering, having clause 
> works fine and in another it doesn't. Will be adding test cases to reproduce 
> this issue and the fix as well. 



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