[
https://issues.apache.org/jira/browse/BEAM-7194?focusedWorklogId=235613&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-235613
]
ASF GitHub Bot logged work on BEAM-7194:
----------------------------------------
Author: ASF GitHub Bot
Created on: 01/May/19 00:28
Start Date: 01/May/19 00:28
Worklog Time Spent: 10m
Work Description: TheNeuralBit commented on pull request #8447:
[BEAM-7194] EXCEPT DISTINCT behavior when right set contains a value is
incorrect
URL: https://github.com/apache/beam/pull/8447#discussion_r279983246
##########
File path:
sdks/java/extensions/sql/src/main/java/org/apache/beam/sdk/extensions/sql/impl/transform/BeamSetOperatorsTransforms.java
##########
@@ -97,8 +97,10 @@ public void processElement(ProcessContext ctx) {
}
break;
case MINUS:
- // Say for Row R, there are m instances on left and n instances on
right,
- // EXCEPT ALL outputs MAX(m - n, 0) instances of R.
+ // Say for Row R, there are m instances on left and n instances on
right:
+ // - EXCEPT ALL outputs MAX(m - n, 0) instances of R.
+ // - EXCEPT DISTINCT and EXCEPT output a single instance of R if m >
0 and n == 0, else
Review comment:
Ah good point. That seems to be at odds with the test case I modified though
- the SQL query in `testExcept` just says `EXCEPT` and seems to run with
`all=false`. Any idea what's going on there?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
Issue Time Tracking
-------------------
Worklog Id: (was: 235613)
Time Spent: 50m (was: 40m)
> EXCEPT DISTINCT behavior when right set contains a value is incorrect
> ---------------------------------------------------------------------
>
> Key: BEAM-7194
> URL: https://issues.apache.org/jira/browse/BEAM-7194
> Project: Beam
> Issue Type: Bug
> Components: dsl-sql
> Reporter: Brian Hulette
> Assignee: Brian Hulette
> Priority: Major
> Time Spent: 50m
> Remaining Estimate: 0h
>
> (1, 2, 3, 1) EXCEPT DISTINCT (1) should yield (2, 3), not (1,2,3)
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)