You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by "hvanhovell (via GitHub)" <gi...@apache.org> on 2026/04/08 14:29:59 UTC
[PR] [SPARK-56388][CONNECT] Add XML support to Spark Connect Parse protocol [spark]
hvanhovell opened a new pull request, #55262:
URL: https://github.com/apache/spark/pull/55262
### What changes were proposed in this pull request?
Added `PARSE_FORMAT_XML` to the `Parse.ParseFormat` enum in the Spark Connect proto
(`relations.proto`) and wired it through the full stack:
- **Client** (`DataFrameReader.scala`): `xml(Dataset[String])` now sends `PARSE_FORMAT_XML`
instead of `PARSE_FORMAT_UNSPECIFIED`
- **Server** (`SparkConnectPlanner.scala`): handles `PARSE_FORMAT_XML` by dispatching to
`dataFrameReader.xml(ds)`
- **Proto generated files**: regenerated Python proto bindings
### Why are the changes needed?
`DataFrameReader.xml(Dataset[String])` was sending `PARSE_FORMAT_UNSPECIFIED` to the server,
causing it to fail. This adds proper XML support to the Connect Parse protocol.
### Does this PR introduce _any_ user-facing change?
Yes. `spark.read.xml(dataset)` now works correctly in Spark Connect (previously it threw an error).
### How was this patch tested?
- Added `ClientE2ETestSuite` tests: `xml from Dataset[String] inferSchema`,
`xml from Dataset[String] with schema`, `xml from Dataset[String] with invalid schema`
- Added `PlanGenerationTestSuite` test: `xml from dataset`
- Added query plan golden files: `xml_from_dataset.json` / `xml_from_dataset.proto.bin`
### Was this patch authored or co-authored using generative AI tooling?
Generated-by: Claude Sonnet 4.6
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
Re: [PR] [SPARK-56388][CONNECT] Add XML support to Spark Connect Parse protocol [spark]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] closed pull request #55262: [SPARK-56388][CONNECT] Add XML support to Spark Connect Parse protocol
URL: https://github.com/apache/spark/pull/55262
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
Re: [PR] [SPARK-56388][CONNECT] Add XML support to Spark Connect Parse protocol [spark]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #55262:
URL: https://github.com/apache/spark/pull/55262#issuecomment-5053096452
We're closing this PR because it hasn't been updated in a while. This isn't a judgement on the merit of the PR in any way. It's just a way of keeping the PR queue manageable.
If you'd like to revive this PR, please reopen it and ask a committer to remove the Stale tag!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org