We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8e7c5c7 commit e7b4a80Copy full SHA for e7b4a80
rust/cubesql/cubesql/src/compile/engine/df/scan.rs
@@ -1135,10 +1135,12 @@ pub fn transform_response<V: ValueObject>(
1135
))
1136
})?;
1137
// TODO switch parsing to microseconds
1138
- if timestamp.timestamp_millis() > (((1 as i64) << 62) / 1_000_000) {
+ if timestamp.timestamp_millis() > (((1i64) << 62) / 1_000_000) {
1139
builder.append_null()?;
1140
+ } else if let Some(nanos) = timestamp.timestamp_nanos_opt() {
1141
+ builder.append_value(nanos)?;
1142
} else {
- builder.append_value(timestamp.timestamp_nanos_opt().unwrap())?;
1143
+ builder.append_null()?;
1144
}
1145
},
1146
0 commit comments