You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
local table:
SHOW CREATE TABLE test_query_local;
CREATE TABLE dgz.test_query_local
( id UInt64, repo String
)
ENGINE = ReplicatedMergeTree('/clickhouse/dgz/tables/{shard}/test_query_local', '{replica}')
ORDER BY id
SETTINGS index_granularity = 8192;
execute sql:
use dgz;
SELECT uniq(id) FROM test_query_all WHERE repo = '100' AND id IN (SELECT id FROM test_query_local WHERE repo = '200');
then exception occurs:
Received exception from server (version 20.8.3):
Code: 60. DB::Exception: Received from 127.0.0.1:9000. DB::Exception: Received from xxxx:9000. DB::Exception: Table default.test_query_local doesn't exist..
Why this sql try to search table in default database in remote clickhouse instance.
The text was updated successfully, but these errors were encountered:
dgzdot
added
the
bug
Confirmed user-visible misbehaviour in official release
label
Jan 19, 2021
clickhouse server version 20.8.3.18
reproduce step:
local table:
SHOW CREATE TABLE test_query_local;
CREATE TABLE dgz.test_query_local
(
id
UInt64,repo
String)
ENGINE = ReplicatedMergeTree('/clickhouse/dgz/tables/{shard}/test_query_local', '{replica}')
ORDER BY id
SETTINGS index_granularity = 8192;
distributed table:
SHOW CREATE TABLE test_query_all;
CREATE TABLE dgz.test_query_all
(
id
UInt64,repo
String)
ENGINE = Distributed('xxx', 'dgz', 'test_query_local', rand());
execute sql:
use dgz;
SELECT uniq(id) FROM test_query_all WHERE repo = '100' AND id IN (SELECT id FROM test_query_local WHERE repo = '200');
then exception occurs:
Received exception from server (version 20.8.3):
Code: 60. DB::Exception: Received from 127.0.0.1:9000. DB::Exception: Received from xxxx:9000. DB::Exception: Table default.test_query_local doesn't exist..
Why this sql try to search table in default database in remote clickhouse instance.
The text was updated successfully, but these errors were encountered: