Trying to fix test

This commit is contained in:
achulkov2 2019-12-24 22:28:41 +03:00
parent f7a086b9d9
commit 4f66c4bc7d

View File

@ -5,36 +5,8 @@ drop table if exists polygons;
create table polygons (key Array(Array(Array(Array(Float64)))), name String, u64 UInt64) Engine = Memory;
insert into polygons values ([[[[1, 3], [1, 1], [3, 1], [3, -1], [1, -1], [1, -3], [-1. -3], [-1, -1], [-3, -1], [-3, 1], [-1, 1], [-1, 3]]], [[[5, 5], [5, 1], [7, 1], [7, 7], [1, 7], [1, 5]]]], 'Click', 42);
/*
insert into polygons values (
[
[
[
[5, 5],
[5, -5],
[-5, -5],
[-5, 5]
],
[
[1, 3],
[1, 1],
[3, 1],
[3, -1],
[1, -1],
[1, -3],
[-1. -3],
[-1, -1],
[-3, -1],
[-3, 1],
[-1, 1],
[-1, 3]
]
]
],
'House',
314159);
*/
select 'dictGet', 'polygons' as dict_name, (0.0, 0.0) as key,
insert into polygons values ([[[[5, 5], [5, -5], [-5, -5], [-5, 5]], [[1, 3], [1, 1], [3, 1], [3, -1], [1, -1], [1, -3], [-1. -3], [-1, -1], [-3, -1], [-3, 1], [-1, 1], [-1, 3]]]], 'House', 314159);
select 'dictGet', 'polygons' as dict_name, tuple(0.0, 0.0) as key,
dictGet(dict_name, 'name', key),
dictGet(dict_name, 'u64', key);
drop table polygons;