Skip to content

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
KSDaemon committed Jan 27, 2025
1 parent 1791127 commit 6621359
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions rust/cubesql/cubesql/src/compile/rewrite/converter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1825,15 +1825,17 @@ impl LanguageToLogicalPlanConverter {
let values =
match_data_node!(node_by_id, params[2], FilterMemberValues);
if !is_in_or && op == "inDateRange" {
let existing_time_dimensions: Vec<_> =
query_time_dimensions.iter_mut().filter_map(|td| {
let existing_time_dimensions: Vec<_> = query_time_dimensions
.iter_mut()
.filter_map(|td| {
if td.dimension == member && td.date_range.is_none() {
td.date_range = Some(json!(values));
Some(td)
} else {
None
}
}).collect();
})
.collect();
if existing_time_dimensions.len() == 0 {
let dimension = V1LoadRequestQueryTimeDimension {
dimension: member.to_string(),
Expand Down

0 comments on commit 6621359

Please sign in to comment.