-
Notifications
You must be signed in to change notification settings - Fork 555
Alternative aggregate functions to calculate histogram values. #475
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
bd69fb4
b6e9b24
2c85ef7
b3a2ca4
13c8594
e6d29d0
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -86,13 +86,13 @@ class AnalyzerContextTest extends AnyWordSpec | |||||
|{"entity":"Column","instance":"item","name":"Distinctness","value":1.0}, | ||||||
|{"entity":"Column","instance":"att1","name":"Completeness","value":1.0}, | ||||||
|{"entity":"Multicolumn","instance":"att1,att2","name":"Uniqueness","value":0.25}, | ||||||
|{"entity":"Dataset","instance":"*","name":"Size (where: att2 == 'd')","value":1.0}, | ||||||
|{"entity":"Dataset","instance":"*","name":"Size","value":4.0}, | ||||||
Comment on lines
+89
to
+90
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is this change required? It is not clear from the changes that the order of the fields in the serialization process is changing. If it is not, can we remove this diff to make the PR clearer ? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes. This is required. This is the reason a test was failing. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks for the information. Is it possible to understand why it is required? The reason I ask is because of backwards compatibility. Will a serialized object that has the older order fail to get deserialized because of this change? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I need to dig deeper to explain why it happens. My guess is that there is some kind of HashMap, HashSet that changes order of response. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes. That's what happens. Below are screenshots from 2 different versions (breakpoint is on this line
As you can see after map union it gives two different results. And code here (
|
||||||
|{"entity":"Column","instance":"att1","name":"Histogram.bins","value":2.0}, | ||||||
|{"entity":"Column","instance":"att1","name":"Histogram.abs.a","value":3.0}, | ||||||
|{"entity":"Column","instance":"att1","name":"Histogram.ratio.a","value":0.75}, | ||||||
|{"entity":"Column","instance":"att1","name":"Histogram.abs.b","value":1.0}, | ||||||
|{"entity":"Column","instance":"att1","name":"Histogram.ratio.b","value":0.25}, | ||||||
|{"entity":"Dataset","instance":"*","name":"Size (where: att2 == 'd')","value":1.0}, | ||||||
|{"entity":"Dataset","instance":"*","name":"Size","value":4.0} | ||||||
|{"entity":"Column","instance":"att1","name":"Histogram.ratio.b","value":0.25} | ||||||
|]""" | ||||||
.stripMargin.replaceAll("\n", "") | ||||||
|
||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we add a comment here that:
Count
since it is the current defaultThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will add comments.