@@ -32,28 +32,27 @@ async function checkCubestoreState(cubestore: any) {
3232 expect ( rows . slice ( 0 , 4 ) ) . toEqual ( [
3333 {
3434 table_schema : 'dev_pre_aggregations' ,
35- table_name : 'orders_orders_by_completed_at20200201 ' ,
36- build_range_end : '2020-02-29T23 :59:59.999Z' ,
35+ table_name : 'orders__a_orders_by_completed_by_hour2020050500 ' ,
36+ build_range_end : '2020-05-05T00 :59:59.999Z' ,
3737 } ,
3838 {
3939 table_schema : 'dev_pre_aggregations' ,
40- table_name : 'orders_orders_by_completed_at20200301 ' ,
41- build_range_end : '2020-03-31T23 :59:59.999Z' ,
40+ table_name : 'orders__a_orders_by_completed_by_hour2020050501 ' ,
41+ build_range_end : '2020-05-05T01 :59:59.999Z' ,
4242 } ,
4343 {
4444 table_schema : 'dev_pre_aggregations' ,
45- table_name : 'orders_orders_by_completed_at20200401 ' ,
46- build_range_end : '2020-04-30T23 :59:59.999Z' ,
45+ table_name : 'orders__a_orders_by_completed_by_hour2020050502 ' ,
46+ build_range_end : '2020-05-05T02 :59:59.999Z' ,
4747 } ,
4848 {
4949 table_schema : 'dev_pre_aggregations' ,
50- table_name : 'orders_orders_by_completed_at20200501 ' ,
51- build_range_end : '2020-05-01T00:00:00.000Z ' ,
50+ table_name : 'orders__a_orders_by_completed_by_hour2020050503 ' ,
51+ build_range_end : '2020-05-05T03:59:59.999Z ' ,
5252 } ,
5353 ] ) ;
54- expect ( table . build_range_end ) . toEqual ( '2020-05-01T00:00:00.000Z' ) ;
5554 rows = await cubestore . query ( `SELECT * FROM ${ table . table_schema } .${ table . table_name } ` , [ ] ) ;
56- expect ( rows . length ) . toEqual ( 0 ) ;
55+ expect ( rows . length ) . toEqual ( 1 ) ;
5756}
5857
5958describe ( 'lambda' , ( ) => {
@@ -140,7 +139,8 @@ describe('lambda', () => {
140139 // @ts -ignore
141140 expect ( Object . keys ( response . loadResponse . results [ 0 ] . usedPreAggregations ) ) . toEqual ( [
142141 'dev_pre_aggregations.orders_orders_by_completed_at' ,
143- 'dev_pre_aggregations.orders_orders_by_completed_by_day'
142+ 'dev_pre_aggregations.orders_orders_by_completed_by_day' ,
143+ 'dev_pre_aggregations.orders__a_orders_by_completed_by_hour'
144144 ] ) ;
145145
146146 // With lambda-view we observe all 'fresh' data, with no partition/buildRange limit.
0 commit comments