Use Decimal formatter for Numeric ValuesSourceTypes#54366
Use Decimal formatter for Numeric ValuesSourceTypes#54366not-napoleon merged 6 commits intoelastic:masterfrom
Conversation
|
Pinging @elastic/es-analytics-geo (:Analytics/Aggregations) |
imotov
left a comment
There was a problem hiding this comment.
That fixes both weighted_avg and t_test. We just need to make sure we don't pass time zone in SQL. Thanks!
|
@imotov What do you want to do with this? As you say, it's currently stuck on SQL's formatting behavior, which, honestly, I'm not sure how that was working before. The code I'm using here is taken directly from the field formatter, so I'm shocked it wasn't throwing from there before. Do you want to fix this SQL side and I'll pull the fix in here and see what we have? Alternatively, I can change this to accept and ignore a timezone, which should get the tests passing. I don't love ignoring parameters, it seems excessively lenient, but it wouldn't be worse than it is now. |
|
I have done some digging. Here is the reproduction of the issue that doesn't involve SQL: That works without this PR and I feel like it is a valid use-case and it should work. I think we are again dealing with overloaded parameters here. |
|
@elasticmachine update branch |
|
@elasticmachine test this please |
|
@elasticmachine update branch |
|
@elasticmachine update branch |
Co-authored-by: Igor Motov <igor@motovs.org> Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
I think this resolves #54365 and probably a few other places we were picking the wrong formatter.