Fix 02765_queries_with_subqueries_profile_events for Analyzer check

Settings does not contains unchanged values, and the value is considered
unchanged, if it matches the default.

So simply use the shell variable instead of Settings.

Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
This commit is contained in:
Azat Khuzhin 2023-05-27 12:19:11 +02:00
parent 6b5933a3db
commit 2e347007a2
2 changed files with 12 additions and 12 deletions

View File

@ -1,15 +1,15 @@
view allow_experimental_analyzer InsertQuery SelectQuery InsertQueriesWithSubqueries SelectQueriesWithSubqueries QueriesWithSubqueries
1 1 0 1 2 3
1 0 1 0 1 2 3
subquery allow_experimental_analyzer InsertQuery SelectQuery InsertQueriesWithSubqueries SelectQueriesWithSubqueries QueriesWithSubqueries
1 0 1 0 2 2
1 0 0 1 0 2 2
CSE allow_experimental_analyzer InsertQuery SelectQuery InsertQueriesWithSubqueries SelectQueriesWithSubqueries QueriesWithSubqueries
1 0 1 0 2 2
1 0 0 1 0 2 2
CSE_Multi allow_experimental_analyzer InsertQuery SelectQuery InsertQueriesWithSubqueries SelectQueriesWithSubqueries QueriesWithSubqueries
1 0 1 0 2 2
1 0 0 1 0 2 2
CTE allow_experimental_analyzer InsertQuery SelectQuery InsertQueriesWithSubqueries SelectQueriesWithSubqueries QueriesWithSubqueries
1 0 1 0 2 2
1 0 0 1 0 2 2
CTE_Multi allow_experimental_analyzer InsertQuery SelectQuery InsertQueriesWithSubqueries SelectQueriesWithSubqueries QueriesWithSubqueries
1 0 1 0 4 4
1 0 0 1 0 4 4
view allow_experimental_analyzer InsertQuery SelectQuery InsertQueriesWithSubqueries SelectQueriesWithSubqueries QueriesWithSubqueries
1 1 1 0 1 3 4
subquery allow_experimental_analyzer InsertQuery SelectQuery InsertQueriesWithSubqueries SelectQueriesWithSubqueries QueriesWithSubqueries

View File

@ -21,7 +21,7 @@ for allow_experimental_analyzer in 0 1; do
SYSTEM FLUSH LOGS;
SELECT
1 view,
Settings['allow_experimental_analyzer'] allow_experimental_analyzer,
$allow_experimental_analyzer allow_experimental_analyzer,
ProfileEvents['InsertQuery'] InsertQuery,
ProfileEvents['SelectQuery'] SelectQuery,
ProfileEvents['InsertQueriesWithSubqueries'] InsertQueriesWithSubqueries,
@ -39,7 +39,7 @@ for allow_experimental_analyzer in 0 1; do
SYSTEM FLUSH LOGS;
SELECT
1 subquery,
Settings['allow_experimental_analyzer'] allow_experimental_analyzer,
$allow_experimental_analyzer allow_experimental_analyzer,
ProfileEvents['InsertQuery'] InsertQuery,
ProfileEvents['SelectQuery'] SelectQuery,
ProfileEvents['InsertQueriesWithSubqueries'] InsertQueriesWithSubqueries,
@ -56,7 +56,7 @@ for allow_experimental_analyzer in 0 1; do
SYSTEM FLUSH LOGS;
SELECT
1 CSE,
Settings['allow_experimental_analyzer'] allow_experimental_analyzer,
$allow_experimental_analyzer allow_experimental_analyzer,
ProfileEvents['InsertQuery'] InsertQuery,
ProfileEvents['SelectQuery'] SelectQuery,
ProfileEvents['InsertQueriesWithSubqueries'] InsertQueriesWithSubqueries,
@ -73,7 +73,7 @@ for allow_experimental_analyzer in 0 1; do
SYSTEM FLUSH LOGS;
SELECT
1 CSE_Multi,
Settings['allow_experimental_analyzer'] allow_experimental_analyzer,
$allow_experimental_analyzer allow_experimental_analyzer,
ProfileEvents['InsertQuery'] InsertQuery,
ProfileEvents['SelectQuery'] SelectQuery,
ProfileEvents['InsertQueriesWithSubqueries'] InsertQueriesWithSubqueries,
@ -90,7 +90,7 @@ for allow_experimental_analyzer in 0 1; do
SYSTEM FLUSH LOGS;
SELECT
1 CTE,
Settings['allow_experimental_analyzer'] allow_experimental_analyzer,
$allow_experimental_analyzer allow_experimental_analyzer,
ProfileEvents['InsertQuery'] InsertQuery,
ProfileEvents['SelectQuery'] SelectQuery,
ProfileEvents['InsertQueriesWithSubqueries'] InsertQueriesWithSubqueries,
@ -107,7 +107,7 @@ for allow_experimental_analyzer in 0 1; do
SYSTEM FLUSH LOGS;
SELECT
1 CTE_Multi,
Settings['allow_experimental_analyzer'] allow_experimental_analyzer,
$allow_experimental_analyzer allow_experimental_analyzer,
ProfileEvents['InsertQuery'] InsertQuery,
ProfileEvents['SelectQuery'] SelectQuery,
ProfileEvents['InsertQueriesWithSubqueries'] InsertQueriesWithSubqueries,