Skip to content
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

[SPARK] Stringify the delta optimize 'auto' operationalParameter in CommitInfo #3889

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

Conversation

MaicoTimmerman
Copy link

Which Delta project/connector is this regarding?

  • Spark
  • Standalone
  • Flink
  • Kernel
  • Other (fill in here)

Description

The inCommitTimestamp feature of Delta Kernel API expects the operationalParameters of CommitInfo to be a MapType<StringType, StringType>.

The newly added autoCompact feature added the auto flag to operationalParamaters as a boolean, which is incompatible.

This PR restores that expectation of the inCommitTimestamp feature for the OPTIMIZE operation in the Spark Connector.

Resolves #3888.

How was this patch tested?

I've attached a test-case.

Does this PR introduce any user-facing changes?

We change format of the field commitInfo.operationalParameters.auto field from boolean to string.

@MaicoTimmerman MaicoTimmerman changed the title [SPARK] Stringify the delta optimize 'auto' operationalParameter' in CommitInfo [SPARK] Stringify the delta optimize 'auto' operationalParameter in CommitInfo Nov 19, 2024
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.

[BUG][SPARK] Delta Optimize CommitInfo's operationalParameters incompatible with Delta Kernel API CommitInfo
2 participants