Skip to content

A reactive notebook for Python — run reproducible experiments, query with SQL, execute as a script, deploy as an app, and version with git. Stored as pure Python. All in a modern, AI-native editor.

fix: use millisecond() instead of microsecond()//1000 in ibis time binning (#8734)

Myles Scolnickdf993c5d95f7
diff --git a/marimo/_plugins/ui/_impl/tables/ibis_table.py b/marimo/_plugins/ui/_impl/tables/ibis_table.py
index 742a344a00..f7ca58f266 100644
--- a/marimo/_plugins/ui/_impl/tables/ibis_table.py
+++ b/marimo/_plugins/ui/_impl/tables/ibis_table.py
@@ -146,10 +146,10 @@ class IbisTableManagerFactory(TableManagerFactory):
if dtype.is_time():
col_agg = (
- col.hour() * 3600000
- + col.minute() * 60000
- + col.second() * 1000
- + col.microsecond() // 1000
+ col.hour().cast("int64") * 3600000
+ + col.minute().cast("int64") * 60000
+ + col.second().cast("int64") * 1000
+ + col.millisecond().cast("int64")
)
else:
col_agg = col.epoch_seconds()