File tree Expand file tree Collapse file tree 2 files changed +74
-0
lines changed
packages/cubejs-schema-compiler/test/unit Expand file tree Collapse file tree 2 files changed +74
-0
lines changed Original file line number Diff line number Diff line change @@ -557,6 +557,22 @@ Array [
557557 },
558558 ],
559559 },
560+ Object {
561+ " and" : Array [
562+ Object {
563+ " member" : [Function ],
564+ " memberReference" : " ordersExt.completed_at" ,
565+ " operator" : " notInDateRange" ,
566+ " values" : [Function ],
567+ },
568+ Object {
569+ " member" : [Function ],
570+ " memberReference" : " ordersExt.completed_at" ,
571+ " operator" : " equals" ,
572+ " values" : [Function ],
573+ },
574+ ],
575+ },
560576 ],
561577 },
562578 } ,
@@ -611,6 +627,22 @@ Array [
611627 },
612628 ],
613629 },
630+ Object {
631+ " and" : Array [
632+ Object {
633+ " member" : [Function ],
634+ " memberReference" : " ordersExt.completed_at" ,
635+ " operator" : " notInDateRange" ,
636+ " values" : [Function ],
637+ },
638+ Object {
639+ " member" : [Function ],
640+ " memberReference" : " ordersExt.completed_at" ,
641+ " operator" : " equals" ,
642+ " values" : [Function ],
643+ },
644+ ],
645+ },
614646 ],
615647 },
616648 } ,
@@ -1197,6 +1229,22 @@ Array [
11971229 },
11981230 ],
11991231 },
1232+ Object {
1233+ " and" : Array [
1234+ Object {
1235+ " member" : [Function ],
1236+ " memberReference" : " ordersExt.completed_at" ,
1237+ " operator" : " notInDateRange" ,
1238+ " values" : [Function ],
1239+ },
1240+ Object {
1241+ " member" : [Function ],
1242+ " memberReference" : " ordersExt.completed_at" ,
1243+ " operator" : " equals" ,
1244+ " values" : [Function ],
1245+ },
1246+ ],
1247+ },
12001248 ],
12011249 },
12021250 } ,
@@ -1251,6 +1299,22 @@ Array [
12511299 },
12521300 ],
12531301 },
1302+ Object {
1303+ " and" : Array [
1304+ Object {
1305+ " member" : [Function ],
1306+ " memberReference" : " ordersExt.completed_at" ,
1307+ " operator" : " notInDateRange" ,
1308+ " values" : [Function ],
1309+ },
1310+ Object {
1311+ " member" : [Function ],
1312+ " memberReference" : " ordersExt.completed_at" ,
1313+ " operator" : " equals" ,
1314+ " values" : [Function ],
1315+ },
1316+ ],
1317+ },
12541318 ],
12551319 },
12561320 } ,
Original file line number Diff line number Diff line change @@ -78,6 +78,16 @@ cubes:
7878 operator : equals
7979 values :
8080 - " { securityContext.currentDate }"
81+ - and :
82+ - member : " {CUBE}.completed_at"
83+ operator : notInDateRange
84+ values :
85+ - 2022-01-01
86+ - " { security_context.currentDate }"
87+ - member : " completed_at"
88+ operator : equals
89+ values :
90+ - " { securityContext.currentDate }"
8191 memberLevel :
8292 includes :
8393 - status
You can’t perform that action at this time.
0 commit comments