Ensure 6.x BWC compatibility when searching indices with nanosecond fields #38028
Labels
:Search Foundations/Mapping
Index mappings, including merging and defining field types
Team:Search Foundations
Meta label for the Search Foundations team in Elasticsearch
team-discuss
Once #37755 is merged we need to ensure backwards compatibility.
With the current state of #37755 there would be no BWC compatiblity, as a 6.7 coordinating node would not know the difference. The sort field would be treated as a regular numeric field.
Also the 6.7 mapping code does not know what
type: date_nanos
is. I am not sure how a 6.7 would react here.We could implement a simple safeguard like preventing index creation if the minimum node version is below 7 or we could port the nanosecond conversion logic to 6.7.0. Maybe there are more options that I am not seeing.
Also, this might impact current CCS refactorings.
The text was updated successfully, but these errors were encountered: