Skip to content

Commit

Permalink
fix(cubesql): Match CubeScan timestamp literal types to member types
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Qyoun-ae <[email protected]>
  • Loading branch information
MazterQyou committed Feb 26, 2025
1 parent 5c47335 commit d229fcf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion rust/cubesql/cubesql/src/compile/engine/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ impl TableProvider for CubeTableProvider {
ColumnType::Decimal(p, s) => DataType::Decimal(p, s),
ColumnType::List(field) => DataType::List(field.clone()),
ColumnType::Timestamp => {
DataType::Timestamp(TimeUnit::Millisecond, None)
DataType::Timestamp(TimeUnit::Nanosecond, None)
}
},
true,
Expand Down
2 changes: 1 addition & 1 deletion rust/cubesql/cubesql/src/sql/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ impl ColumnType {
ColumnType::Blob => DataType::Utf8,
ColumnType::Decimal(p, s) => DataType::Decimal(*p, *s),
ColumnType::List(field) => DataType::List(field.clone()),
ColumnType::Timestamp => DataType::Timestamp(TimeUnit::Millisecond, None),
ColumnType::Timestamp => DataType::Timestamp(TimeUnit::Nanosecond, None),
}
}
}
Expand Down

0 comments on commit d229fcf

Please sign in to comment.