-
Notifications
You must be signed in to change notification settings - Fork 24.9k
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
SQL: support queries across indices with different mappings #31837
Comments
Pinging @elastic/es-search-aggs |
This was the first major blocker that I encountered when trying to use SQL with the contents of my cluster. |
Extend querying support on multiple indices from being strictly identical to being just compatible. Use FieldCapabilities API (extended through elastic#33803) for mapping merging. Close elastic#31837 elastic#31611
Hi, |
Thank you. I’m looking forward to trying it. |
Cheers and thanks for your patience! |
hi @costin thank you for your solve this problem, but i also find some cases can't do. I use es 6.8.1.
and use sql:
it will error with "Can't load fielddata on [age] because fielddata is unsupported on fields of type [long]. Use doc values instead." I know it 's log-20190721 without doc_values. but the log-20190720, log-20190719 is ok |
For ease of use, it should be possible to run SQL queries across multiple indices (which we support) with different mappings (which we do not).
This entails creating a virtual schema from merging the mapping and dealing with missing fields across the various indices.
The areas of investigation are dealing with the field source (especially for missing fields) and aggregations.
The text was updated successfully, but these errors were encountered: