chore: update lance dependency to v9.0.0-beta.16

This commit is contained in:
lancedb automation
2026-07-06 21:10:10 +00:00
parent 3bcff0165e
commit 5e58dde32d
4 changed files with 57 additions and 57 deletions
+2 -2
View File
@@ -191,7 +191,7 @@ pub fn expr_lit(value: Bound<'_, PyAny>) -> PyResult<PyExpr> {
}
// datetime.datetime is a subclass of datetime.date, so it must be checked first.
if let Ok(dt) = value.downcast::<PyDateTime>() {
if let Ok(dt) = value.cast::<PyDateTime>() {
let ts: f64 = dt.call_method0("timestamp")?.extract()?;
let micros = (ts * 1_000_000.0).round() as i64;
return Ok(PyExpr(df_lit(ScalarValue::TimestampMicrosecond(
@@ -199,7 +199,7 @@ pub fn expr_lit(value: Bound<'_, PyAny>) -> PyResult<PyExpr> {
None,
))));
}
if let Ok(d) = value.downcast::<PyDate>() {
if let Ok(d) = value.cast::<PyDate>() {
let ordinal: i32 = d.call_method0("toordinal")?.extract()?;
let days = ordinal - 719163; // Unix epoch is 1970-01-01
return Ok(PyExpr(df_lit(ScalarValue::Date32(Some(days)))));