Skip to content

[spark] Add legacy timestamp mapping option#8433

Merged
JingsongLi merged 1 commit into
apache:masterfrom
kerwin-zk:fix-spark-legacy-timestamp-mapping
Jul 3, 2026
Merged

[spark] Add legacy timestamp mapping option#8433
JingsongLi merged 1 commit into
apache:masterfrom
kerwin-zk:fix-spark-legacy-timestamp-mapping

Conversation

@kerwin-zk

@kerwin-zk kerwin-zk commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

Purpose

Add spark.paimon.legacy-timestamp-mapping.enabled for Spark 3.4+ users who need to expose Paimon TIMESTAMP as Spark TIMESTAMP instead of TIMESTAMP_NTZ. The option is disabled by default, so existing Spark 3.4+ behavior is unchanged.

When enabled, Paimon reuses the existing legacy timestamp conversion path. This helps workloads migrating from Spark 3.3 keep expressions such as unix_timestamp(ts) followed by from_unixtime(...) consistent with their previous behavior.

Tests

CI

@kerwin-zk kerwin-zk force-pushed the fix-spark-legacy-timestamp-mapping branch from 3526c27 to f3cd830 Compare July 3, 2026 03:28
@JingsongLi

Copy link
Copy Markdown
Contributor

+1

@JingsongLi JingsongLi merged commit bbe2d10 into apache:master Jul 3, 2026
13 checks passed
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.

3 participants