1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-07-29 08:21:15 +03:00

Rename a limit var + change error message (#2946)

* Rename a limit var + change error message

* Adjust the test
This commit is contained in:
Andrey Piskunov
2023-09-05 12:19:15 +03:00
committed by GitHub
parent 4172cf8e71
commit d586975da7
5 changed files with 16 additions and 15 deletions

View File

@ -7097,14 +7097,15 @@ int processWhere(SELECT_LEX& select_lex, gp_walk_info& gwi, SCSEP& csep, const s
filters = extractCommonLeafConjunctionsToRoot(filters);
}
uint64_t limit = get_max_in_limit_query_length(gwi.thd);
uint64_t limit = get_max_allowed_in_values(gwi.thd);
if (filters && !checkFiltersLimit(filters, limit))
{
gwi.fatalParseError = true;
setError(gwi.thd, ER_CHECK_NOT_IMPLEMENTED,
"long in clauses. Query exceeds max_in_limit_query_length threshold: consider changing the "
"value via SET @var_name := value;",
" in clauses of this length. Number of values in the IN clause exceeded "
"columnstore_max_allowed_in_values "
"threshold.",
gwi);
return ER_CHECK_NOT_IMPLEMENTED;
}