M
SELECT COLUMNS('(?!^cat$)(^.*$)') FROM TSize: a a a
M
SELECT COLUMNS('(?!^cat$)(^.*$)') FROM TD
SELECT '<A'
┌─'<A'─┐
│ <A │
└──────┘
DC
[1,2] -> 2[2,3] -> 3 (1,2 были известны к этому моменту, т.е. добавился только один - 3)[1,2,3] -> 3 (все элементы уже были)DC
SELECT '<A'
SELECT '<A' as XXX AF
A
Application: DB::Exception: external dictionary 'my_dict' not found:
DC
Application: DB::Exception: external dictionary 'my_dict' not found:
D
with (
select groupArray(objfilter) from (
select 'lvl1=2,lvl2=3,lvl3=5' as objfilter UNION ALL
select 'lvl1=1,lvl2=3,lvl3=5,lvl4=43' as objfilter
)
) as fltArr
select fltArr, * from
(
select 'lvl1=2,lvl2=3,lvl3=5' as objpath UNION ALL
select 'lvl1=2,lvl2=3,lvl3=5,lvl4=2' as objpath UNION ALL
select 'lvl1=2,lvl2=3,lvl3=5,lvl4=44' as objpath UNION ALL
select 'lvl1=3,lvl2=3,lvl3=6' as objpath UNION ALL
select 'lvl1=2,lvl2=3' as objpath UNION ALL
select 'lvl1=1,lvl2=3,lvl3=5' as objpath
) t
WHERE arrayExists(
selectedObj ->
(startsWith(objpath, selectedObj)
or startsWith(selectedObj, objpath)),
fltArr);
DC
D
D
D
lvl1=2,lvl2=3,lvl3=5
lvl1=2,lvl2=3,lvl3=5 -- filter object itself
lvl1=2,lvl2=3,lvl3=5,lvl4=2 -- child of filter object
lvl1=2,lvl2=3,lvl3=5,lvl4=44 -- child of filter object
lvl1=2,lvl2=3 -- parent of filter object
DC
D
D
["lvl1=2", "lvl1=2,lvl2=3", "lvl1=2,lvl2=3,lvl3=5"]
D
D
D
D
DC