Skip to content

Commit 3542458

Browse files
Fix bad test 01040_dictionary_invalidate_query_switchover_long.sh
1 parent cc33361 commit 3542458

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

src/Interpreters/ExternalLoader.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1081,7 +1081,6 @@ class ExternalLoader::LoadingDispatcher : private boost::noncopyable
10811081
next_update_time = TimePoint::max();
10821082
}
10831083

1084-
10851084
Info * info = getInfo(name);
10861085

10871086
/// We should check if this is still the same loading as we were doing.

tests/queries/0_stateless/01040_dictionary_invalidate_query_switchover_long.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,13 +49,17 @@ check_exception_detected 2> /dev/null
4949
$CLICKHOUSE_CLIENT --query "SELECT last_exception FROM system.dictionaries WHERE database = currentDatabase() AND name = 'invalidate'" 2>&1 | grep -Eo "dict_invalidate.*UNKNOWN_TABLE" | wc -l
5050

5151
$CLICKHOUSE_CLIENT --query "
52-
CREATE TABLE dict_invalidate
52+
CREATE TABLE dict_invalidate_new
5353
ENGINE = Memory AS
5454
SELECT
5555
133 as dummy,
5656
toDateTime('2019-10-29 18:51:35') AS last_time
5757
FROM system.one"
5858

59+
$CLICKHOUSE_CLIENT --query "
60+
RENAME TABLE dict_invalidate_new TO dict_invalidate
61+
"
62+
5963
function check_exception_fixed()
6064
{
6165
local TIMELIMIT=$((SECONDS+60))

0 commit comments

Comments
 (0)