Skip to content

Conversation

wilkinson4
Copy link
Contributor

@wilkinson4 wilkinson4 commented Nov 23, 2022

Ran into a case where we needed to use a Postgres Cross Join Lateral. Figured I would make a PR to allow Ecto to support it. The reason we needed it is because we have had multiple situations that fit this stackoverflow post's answer

@wilkinson4 wilkinson4 marked this pull request as ready for review November 23, 2022 03:23
@greg-rychlewski
Copy link
Member

Thank you. This would also require a change in ecto_sql otherwise the postgres adapter won't understand the join qualifier: https://github.com/elixir-ecto/ecto_sql/blob/master/lib/ecto/adapters/postgres/connection.ex#L515

@wilkinson4
Copy link
Contributor Author

Thank you. This would also require a change in ecto_sql otherwise the postgres adapter won't understand the join qualifier: https://github.com/elixir-ecto/ecto_sql/blob/master/lib/ecto/adapters/postgres/connection.ex#L515

Thank you! I was just finishing the ecto_sql PR.

@wilkinson4 wilkinson4 force-pushed the ww/add-cross-lateral-join-support branch from f686891 to c6fe81f Compare November 23, 2022 04:20
@wilkinson4 wilkinson4 force-pushed the ww/add-cross-lateral-join-support branch from c6fe81f to ca40842 Compare November 23, 2022 05:46
@wilkinson4 wilkinson4 force-pushed the ww/add-cross-lateral-join-support branch from ca40842 to 6488728 Compare November 23, 2022 14:46
@wilkinson4
Copy link
Contributor Author

Fixed a broken test. Ran it locally this time to make sure we're good. 😅 One more time if you wouldn't mind please.

@greg-rychlewski greg-rychlewski merged commit 96d4920 into elixir-ecto:master Nov 23, 2022
@greg-rychlewski
Copy link
Member

Thank you! Please use the commit from master in your ecto_sql PR then we should be good to go :)

greg-rychlewski pushed a commit to greg-rychlewski/ecto that referenced this pull request Dec 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants