Implement a workaround for Full joins in SQLite #5254
Labels
-libs
Libraries: New libraries to be implemented
l-join
p-low
Low priority
x-new-feature
Type: new feature request
Milestone
This task is automatically imported from the old Task Issue Board and it was originally created by Radosław Waśko.
Original issue is here.
SQLite does not support Right and Full joins.
We have a simple workaround for Right joins which swaps the order and does a left join instead.
For Full joins it is a bit more complicated - we need to do a left join and a right anti-join and then union them.
We should be able to generate a query along the lines of https://stackoverflow.com/a/1923306
The same workaround may be necessary for PostgreSQL, at least when the join condition is more complex, as for non-hashable join conditions regularTurns out this issue was due to aFULL OUTER JOIN
sometimes fails with TODOCOALESCE
present due to null handling. For reasonably simple expressions the full join works without issue.Blockers:
[#184215302 - Table.union for Database is best implemented before this task is attempted (no ticket yet, currently only for In-Memory)](https://www.pivotaltracker.com/story/show/#184215302 - Table.union for Database is best implemented before this task is attempted (no ticket yet, currently only for In-Memory)) blocked
Table.union
to the Database Table. #5235The text was updated successfully, but these errors were encountered: