Update the test

This commit is contained in:
Dmitry Novik 2024-05-17 11:43:33 +02:00
parent f0a2b85f05
commit 61ee5e46ad
2 changed files with 13 additions and 3 deletions

View File

@ -1,3 +1,13 @@
SELECT COLUMNS(license_text, library_name) APPLY (length) FROM system.licenses ORDER BY library_name LIMIT 1;
CREATE TABLE test
(
foo String,
bar String,
)
ENGINE = MergeTree()
ORDER BY (foo, bar);
SELECT COLUMNS(license_text, library_name, xyz) APPLY (length) FROM system.licenses; -- { serverError UNKNOWN_IDENTIFIER }
INSERT INTO test VALUES ('foo', 'bar1');
SELECT COLUMNS(bar, foo) APPLY (length) FROM test;
SELECT COLUMNS(bar, foo, xyz) APPLY (length) FROM test; -- { serverError UNKNOWN_IDENTIFIER }