Skip to content

Conversation

ted0928
Copy link
Contributor

@ted0928 ted0928 commented Apr 28, 2025

Description of changes

When string like '2025-04-28 00:00:00' cast to dt.timestamp.from_unit('s'), the unit is ignored, sql is like:

TO_TIMESTAMP(COALESCE('2025-04-28 00:00:00','yyyy-MM-dd HH:mm:ss.SSS')

Fix it when unit is second:
TO_TIMESTAMP(COALESCE('2025-04-28 00:00:00')
the default value of the format string is 'yyyy-MM-dd HH:mm:ss' .

Issues closed

@github-actions github-actions bot added the sql Backends that generate SQL label Apr 28, 2025
@ted0928 ted0928 closed this Apr 28, 2025
@ted0928 ted0928 reopened this Apr 28, 2025
@ted0928 ted0928 marked this pull request as ready for review April 28, 2025 09:43
@ted0928 ted0928 force-pushed the main branch 2 times, most recently from 7591141 to 39964d7 Compare May 11, 2025 16:25
@github-actions github-actions bot added tests Issues or PRs related to tests flink Issues or PRs related to Flink labels Jun 10, 2025
@cpcloud cpcloud merged commit cfa5768 into ibis-project:main Jun 11, 2025
109 of 111 checks passed
@cpcloud
Copy link
Member

cpcloud commented Jun 11, 2025

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
flink Issues or PRs related to Flink sql Backends that generate SQL tests Issues or PRs related to tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants