ClickHouse/tests/queries/0_stateless/02366_kql_makeseries.reference
2023-08-26 07:40:38 -07:00

61 lines
3.7 KiB
Plaintext

-- from to
Costco Snargaluff ['2016-09-10 00:00:00.000000000','2016-09-11 00:00:00.000000000','2016-09-12 00:00:00.000000000'] [200,0,102]
Costco Apple ['2016-09-10 00:00:00.000000000','2016-09-11 00:00:00.000000000','2016-09-12 00:00:00.000000000'] [0,2,0]
Aldi Snargaluff ['2016-09-10 00:00:00.000000000','2016-09-11 00:00:00.000000000','2016-09-12 00:00:00.000000000'] [0,500,0]
Aldi Apple ['2016-09-10 00:00:00.000000000','2016-09-11 00:00:00.000000000','2016-09-12 00:00:00.000000000'] [5,0,6]
-- from
Costco Snargaluff ['2016-09-10 00:00:00.000000000','2016-09-11 00:00:00.000000000','2016-09-12 00:00:00.000000000'] [200,0,102]
Costco Apple ['2016-09-10 00:00:00.000000000','2016-09-11 00:00:00.000000000'] [0,2]
Aldi Snargaluff ['2016-09-10 00:00:00.000000000','2016-09-11 00:00:00.000000000'] [0,500]
Aldi Apple ['2016-09-10 00:00:00.000000000','2016-09-11 00:00:00.000000000','2016-09-12 00:00:00.000000000'] [5,0,6]
-- to
Costco Snargaluff ['2016-09-10 00:00:00.000000000','2016-09-11 00:00:00.000000000','2016-09-12 00:00:00.000000000'] [200,0,102]
Costco Apple ['2016-09-11 00:00:00.000000000','2016-09-12 00:00:00.000000000'] [2,0]
Aldi Snargaluff ['2016-09-11 00:00:00.000000000','2016-09-12 00:00:00.000000000'] [500,0]
Aldi Apple ['2016-09-10 00:00:00.000000000','2016-09-11 00:00:00.000000000','2016-09-12 00:00:00.000000000'] [5,0,6]
-- without from/to
Costco Snargaluff ['2016-09-10 00:00:00.000000000','2016-09-11 00:00:00.000000000','2016-09-12 00:00:00.000000000'] [200,0,102]
Costco Apple ['2016-09-11 00:00:00.000000000'] [2]
Aldi Snargaluff ['2016-09-11 00:00:00.000000000'] [500]
Aldi Apple ['2016-09-10 00:00:00.000000000','2016-09-11 00:00:00.000000000','2016-09-12 00:00:00.000000000'] [5,0,6]
-- without by
['2016-09-10 00:00:00.000000000','2016-09-11 00:00:00.000000000','2016-09-12 00:00:00.000000000'] [70,334,54]
-- without aggregation alias
Costco Snargaluff ['2016-09-10 00:00:00.000000000','2016-09-11 00:00:00.000000000','2016-09-12 00:00:00.000000000'] [200,0,102]
Aldi Snargaluff ['2016-09-11 00:00:00.000000000'] [500]
Aldi Apple ['2016-09-10 00:00:00.000000000','2016-09-11 00:00:00.000000000','2016-09-12 00:00:00.000000000'] [5,0,6]
Costco Apple ['2016-09-11 00:00:00.000000000'] [2]
-- assign group alias
Costco Snargaluff ['2016-09-10 00:00:00.000000000','2016-09-11 00:00:00.000000000','2016-09-12 00:00:00.000000000'] [200,0,102]
Aldi Snargaluff ['2016-09-11 00:00:00.000000000'] [500]
Aldi Apple ['2016-09-10 00:00:00.000000000','2016-09-11 00:00:00.000000000','2016-09-12 00:00:00.000000000'] [5,0,6]
Costco Apple ['2016-09-11 00:00:00.000000000'] [2]
-- 3d step
Costco Snargaluff ['2016-09-10 00:00:00.000000000'] [134.66666666666666]
Costco Apple ['2016-09-10 00:00:00.000000000'] [2]
Aldi Snargaluff ['2016-09-10 00:00:00.000000000'] [500]
Aldi Apple ['2016-09-10 00:00:00.000000000'] [5.5]
-- numeric column
Costco Snargaluff [10,11,12,13,14] [200,0,102,0,0]
Aldi Snargaluff [10,11,12,13,14] [0,500,0,0,0]
Aldi Apple [10,11,12,13,14] [5,0,6,0,0]
Costco Apple [10,11,12,13,14] [0,2,0,0,0]
-- from
Costco Snargaluff [10,11,12] [200,0,102]
Aldi Snargaluff [10,11] [0,500]
Aldi Apple [10,11,12] [5,0,6]
Costco Apple [10,11] [0,2]
-- to
Costco Snargaluff [8,12,16] [200,102,0]
Aldi Snargaluff [8,12,16] [500,0,0]
Aldi Apple [8,12,16] [5,6,0]
Costco Apple [8,12,16] [2,0,0]
-- without from/to
Costco Snargaluff [10,12] [200,102]
Aldi Snargaluff [10] [500]
Aldi Apple [10,12] [5,6]
Costco Apple [10] [2]
-- without by
[10,12] [202,54]
['2017-01-01 00:00:00.000000000','2017-01-02 00:00:00.000000000','2017-01-03 00:00:00.000000000','2017-01-04 00:00:00.000000000','2017-01-05 00:00:00.000000000','2017-01-06 00:00:00.000000000','2017-01-07 00:00:00.000000000','2017-01-08 00:00:00.000000000','2017-01-09 00:00:00.000000000'] [4,3,5,0,10.5,4,3,8,6.5]