Closed bisrael8191 closed 1 year ago
hi @bisrael8191 thank you for reporting the issue. I apologise for the long delay in getting back, I lost track of the calendar with a packed summer. Would you like to contribute the change?
best
I believe this release fixes it https://pypi.org/project/questdb-connect/1.0.11/
I'm having an issue trying to use the time range filters in Apache Superset because it auto generates the following query for charts:
TO_TIMESTAMP('2023-06-18T00:00:00.000000', 'yyyy-MM-ddTHH:mm:ss.SSSUUUZ')
returns null because of the extraZ
on the end of the format, but bothTO_TIMESTAMP('2023-06-18T00:00:00.000000', 'yyyy-MM-ddTHH:mm:ss.SSSUUU')
andTO_TIMESTAMP('2023-06-18T00:00:00.000000Z', 'yyyy-MM-ddTHH:mm:ss.SSSUUUZ')
work as expected. Same behavior seen when using the quest console to manually run queries.I believe this would be a small change to this line: https://github.com/questdb/questdb-connect/blob/main/src/qdb_superset/db_engine_specs/questdb.py#L218 Either append a
Z
to the isoformatted string or remove theZ
from the TO_TIMESTAMP function.