Skip to content

Conversation

Tishj
Copy link
Contributor

@Tishj Tishj commented Nov 29, 2023

This relates to #8143 and fixes #9520

To fix the issue mentioned we added support for outputting infinity as datetime.datetime.max, to be able to roundtrip this, we also scanned datetime.datetime.max as infinity.

This caused issues in other places.

To fix both issues, we now output the string'infinity' instead.


Also fixed some issues found while working on this, related to NaT and NA not being properly recognized as NULL

@Tishj Tishj force-pushed the python_remove_infinity_scan branch from d0dbf80 to 1c42009 Compare November 29, 2023 15:35
@github-actions github-actions bot marked this pull request as draft November 29, 2023 15:36
@Tishj Tishj changed the title [Python] Output 'infinity' and '-infinity' when scanning TIMESTAMP and DATE columns [Python] No longer scan datetime.datetime.max as infinity Nov 29, 2023
@Tishj Tishj marked this pull request as ready for review November 30, 2023 08:36
@Mytherin Mytherin merged commit 0e537e8 into duckdb:main Dec 1, 2023
@Mytherin
Copy link
Collaborator

Mytherin commented Dec 1, 2023

Thanks! LGTM

krlmlr added a commit to duckdb/duckdb-r that referenced this pull request Dec 14, 2023
Merge pull request duckdb/duckdb#9868 from Mytherin/tsanfix
Merge pull request duckdb/duckdb#9846 from samansmink/fix-s3fs-close-issue
Merge pull request duckdb/duckdb#9830 from carlopi/reworkcmakewasm
Merge pull request duckdb/duckdb#9848 from Tishj/python_remove_infinity_scan
Merge pull request duckdb/duckdb#9860 from chrisiou/fix-empty-box
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Overflow when exporting far-future dates to Arrow (IFF registered with pandas)
2 participants