Open elasticmachine opened 6 years ago
Original comment by @tveasey:
This needs updating on the Java side IMO: sum / non_null_sum are equivalent for population analysis. Arguably it would be cleaner to only support non_zero_count/non_null_sum for population analysis, but this will create backwards compatibility issues. I don't think this is confusing enough to warrant a breaking change.
Original comment by @davidkyle:
The docs also say non_null_sum cannot be used with an over field
Original comment by @davidkyle:
According to the docs these functions cannot be used with an over field by that isn't enforced in code.
freq_rare
requires an over field in code but not according to the docs
Original comment by @droberts195:
In the case of freq_rare
it’s the docs that are wrong. This function only makes sense with both a by
and over
field.
I agree that for the other 3 it’s better to change the validation in the Java code, due to BWC reasons.
Original comment by @davidkyle:
I updated the docs for freq_rare
Original comment by @davidkyle:
Relates to LINK REDACTED
Pinging @elastic/ml-core (Team:ML)
Original comment by @davidkyle:
The x-pack plugin allows you to use the
non_null_sum
function with anover_field
But when you open the job autodetect rejects this configuration
bool CFieldConfig::isPopulation(EFunction function)
returns false for this functionResolve this conflict.