Support transformQueryForExternalDatabase for analyzer#47316
Support transformQueryForExternalDatabase for analyzer#47316kitaisreal merged 9 commits intomasterfrom
Conversation
590e2b4 to
1908c38
Compare
|
Compare List of tests that are fixed by this patch (see in ci database): ListQueryWITH failed_before_fix AS (SELECT test_name FROM checks
WHERE test_status not in ('OK', 'SKIPPED')
AND check_name ilike '%integra%'
AND pull_request_number = 45461
AND commit_sha = 'ffdbdf79c5444c9bd4418e624225622cd723cc86'
)
SELECT
test_name,
substring(check_name, 1, 15) || '...' || substring(check_name, -15) as check,
check_start_time,
test_status,
substring(commit_sha, 1, 10) as commit_short,
report_url,
pull_request_number as prnum
FROM checks
WHERE test_status in ('OK', 'SKIPPED')
AND now() - INTERVAL '10' day <= check_start_time
AND check_name ilike '%integra%release%'
AND pull_request_number = 47316
AND commit_sha = '1908c38c739a46051feda356df01711396ceb520'
AND test_name in failed_before_fix
ORDER BY test_name
LIMIT 1 BY test_nameTests that are still failing: ci database It contains some tests for |
1908c38 to
6fc9f4d
Compare
Not related to analyzer, reproduces on master. Seems like just missing check, but not sure how to fix with minimum of changes (without changing |
06966ea to
6919db3
Compare
tests/queries/0_stateless/02479_mysql_connect_to_self.reference
Outdated
Show resolved
Hide resolved
|
|
||
| const QueryTreeNodePtr & getQueryTree() const { return query_tree; } | ||
|
|
||
| SelectQueryInfo getSelectQueryInfo() |
There was a problem hiding this comment.
We should not introduce such method, because client can thing that this select query info can be used somewhere, but each table expression get unique select query info.
If this is only necessary for tests, maybe we can find some workaround ?
There was a problem hiding this comment.
Added friend struct from unit tests
UPD: implemented another approach to get it in test, added function buildSelectQueryInfo into Utils
Issue #47460 |
| context->setCurrentDatabase("test"); | ||
| } | ||
|
|
||
| DatabasePtr mockSystemDatabase() |
There was a problem hiding this comment.
This function seems unused.
Changelog category (leave one):
This PR contains commits from #45461 need to remove them and leave only new ones before merging