You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[FEATURE] Support merging object-type fields when fetching the schema from the index #3625
Is your feature request related to a problem?
Currently, when the same object field (e.g., log) contains different inner fields in different indices, PPL randomly pick one, then PPL fails to resolve queries referencing any of them.
source = logs-* | where log.file= '/var/log/msg'
{
"error": {
"reason": "Invalid Query",
"details": "can't resolve Symbol(namespace=FIELD_NAME, name=log.file) in type env",
"type": "SemanticCheckException"
},
"status": 400
}
What solution would you like?
PPL should support merging object-type field definitions across indices (e.g., log.file, log.level) into a unified schema, so queries can reference valid fields even if they're only present in some indices.
What solution would you like?
PPL should support merging object-type field definitions across indices (e.g., log.file, log.level) into a unified schema, so queries can reference valid fields even if they're only present in some indices.
Merge solution does not scale. OpenSearch supports the _field_caps API, which returns merged field definitions across indices. It performs well with a small number of indices, but when querying over 1,000 indices, the latency can exceed 10 seconds.
Got similar issue when testing opentelemetry log data. Use * to query index, but if there is no user activity for a specific day, log attribute nested field will not have userid as a nested field, if query specify user id, it fails with same error as above
Activity
anasalkouz commentedon May 15, 2025
Is this issue PPL specific? Does SQL and DSL support it?
penghuo commentedon May 15, 2025
Both for SQL and PPL.
DSL works well.
penghuo commentedon May 16, 2025
Merge solution does not scale. OpenSearch supports the _field_caps API, which returns merged field definitions across indices. It performs well with a small number of indices, but when querying over 1,000 indices, the latency can exceed 10 seconds.
RyanL1997 commentedon May 20, 2025
We may also need to backport this.
xluo-aws commentedon May 26, 2025
Got similar issue when testing opentelemetry log data. Use * to query index, but if there is no user activity for a specific day, log attribute nested field will not have userid as a nested field, if query specify user id, it fails with same error as above
brijos commentedon Jun 12, 2025
Can we update the status of this issue?
LantaoJin commentedon Jun 16, 2025
Should be resolved by #3653