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 }}
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.
I want to be able to find list of issue, filter by attribute from another left join table.
I have two index, issue and issue_detail, they share the same key issueId. issue_detail has additional attribute - priority i'd like to use to filter out result.
see below example
SQL Query
select i.issueId from [issue] i
left join [issue_detail] d
on i.issueId = d.issueId
where d.priority=2
group by i.issueId
OD-SQL Query
GET _opendistro/_sql?format=csv
{
"query": "select i.issueId from [issue] i left join [issue_detail] d on i.issueId = d.issueId where d.priority=2 group by i.issueId"
}
As we can see in the physical plan, the filter was pushed into only the left table, which causes problem to the LEFT JOIN queries with filters. Currently we do not support filter and aggregate on the result of LEFT JOINs due to the limitation of ES. Related issues: #245#236#289#124#110
Problem
I want to be able to find list of issue, filter by attribute from another left join table.
I have two index, issue and issue_detail, they share the same key issueId. issue_detail has additional attribute - priority i'd like to use to filter out result.
see below example
SQL Query
OD-SQL Query
Actual result:
Expect result:
Testing Data
The text was updated successfully, but these errors were encountered: