-
Notifications
You must be signed in to change notification settings - Fork 506
METRON-426: Stellar does not support scientific notation as a literal #257
Conversation
|
The issue around the |
| * is usually a smallish (usually < 10) multiple of the compression. | ||
| */ | ||
| public static final int COMPRESSION = 100; | ||
| public static final int COMPRESSION = 150; |
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.
Could you update the comment to reflect the compression default change?
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.
yep
| } | ||
| { | ||
| String query = "1.2e-3 + 2"; | ||
| Assert.assertEquals(1.2e-3 + 2, ((Number)run(query, ImmutableMap.of("casey", "casey"))).doubleValue(), 1e-3); |
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.
The ImmutableMap.of("casey","casey")(besides promoting your global brand ;) ) do nothing for these tests, right? It'd be more clear, if we removed those. Everything else looks good. I'm a +1 if we can take care of this small issue.
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.
You got it. :)
|
+1 Less ego-driven. Ha. |
|
@justinleet I think everything you mentioned has been addressed. Are you good with this PR? |
Stellar does not support scientific notation for expressing literal doubles. It should.
This is exercised in the unit tests for
StellarStatisticsTestandStellarTestdirectly