forked from ClickHouse/ClickHouse
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request ClickHouse#53433 from ClickHouse/exp
Fix 'Context has expired' error properly
- Loading branch information
Showing
11 changed files
with
48 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletions
4
tests/queries/0_stateless/02843_context_has_expired.reference
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,5 @@ | ||
0 | ||
0 | ||
0 | ||
0 | ||
0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,36 @@ | ||
DROP DICTIONARY IF EXISTS dict; | ||
DROP TABLE IF EXISTS source; | ||
DROP DICTIONARY IF EXISTS 02843_dict; | ||
DROP TABLE IF EXISTS 02843_source; | ||
DROP TABLE IF EXISTS 02843_join; | ||
|
||
CREATE TABLE source | ||
CREATE TABLE 02843_source | ||
( | ||
id UInt64, | ||
value String | ||
) | ||
ENGINE=Memory; | ||
|
||
CREATE DICTIONARY dict | ||
CREATE DICTIONARY 02843_dict | ||
( | ||
id UInt64, | ||
value String | ||
) | ||
PRIMARY KEY id | ||
SOURCE(CLICKHOUSE(TABLE 'source')) | ||
SOURCE(CLICKHOUSE(TABLE '02843_source')) | ||
LAYOUT(DIRECT()); | ||
|
||
SELECT 1 IN (SELECT dictGet('dict', 'value', materialize('1'))); | ||
SELECT 1 IN (SELECT dictGet('02843_dict', 'value', materialize('1'))); | ||
|
||
DROP DICTIONARY dict; | ||
DROP TABLE source; | ||
CREATE TABLE 02843_join (id UInt8, value String) ENGINE Join(ANY, LEFT, id); | ||
SELECT 1 IN (SELECT joinGet(02843_join, 'value', materialize(1))); | ||
SELECT 1 IN (SELECT joinGetOrNull(02843_join, 'value', materialize(1))); | ||
|
||
SELECT 1 IN (SELECT materialize(connectionId())); | ||
SELECT 1000000 IN (SELECT materialize(getSetting('max_threads'))); | ||
SELECT 1 in (SELECT file(materialize('a'))); -- { serverError 107 } | ||
|
||
EXPLAIN ESTIMATE SELECT 1 IN (SELECT dictGet('02843_dict', 'value', materialize('1'))); | ||
EXPLAIN ESTIMATE SELECT 1 IN (SELECT joinGet(`02843_join`, 'value', materialize(1))); | ||
|
||
DROP DICTIONARY 02843_dict; | ||
DROP TABLE 02843_source; | ||
DROP TABLE 02843_join; |