mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-17 21:24:28 +00:00
97f2a2213e
* Move some code outside dbms/src folder * Fix paths
29 lines
1.0 KiB
SQL
29 lines
1.0 KiB
SQL
DROP TABLE IF EXISTS bad_arrays;
|
|
CREATE TABLE bad_arrays (a Array(String), b Array(UInt8)) ENGINE = Memory;
|
|
|
|
INSERT INTO bad_arrays VALUES ([''],[]),([''],[1]);
|
|
|
|
SELECT a FROM bad_arrays ARRAY JOIN b;
|
|
|
|
DROP TABLE bad_arrays;
|
|
|
|
|
|
DROP TABLE IF EXISTS bad_arrays;
|
|
CREATE TABLE bad_arrays (a Array(String), b Array(String)) ENGINE = Memory;
|
|
|
|
INSERT INTO bad_arrays VALUES ([''],[]),([''],[]),([''],[]),([''],[]),([''],[]),([''],[]),([''],[]),([''],[]),([''],[]),(['abc'],['223750']),(['ноутбук acer aspire e5-532-p3p2'],[]),([''],[]),([''],[]),([''],[]),([''],[]),(['лучшие моноблоки 2016'],[]),(['лучшие моноблоки 2016'],[]),([''],[]),([''],[]);
|
|
|
|
SELECT a FROM bad_arrays ARRAY JOIN b;
|
|
|
|
DROP TABLE bad_arrays;
|
|
|
|
|
|
DROP TABLE IF EXISTS bad_arrays;
|
|
CREATE TABLE bad_arrays (a Array(String), b Array(UInt8)) ENGINE = Memory;
|
|
|
|
INSERT INTO bad_arrays VALUES (['abc','def'],[1,2,3]),([],[1,2]),(['a','b'],[]),(['Hello'],[1,2]),([],[]),(['x','y','z'],[4,5,6]);
|
|
|
|
SELECT a, b FROM bad_arrays ARRAY JOIN b;
|
|
|
|
DROP TABLE bad_arrays;
|