Files
superset2/tests/unit_tests
sadpandajoeandClaude Sonnet 5 69658f31dd fix(gsheets): emit plain ISO date literals for Date-column filters
GSheetsEngineSpec inherited SqliteEngineSpec.convert_dttm, which returns
None for types.Date, so Superset fell back to a datetime-with-microseconds
literal for Date-typed filter bounds. shillelagh's virtual table layer
parses that value with datetime.date.fromisoformat, which rejects the
trailing time and silently drops it to None, causing the GSheets adapter
to embed a bare, unquoted `null` literal in the query sent to Google's
API instead of a real value -- producing "Invalid query: NO_COLUMN: null".

Override convert_dttm on GSheetsEngineSpec to emit a plain 'YYYY-MM-DD'
literal for Date columns, which shillelagh can parse and quote correctly.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-08-20 05:03:32 +00:00
..