DuckDB export stores FALSE flags as TRUE
Author: xu91102Created Sep 26, 2026Updated Sep 27, 2026
Labelsbugexport/duckdb
DuckDB normalization converts both ['False'] and ['True'] to Python True, because bool('False') is true. Exporting an explicitly false flag therefore stores TRUE.
Reproduction on develop using Python 3.12.13, DuckDB 1.5.5, macOS:
from glances.exports.glances_duckdb import Export
exporter = Export.__new__(Export)
assert exporter.normalize(['False']) is False # fails: returns TrueA regression also writes the normalized flag through Export.export into an in-memory DuckDB table and reads it back: actual (True,), expected (False,). Prepared with Codex assistance.
Source: nicolargo/glances