Skip to content

Conversation

@ea-rus
Copy link
Collaborator

@ea-rus ea-rus commented Jan 14, 2026

UNION can be an expression (the same way the SELECT does)
It allows to use it in IN conditions

Fixes https://linear.app/mindsdb/issue/FQE-1959/union-all-does-not-work-when-used-in-the-where-subquery

@ea-rus ea-rus requested a review from StpMax January 14, 2026 12:49
@github-actions
Copy link

github-actions bot commented Jan 14, 2026

Coverage

Coverage Report
FileStmtsMissCoverMissing
mindsdb_sql_parser
   __about__.py10100%1–10
   __init__.py1192381%44, 48, 53, 98, 115, 118, 139–158, 165–166
   lexer.py2872193%378, 380, 382, 394, 396, 398, 404–422
   logger.py19479%14, 17, 23, 26
   parser.py11263097%129, 133, 305, 330, 436, 623, 640, 664–665, 892, 946, 1023, 1114, 1170, 1180, 1249, 1260, 1343, 1419, 1458, 1494, 1690–1691, 1870–1871, 2047, 2055, 2108–2111
   utils.py1001288%73–79, 124, 140, 142, 144, 150–153, 161
mindsdb_sql_parser/ast
   base.py36586%13, 28, 31, 46, 51
   create.py82989%7–8, 23–31, 95
   drop.py52296%10, 13
   insert.py63494%39–41, 46
   show.py48198%18
   update.py53591%40–42, 75–76
mindsdb_sql_parser/ast/mindsdb
   knowledge_base.py127398%79, 118, 128
mindsdb_sql_parser/ast/select
   case.py37197%22
   constant.py36197%23
   data.py11464%10–12, 15, 19
   identifier.py831187%56, 104–112, 122
   native_query.py13192%25
   operation.py139497%57, 66, 178, 202
   parameter.py15193%20
   select.py108397%160–165
   star.py12283%8–9
TOTAL349915796% 

Tests Skipped Failures Errors Time
323 0 💤 0 ❌ 0 🔥 11.425s ⏱️

@ea-rus ea-rus merged commit 67cd0ca into main Jan 14, 2026
12 checks passed
@ea-rus ea-rus deleted the union-in-in branch January 14, 2026 13:32
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