ClickHouse/tests/queries/0_stateless/01948_dictionary_quoted_database_name.sql
2021-09-12 17:15:28 +03:00

41 lines
877 B
SQL

-- Tags: no-parallel
DROP DATABASE IF EXISTS `01945.db`;
CREATE DATABASE `01945.db`;
CREATE TABLE `01945.db`.test_dictionary_values
(
id UInt64,
value String
) ENGINE=TinyLog;
INSERT INTO `01945.db`.test_dictionary_values VALUES (0, 'Value');
CREATE DICTIONARY `01945.db`.test_dictionary
(
id UInt64,
value String
)
PRIMARY KEY id
LAYOUT(DIRECT())
SOURCE(CLICKHOUSE(DB '01945.db' TABLE 'test_dictionary_values'));
SELECT * FROM `01945.db`.test_dictionary;
DROP DICTIONARY `01945.db`.test_dictionary;
CREATE DICTIONARY `01945.db`.`test_dictionary.test`
(
id UInt64,
value String
)
PRIMARY KEY id
LAYOUT(DIRECT())
SOURCE(CLICKHOUSE(DB '01945.db' TABLE 'test_dictionary_values'));
SELECT * FROM `01945.db`.`test_dictionary.test`;
DROP DICTIONARY `01945.db`.`test_dictionary.test`;
DROP TABLE `01945.db`.test_dictionary_values;
DROP DATABASE `01945.db`;