Skip to content

chore: remove unused spark.comet.exceptionOnDatetimeRebase config - #5221

Merged
andygrove merged 1 commit into
apache:mainfrom
andygrove:remove-exception-on-datetime-rebase-conf
Aug 2, 2026
Merged

chore: remove unused spark.comet.exceptionOnDatetimeRebase config#5221
andygrove merged 1 commit into
apache:mainfrom
andygrove:remove-exception-on-datetime-rebase-conf

Conversation

@andygrove

Copy link
Copy Markdown
Member

Which issue does this PR close?

Related to #5010.

Rationale for this change

spark.comet.exceptionOnDatetimeRebase is declared in CometConf but is never read anywhere in the codebase — JVM or native. Setting it to true had no effect: Comet did not raise on dates/timestamps written with the legacy hybrid (Julian + Gregorian) calendar, it silently read them as Proleptic Gregorian. The config therefore advertised a safety guard that does not exist, which is worse than not offering one at all.

The real gap — no datetime rebasing in the native Parquet scan — is tracked by #5010 and remains documented in the scan compatibility guide.

What changes are included in this PR?

No upgrade guide entry is added: removing the key is not a behavior change, since no code path ever consulted it, and Spark ignores unrecognized spark.comet.* keys that users may still have set.

How are these changes tested?

Nothing referenced the config, so there is no behavior to test. Verified with a repo-wide grep for both the key string and the Scala symbol (only the two edited sites matched) and confirmed common + spark compile cleanly.

This config was never read anywhere in the codebase. Setting it had no
effect: Comet never raised on dates/timestamps written with the legacy
hybrid Julian/Gregorian calendar. Remove the dead config and drop the
note about it from the Parquet scan compatibility guide, which already
documents the underlying lack of datetime rebasing support (apache#5010).

@peterxcli peterxcli left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@comphead comphead left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @andygrove

@andygrove
andygrove merged commit 42a48bb into apache:main Aug 2, 2026
71 checks passed
@andygrove
andygrove deleted the remove-exception-on-datetime-rebase-conf branch August 2, 2026 20:15
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