mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 16:42:05 +00:00
add tests for hasColumnInTable [#METR-23248]
This commit is contained in:
parent
15e9741273
commit
766caff3dc
@ -0,0 +1,7 @@
|
||||
1
|
||||
1
|
||||
1
|
||||
1
|
||||
0
|
||||
0
|
||||
0
|
11
dbms/tests/queries/0_stateless/00386_has_column_in_table.sql
Normal file
11
dbms/tests/queries/0_stateless/00386_has_column_in_table.sql
Normal file
@ -0,0 +1,11 @@
|
||||
DROP TABLE IF EXISTS has_column_in_table_test;
|
||||
CREATE TABLE has_column_in_table_test (i Int64, s String, nest Nested(x UInt8, y UInt32)) ENGINE = Memory;
|
||||
|
||||
SELECT hasColumnInTable('default', 'has_column_in_table_test', 'i');
|
||||
SELECT hasColumnInTable('default', 'has_column_in_table_test', 's');
|
||||
SELECT hasColumnInTable('default', 'has_column_in_table_test', 'nest.x');
|
||||
SELECT hasColumnInTable('default', 'has_column_in_table_test', 'nest.y');
|
||||
|
||||
SELECT hasColumnInTable('default', 'has_column_in_table_test', 'nest');
|
||||
SELECT hasColumnInTable('default', 'has_column_in_table_test', 'nest.not_existing');
|
||||
SELECT hasColumnInTable('default', 'has_column_in_table_test', 'not_existing');
|
Loading…
Reference in New Issue
Block a user