2021-09-12 12:35:27 +00:00
|
|
|
-- Tags: replica
|
|
|
|
|
2019-04-16 14:13:13 +00:00
|
|
|
DROP TABLE IF EXISTS bad_arrays;
|
|
|
|
CREATE TABLE bad_arrays (a Array(String), b Array(UInt8)) ENGINE = Memory;
|
2016-06-28 19:43:32 +00:00
|
|
|
|
2019-04-16 14:13:13 +00:00
|
|
|
INSERT INTO bad_arrays VALUES ([''],[]),([''],[1]);
|
2016-06-28 19:43:32 +00:00
|
|
|
|
2019-04-16 14:13:13 +00:00
|
|
|
SELECT a FROM bad_arrays ARRAY JOIN b;
|
2016-06-28 19:43:32 +00:00
|
|
|
|
2019-04-16 14:13:13 +00:00
|
|
|
DROP TABLE bad_arrays;
|
2016-06-28 19:43:32 +00:00
|
|
|
|
|
|
|
|
2019-04-16 14:13:13 +00:00
|
|
|
DROP TABLE IF EXISTS bad_arrays;
|
|
|
|
CREATE TABLE bad_arrays (a Array(String), b Array(String)) ENGINE = Memory;
|
2016-06-28 19:43:32 +00:00
|
|
|
|
2019-04-16 14:13:13 +00:00
|
|
|
INSERT INTO bad_arrays VALUES ([''],[]),([''],[]),([''],[]),([''],[]),([''],[]),([''],[]),([''],[]),([''],[]),([''],[]),(['abc'],['223750']),(['ноутбук acer aspire e5-532-p3p2'],[]),([''],[]),([''],[]),([''],[]),([''],[]),(['лучшие моноблоки 2016'],[]),(['лучшие моноблоки 2016'],[]),([''],[]),([''],[]);
|
2016-06-28 19:43:32 +00:00
|
|
|
|
2019-04-16 14:13:13 +00:00
|
|
|
SELECT a FROM bad_arrays ARRAY JOIN b;
|
2016-06-28 19:43:32 +00:00
|
|
|
|
2019-04-16 14:13:13 +00:00
|
|
|
DROP TABLE bad_arrays;
|
2016-06-28 21:35:49 +00:00
|
|
|
|
|
|
|
|
2019-04-16 14:13:13 +00:00
|
|
|
DROP TABLE IF EXISTS bad_arrays;
|
|
|
|
CREATE TABLE bad_arrays (a Array(String), b Array(UInt8)) ENGINE = Memory;
|
2016-06-28 21:35:49 +00:00
|
|
|
|
2019-04-16 14:13:13 +00:00
|
|
|
INSERT INTO bad_arrays VALUES (['abc','def'],[1,2,3]),([],[1,2]),(['a','b'],[]),(['Hello'],[1,2]),([],[]),(['x','y','z'],[4,5,6]);
|
2016-06-28 21:35:49 +00:00
|
|
|
|
2019-04-16 14:13:13 +00:00
|
|
|
SELECT a, b FROM bad_arrays ARRAY JOIN b;
|
2016-06-28 21:35:49 +00:00
|
|
|
|
2019-04-16 14:13:13 +00:00
|
|
|
DROP TABLE bad_arrays;
|