-
Notifications
You must be signed in to change notification settings - Fork 25.7k
Remove exponential_histogram feature flag #138968
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
base: main
Are you sure you want to change the base?
Conversation
… into exp-histo-remove-featureflag # Conflicts: # server/src/main/resources/transport/upper_bounds/9.3.csv
…tureflag # Conflicts: # server/src/main/resources/transport/upper_bounds/9.3.csv # x-pack/plugin/esql-core/src/main/java/org/elasticsearch/xpack/esql/core/plugin/EsqlCorePlugin.java # x-pack/plugin/esql-core/src/main/java/org/elasticsearch/xpack/esql/core/type/DataType.java # x-pack/plugin/esql/qa/server/multi-clusters/src/javaRestTest/java/org/elasticsearch/xpack/esql/ccq/MultiClusterSpecIT.java # x-pack/plugin/esql/qa/server/single-node/src/javaRestTest/java/org/elasticsearch/xpack/esql/qa/single_node/EsqlSpecIT.java # x-pack/plugin/esql/qa/server/src/main/java/org/elasticsearch/xpack/esql/qa/rest/EsqlSpecTestCase.java # x-pack/plugin/esql/qa/testFixtures/src/main/resources/exponential_histogram.csv-spec # x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/action/EsqlCapabilities.java # x-pack/plugin/esql/src/test/java/org/elasticsearch/xpack/esql/expression/function/TestCaseSupplier.java # x-pack/plugin/esql/src/test/java/org/elasticsearch/xpack/esql/optimizer/AbstractLogicalPlanOptimizerTests.java # x-pack/plugin/esql/src/test/java/org/elasticsearch/xpack/esql/optimizer/LogicalPlanOptimizerTests.java
3e9b408 to
24782af
Compare
|
Pinging @elastic/es-analytical-engine (Team:Analytics) |
|
Pinging @elastic/es-storage-engine (Team:StorageEngine) |
docs/reference/query-languages/esql/kibana/definition/functions/max_over_time.json
Show resolved
Hide resolved
...rc/test/java/org/elasticsearch/xpack/esql/expression/function/aggregate/CountErrorTests.java
Outdated
Show resolved
Hide resolved
...c/test/java/org/elasticsearch/xpack/esql/expression/function/aggregate/ValuesErrorTests.java
Outdated
Show resolved
Hide resolved
kkrik-es
left a comment
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.
Please wait for Nik too. You also need to update (separately):
https://www.elastic.co/docs/reference/query-languages/esql/limitations#_supported_types
| @Before | ||
| public void setup() { | ||
| assumeTrue("Only when exponential_histogram feature flag is enabled", TDigestFieldMapper.TDIGEST_FIELD_MAPPER.isEnabled()); | ||
| assumeTrue("Only when tdigest_field_mapper feature flag is enabled", TDigestFieldMapper.TDIGEST_FIELD_MAPPER.isEnabled()); |
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.
I think this was a type but it might be confusing now with this change, so I updated it.
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.
Yeah looks like a copy-paste error, thanks for fixing!
nik9000
left a comment
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.
Looks good to me.
Would you kindly, in a follow up, have a look at improving assertNumberOfCheckedSignatures some? I'd left it too prone to magic when I first wrote it. Sending the count and a limited list to the method would make it much less magic. In all of the cases we override this and assert the count we're looking for a count much less than, say, 50. Then we'd have the whole list to work with and it'd be easy to mark each unsupported signature as expected in some way.
| * Is the type supported in indices? | ||
| */ | ||
| private static boolean supportedInIndex(DataType t) { | ||
| private static boolean supportedInIndex(DataType t, TransportVersion minimumVersion) { |
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.
👍
...rc/test/java/org/elasticsearch/xpack/esql/expression/function/aggregate/CountErrorTests.java
Outdated
Show resolved
Hide resolved
…tureflag # Conflicts: # docs/reference/query-languages/esql/_snippets/functions/types/absent_over_time.md # docs/reference/query-languages/esql/_snippets/functions/types/present_over_time.md # server/src/main/java/org/elasticsearch/index/mapper/MapperFeatures.java # server/src/main/resources/transport/upper_bounds/9.3.csv
alex-spies
left a comment
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 changes to DataType and AllSupportedFieldsTestCase look good to me!
| // Enrich policies don't work with types that have mandatory fields in the mapping. | ||
| // https://github.com/elastic/elasticsearch/issues/127350 | ||
| case AGGREGATE_METRIC_DOUBLE, SCALED_FLOAT, | ||
| case AGGREGATE_METRIC_DOUBLE, SCALED_FLOAT, EXPONENTIAL_HISTOGRAM, |
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.
Is there a separate issue for ENRICH support for exponential_histogram that we could/should link here, or does #127350 extend to exponential_histogram?
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.
There is no technical limitation on supporting exponential_histogram in ENRICH IINM, we just haven't implemented it yet.
I've created an issue to track this alongside with other language limitations this type currently has:
#139255
…tureflag # Conflicts: # x-pack/plugin/esql-core/src/main/java/org/elasticsearch/xpack/esql/core/type/DataType.java
Removes the feature flag for the
exponential_histogramfield mapper and ES|QL type.