[MCOL-5468] A query containing a big list of values in the IN-clause immediately crashes columnstore engine (add limit setting) Created: 2023-04-05 Updated: 2023-12-28 Resolved: 2023-09-07 |
|
| Status: | Closed |
| Project: | MariaDB ColumnStore |
| Component/s: | MariaDB Server |
| Affects Version/s: | 23.02.1, 23.02.3 |
| Fix Version/s: | 23.10.0 |
| Type: | Bug | Priority: | Critical |
| Reporter: | andreas eschbacher | Assignee: | Andrey Piskunov (Inactive) |
| Resolution: | Fixed | Votes: | 1 |
| Labels: | rm_stability | ||
| Environment: |
MariaDB 10.5.10, Columnstore 5.5.2; MariaDB 10.5.18, Columnstore 5.6.8; RHEL 8.2 and RHEL 8.5 |
||
| Attachments: |
|
||||||||
| Issue Links: |
|
||||||||
| Sprint: | 2023-8, 2023-10 | ||||||||
| Assigned for Review: | |
||||||||
| Assigned for Testing: | |
||||||||
| Description |
|
The attached query ("crashing_select...sql") on the attached Columnstore table (see "create_tables_...sql") using the exported data ("ebi_es_op_or...csv") immediately crashes Columnstore engine when executed. Side note: query is generated by a third-party BI tool, where we have no possibility to change the way it generates the SQL queries to avoid such big IN-clauses. ..... The currently proposed solution: Introduction of a new runtime variable defined as
--------------------------------------
-------------------------------------- which is a limit for the maximum length of an IN query measure in number of values . If there are multiple IN clauses in query, the limit is checked against the longest. |
| Comments |
| Comment by Andrey Piskunov (Inactive) [ 2023-07-25 ] | ||||||||||||||
|
The currently proposed solution: Introduction of a new config variable InLimit, defined as
which is a limit for the maximum length of an IN query. toddstoffel you might have some input on this. | ||||||||||||||
| Comment by Andrey Piskunov (Inactive) [ 2023-07-26 ] | ||||||||||||||
|
The unit is number of entities. | ||||||||||||||
| Comment by Andrey Piskunov (Inactive) [ 2023-07-28 ] | ||||||||||||||
|
toddstoffel , alexey.vorovich | ||||||||||||||
| Comment by alexey vorovich (Inactive) [ 2023-07-28 ] | ||||||||||||||
|
allen.herrera the current default is 1000. see above. Can that session variable be in config file ? | ||||||||||||||
| Comment by Allen Herrera [ 2023-07-28 ] | ||||||||||||||
|
yeah thats fine, ideal would be dynamic to avoid stop/starting the database, architecture allowing. | ||||||||||||||
| Comment by Daniel Lee (Inactive) [ 2023-09-07 ] | ||||||||||||||
|
Build verified: develop branch, build 8586 engine: e0d9b8270584bcc9a92f9eff3a84e949cd2f052e
|