Skip to content

Conversation

@kennknowles
Copy link
Member

The Beam SQL tests of intersect, union, and set difference use a DOUBLE field for a price. This is a bad practice. It also happened to interact badly with a fix to RowCoder to make it consistent with DoubleCoder in #6772.

This PR just fixes the tests. The ultimate question of "what should be the spec?" remains unresolved but it is clear from the examples online that whatever the SQL standard says, equality on floating point numbers is not reasonable to support in an abstract library like ours.


Follow this checklist to help us incorporate your contribution quickly and easily:

  • Format the pull request title like [BEAM-XXX] Fixes bug in ApproximateQuantiles, where you replace BEAM-XXX with the appropriate JIRA issue, if applicable. This will automatically link the pull request to the issue.
  • If this contribution is large, please file an Apache Individual Contributor License Agreement.

It will help us expedite review of your Pull Request if you tag someone (e.g. @username) to look at it.

Post-Commit Tests Status (on master branch)

Lang SDK Apex Dataflow Flink Gearpump Samza Spark
Go Build Status --- --- --- --- --- ---
Java Build Status Build Status Build Status Build Status Build Status Build Status Build Status Build Status
Python Build Status --- Build Status
Build Status
Build Status --- --- ---

@kennknowles
Copy link
Member Author

R: @reuvenlax

@swegner
Copy link
Contributor

swegner commented Oct 23, 2018

LGTM

This generally looks good to me, and fixes the currently failing tests

@swegner swegner merged commit 47c2619 into apache:master Oct 23, 2018
@kennknowles kennknowles deleted the group-by-float-wut branch October 26, 2018 16:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants