Skip to content

Conversation

@glommer
Copy link
Contributor

@glommer glommer commented Oct 7, 2025

USING is a convenient way to express an equijoin. Instead of writing a.id = b.id, you can just JOIN USING (a), and the database will find a table with that name in both tables.

It is not hard to support this with our operator, since it is ultimately an equijoin, but we have to do the work to deduplicate the columns when producing the final schema.

Fixes #3362

USING is a convenient way to express an equijoin. Instead of writing
a.id = b.id, you can just JOIN USING (a), and the database will find a
table with that name in both tables.

It is not hard to support this with our operator, since it is ultimately
an equijoin, but we have to do the work to deduplicate the columns when
producing the final schema.

Fixes tursodatabase#3362
@penberg penberg changed the title fix for join with the USING keyword core/incrementa: Fix JOIN with USING keyword Oct 8, 2025
@penberg penberg changed the title core/incrementa: Fix JOIN with USING keyword core/incremental: Fix JOIN with USING keyword Oct 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

DBSP: JOIN USING should deduplicate columns

1 participant