Repository navigation
SQLite: Support IN with a table name or table-valued function - #2680
Open
LucaCappelletti94 wants to merge 4 commits into
Open
LucaCappelletti94 wants to merge 4 commits into
LucaCappelletti94 wants to merge 4 commits into
Conversation
LucaCappelletti94
added this pull request to stack #2681
October 18, 2026 10:30
LucaCappelletti94
marked this pull request as draft
October 18, 2026 14:12
LucaCappelletti94
force-pushed
the
sqlite-in-table
branch
from
October 18, 2026 14:21
d231a4c to
bd79005
Compare
LucaCappelletti94
force-pushed
the
sqlite-in-table
branch
from
October 18, 2026 14:41
bd79005 to
4cfa09d
Compare
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## in-expr-refactor #2680 +/- ##
====================================================
+ Coverage 81.33% 81.40% +0.07%
====================================================
Files 42 42
Lines 33957 33999 +42
Branches 33957 33999 +42
====================================================
+ Hits 27618 27676 +58
+ Misses 2775 2752 -23
- Partials 3564 3571 +7 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
LucaCappelletti94
force-pushed
the
sqlite-in-table
branch
from
October 18, 2026 15:50
9ecae2c to
2e2304d
Compare
LucaCappelletti94
marked this pull request as ready for review
October 18, 2026 19:32
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stacked on the
INrefactor PR.In SQLite "the right-hand side of an IN or NOT IN operator can be a table name or table-valued function name in which case the right-hand side is understood to be a subquery of the form
(SELECT * FROM name)" (https://www.sqlite.org/lang_expr.html#in_op). SQLite 3.51.1 runsSELECT 1 IN t,SELECT 1 NOT IN tandSELECT 1 IN main.t, but the SQLite dialect failed withExpected: (, found: t.InTargetgains aTable { name, args }variant, and a new dialect method,supports_in_table_expression, enables it for SQLite and the generic dialect. It does not apply to ClickHouse'sGLOBAL IN. Tests round-trip plain, qualified and function forms with and withoutNOT, check the parsed name and arguments, and check that parenthesized lists and subqueries still parse as before.