You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
DuckDB: TIMESTAMP_MS columns render as 1970-01-01 00:00:00 in the grid #2130
Every value in a DuckDB TIMESTAMP_MS column displays as 1970-01-01 00:00:00 in the results grid, regardless of the actual stored value. The same data as plain TIMESTAMP renders correctly.
I hit this on a real database: after running ALTER TABLE bars ALTER COLUMN open_ts SET DATA TYPE TIMESTAMP_MS, all 2.5M rows displayed as 1970-01-01 00:00:00 even though the stored values are 2025–2026 dates (verified via the DuckDB CLI and Python client, which both render them correctly).
Steps to reproduce
Create a DuckDB file:
CREATETABLEt (ts TIMESTAMP_MS);
INSERT INTO t VALUES ('2026-08-14 23:59:00.127');
Open the file in TablePro and browse table t (or SELECT * FROM t).
The cell shows 1970-01-01 00:00:00.
TIMESTAMP_S and TIMESTAMP_NS most likely take the same code path (I only verified TIMESTAMP_MS).
Expected behavior
2026-08-14 23:59:00.127, as DuckDB itself prints it.
Where it seems to go wrong
In Plugins/DuckDBDriverPlugin/DuckDBConnection.swift, extractFallbackValue funnels all timestamp flavors through the same C API call:
case DUCKDB_TYPE_TIMESTAMP, DUCKDB_TYPE_TIMESTAMP_S, DUCKDB_TYPE_TIMESTAMP_MS, DUCKDB_TYPE_TIMESTAMP_NS:letts=duckdb_value_timestamp(&result,col,row)returnformatTimestamp(ts)
duckdb_value_timestamp is only defined for microsecond TIMESTAMP values; for the _S/_MS/_NS variants it doesn't return a converted value (observed: 0, hence epoch 1970-01-01 for every row). A unit conversion per type (or casting the column to TIMESTAMP/VARCHAR before extraction) would fix it.
Activity