paimon icon indicating copy to clipboard operation
paimon copied to clipboard

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

Open lizc9 opened this issue 8 months ago • 0 comments

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 avatar Apr 22 '25 12:04 lizc9