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
[BUG] dedup raise 500 error when object attribute is specified #4339
{
"error": {
"reason": "There was internal problem at backend",
"details": "java.sql.SQLException: exception while executing query: class java.util.LinkedHashMap cannot be cast to class java.lang.Comparable (java.util.LinkedHashMap and java.lang.Comparable are in module java.base of loader 'bootstrap')",
"type": "RuntimeException"
},
"status": 500
}
How can one reproduce the bug?
run ppl query: source=logs-* | head 10 | dedup attributes
What is the expected behavior?
It should return invalid query error with 4xx status code.
What is your host/environment?
OS: [e.g. iOS]
Version [e.g. 22] 3.1
Plugins
Do you have any screenshots?
If applicable, add screenshots to help explain your problem.
Do you have any additional context?
Add any other context about the problem.
That's because the struct type cannot be sorted whatever in pushdown or non-pushdown. (the same behavior in v2) @ykmr1224 do you have any background about the usage? seen any user requirements?
Anyway, this issue (specific dedup an attribute) can be fixed because that dedup with object doesn't pushdown. So I can fix it in Calcite side. But query source = opensearch_dashboards_sample_data_ecommerce | sort geoip still fail since OpenSearch doesn't support sorting on an object field.
Activity
LantaoJin commentedon Sep 22, 2025
checking
LantaoJin commentedon Oct 22, 2025
That's because the
structtype cannot be sorted whatever in pushdown or non-pushdown. (the same behavior in v2)@ykmr1224 do you have any background about the usage? seen any user requirements?
LantaoJin commentedon Oct 22, 2025
Try this query in v2 and v3
LantaoJin commentedon Oct 22, 2025
Anyway, this issue (specific dedup an attribute) can be fixed because that dedup with object doesn't pushdown. So I can fix it in Calcite side. But query
source = opensearch_dashboards_sample_data_ecommerce | sort geoipstill fail since OpenSearch doesn't support sorting on an object field.