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] [SQL] Group by on a subquery returns an error #308
While applying a basic filter in PBID with direct query mode, the following query is generated
select `OriginCountry`
from
(
select `OriginCountry`
from `kibana_sample_data_flights`
where `OriginCountry` in ('AE', 'CA')
) as `ITBL`
group by `OriginCountry`
order by `OriginCountry`
limit 501
which returns an error as
{
"error": {
"reason": "There was internal problem at backend",
"details": "class com.alibaba.druid.sql.ast.statement.SQLSubqueryTableSource cannot be cast to class com.alibaba.druid.sql.ast.statement.SQLJoinTableSource (com.alibaba.druid.sql.ast.statement.SQLSubqueryTableSource and com.alibaba.druid.sql.ast.statement.SQLJoinTableSource are in unnamed module of loader java.net.FactoryURLClassLoader @d5556bf)",
"type": "ClassCastException"
},
"status": 503
}
changed the title [-][BUG] The query generated while applying a basic filter in Power BI Desktop with direct query mode returns an error[/-][+][BUG] [SQL] Group by on a subquery returns an error[/+]on Nov 30, 2021
POST /_plugins/_sql
{
"query": """select `OriginCountry` from (
select `OriginCountry`
from `opensearch_dashboards_sample_data_flights`
where `OriginCountry` = 'AE' or `OriginCountry` = 'CA') as `ITBL` group by `OriginCountry` order by `OriginCountry` limit 501"""
}
Activity
[-][BUG] The query generated while applying a basic filter in Power BI Desktop with direct query mode returns an error[/-][+][BUG] [SQL] Group by on a subquery returns an error[/+]penghuo commentedon Jan 6, 2022
Currently, OpenSearch SQL doesn't support
INoperator. https://github.com/opensearch-project/sql/blob/main/docs/user/dql/expressions.rst#comparison-operatorsOne workaround should be.