← 输入框|github.com|刷新
Skip to content

fix: use table_format when writing to path-based SparkSource in offline_write_batch - #7055

Open
Mrun25 wants to merge 1 commit into
feast-dev:masterfrom
Mrun25:fix-spark-offline-write-table-format-6955
Open

Mrun25 wants to merge 1 commit into
feast-dev:masterfrom
Mrun25:fix-spark-offline-write-table-format-6955

Conversation

@Mrun25

@Mrun25 Mrun25 commented Oct 21, 2026

Copy link
Copy Markdown

What this PR does

SparkOfflineStore.offline_write_batch only looked at file_format for path-based SparkSources. A source configured with table_format (for example Delta) and no file_format was read and written with format(None).

The existing-data read now goes through SparkSource._load_dataframe_from_path, the same code the retrieval path uses. The write uses table_format.format_type and its properties when table_format is set, and falls back to file_format otherwise, so sources without a table format behave as before.

Testing

Added test_spark_offline_write_batch.py covering file_format only, table_format only (with options), and table_format taking precedence. The new tests fail without the change and pass with it.

Fixes #6955

…ne_write_batch

Signed-off-by: Mrun25 <165297479+Mrun25@users.noreply.github.com>
@Mrun25
Mrun25 requested a review from a team as a code owner October 21, 2026 04:36
Copilot AI balanced review requested due to automatic review settings October 21, 2026 04:36

Copilot AI 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.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

SparkOfflineStore.offline_write_batch ignores table_format and writes with file_format

3 participants