Skip to content

[Bug] Fix the bug of expire tags procedure LocalDateTime using utc timezone #5516

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

lizc9
Copy link
Contributor

@lizc9 lizc9 commented Apr 22, 2025

Purpose

Linked issue: close #xxx

CALL sys.expire_tags(
    table => 'db_name.table_name',
    older_than => '2025-04-22 17:49:21'
)

When executing the above statement, ExpireTagsProcedure will incorrectly convert the date string '2025-04-22 17:49:21' to the UTC LocalDateTime 2025-04-22 09:49:21

Tests

org.apache.paimon.utils.DateTimeUtilsTest#testParseTimestampData

API and Format

Documentation

@lizc9 lizc9 force-pushed the bugfux-expire-tags branch from de4723f to b52d52f Compare April 23, 2025 02:30
@lizc9 lizc9 changed the title [Bug] Fix the bug if expire tags procedure LocalDateTime using utc timezone [Bug] Fix the bug of expire tags procedure LocalDateTime using utc timezone Apr 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant