You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[WIP] fix(cubesql): Use pushdown-pullup scheme for FilterSimplifyReplacer
This should avoid unexpected unifications of simplified expression in unrelated context. For example, same expression can be present in filter and projection, but due to over-unification in filters it can receive different representation in projection, and break aliases later, during extraction
"expr": "CAST(${KibanaSampleDataEcommerce.order_date} AS DATE)",
12925
-
"grouping_set": null,
12926
-
}).to_string(),
12927
-
]),
12928
-
segments: Some(vec![
12929
-
json!({
12930
-
"cube_name": "KibanaSampleDataEcommerce",
12931
-
"alias": "kibanasampledata",
12932
-
"cube_params": ["KibanaSampleDataEcommerce"],
12933
-
"expr": format!("(((${{KibanaSampleDataEcommerce.order_date}} >= DATE('{start_date}')) AND (${{KibanaSampleDataEcommerce.order_date}} < DATE('{end_date}'))) AND (((${{KibanaSampleDataEcommerce.notes}} = $0$) OR (${{KibanaSampleDataEcommerce.notes}} = $1$)) OR (${{KibanaSampleDataEcommerce.notes}} = $2$)))"),
12934
-
"grouping_set": null,
12935
-
}).to_string(),
12936
-
]),
12913
+
measures: Some(vec![json!({
12914
+
"cube_name": "KibanaSampleDataEcommerce",
12915
+
"alias": "avg_kibanasample",
12916
+
"cube_params": ["KibanaSampleDataEcommerce"],
12917
+
"expr": "${KibanaSampleDataEcommerce.avgPrice}",
12918
+
"grouping_set": null,
12919
+
})
12920
+
.to_string(),]),
12921
+
dimensions: Some(vec![json!({
12922
+
"cube_name": "KibanaSampleDataEcommerce",
12923
+
"alias": "cast_kibanasampl",
12924
+
"cube_params": ["KibanaSampleDataEcommerce"],
12925
+
"expr": "CAST(${KibanaSampleDataEcommerce.order_date} AS DATE)",
0 commit comments