-
Notifications
You must be signed in to change notification settings - Fork 25.2k
[ML] Remove the undocumented "delimited" format for post_data #74188
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
[ML] Remove the undocumented "delimited" format for post_data #74188
Conversation
The data_description of anomaly detection jobs used to accept delimited data, although this was never documented. This change removes the delimited option from the data_description, and the associated functionality in post_data that handled it. This is not a breaking change because it's removing functionality that officially never existed. However, just in case somebody was using it it is only removed from 8.0 and higher, so that at least they won't find out during a patch install.
Pinging @elastic/ml-core (Team:ML) |
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 love seeing all the code go.
I just want to triple check: Users who use POST data
have been getting deprecation warnings about the CSV format in 7.x. So, they are prepared for this change. Yeah, its undocumented, but folks could be doing all sorts of things.
The deprecation warning has been here since 5.4: elasticsearch/x-pack/plugin/ml/src/main/java/org/elasticsearch/xpack/ml/job/JobManager.java Lines 277 to 280 in 2350369
So they were warned when they first created the job. The UI has never provided a way to create jobs that take delimited data, and it's never been documented. If this was an experimental feature we'd be allowed to remove it. I think an undocumented feature carries even fewer guarantees than an experimental feature. The other thing is, if somebody had been using a job by posting delimited data to it, we don't delete the job or its results on upgrade. They could continue to use it by switching to posting JSON data instead. |
Pinging @elastic/clients-team (Team:Clients) |
@elastic/clients-team the change needed here is to remove
|
… Elasticsearch (#102506) This a companion to elastic/elasticsearch#74188. This PR is functionally a no-op, as the removed method was not called anywhere. But it is sensible to remove it to prevent it being called in the future now that it references fields that don't exist in Elasticsearch.
… Elasticsearch (elastic#102506) This a companion to elastic/elasticsearch#74188. This PR is functionally a no-op, as the removed method was not called anywhere. But it is sensible to remove it to prevent it being called in the future now that it references fields that don't exist in Elasticsearch.
… Elasticsearch (#102506) (#102620) This a companion to elastic/elasticsearch#74188. This PR is functionally a no-op, as the removed method was not called anywhere. But it is sensible to remove it to prevent it being called in the future now that it references fields that don't exist in Elasticsearch. Co-authored-by: David Roberts <[email protected]>
The data_description of anomaly detection jobs used to accept
delimited data, although this was never documented.
This change removes the delimited option from the data_description,
and the associated functionality in post_data that handled it.
This is not a breaking change because it's removing functionality
that officially never existed. However, just in case somebody
was using it it is only removed from 8.0 and higher, so that at
least they won't find out during a patch install.