Skip to content

Commit 1e9a63e

Browse files
committed
Resolve conficts
1 parent 2c838e0 commit 1e9a63e

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

rust/cubesqlplanner/cubesqlplanner/src/planner/sql_evaluator/symbols/dimension_symbol.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -242,8 +242,8 @@ impl DimensionSymbol {
242242
false
243243
}
244244
}) {
245-
if let Some(pk) = &self.time_shift_pk {
246-
return Some((pk.full_name(), ts.clone()));
245+
if let Some(pk) = &self.time_shift_pk_full_name() {
246+
return Some((pk.clone(), ts.clone()));
247247
}
248248
}
249249
None

rust/cubesqlplanner/cubesqlplanner/src/planner/sql_evaluator/symbols/measure_symbol.rs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -574,12 +574,7 @@ impl SymbolFactory for MeasureSymbolFactory {
574574
let interval = match &shift_ref.interval {
575575
Some(raw) => {
576576
let mut iv = raw.parse::<SqlInterval>()?;
577-
if shift_ref
578-
.shift_type
579-
.as_deref()
580-
.unwrap_or("prior")
581-
== "next"
582-
{
577+
if shift_ref.shift_type.as_deref().unwrap_or("prior") == "next" {
583578
iv = -iv;
584579
}
585580

0 commit comments

Comments
 (0)