You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by "mihailoale-db (via GitHub)" <gi...@apache.org> on 2025/12/01 09:38:25 UTC
[PR] [SPARK-54557] [SQL] Make `XmlOptions` and `XmlInferSchema` comparable [spark]
mihailoale-db opened a new pull request, #53268:
URL: https://github.com/apache/spark/pull/53268
### What changes were proposed in this pull request?
In this PR I propose to make `XmlOptions` and `XmlInferSchema` comparable.
### Why are the changes needed?
In order to be able to compare them while working on the single-pass implementation (dual-runs).
### Does this PR introduce _any_ user-facing change?
No.
### How was this patch tested?
Existing tests.
### Was this patch authored or co-authored using generative AI tooling?
No.
--
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-54557] [SQL] Make `XmlOptions` and `XmlInferSchema` comparable [spark]
Posted by "mihailoale-db (via GitHub)" <gi...@apache.org>.
mihailoale-db commented on PR #53268:
URL: https://github.com/apache/spark/pull/53268#issuecomment-3599589526
Makes sense. Added `CSVOptions`, `CSVInferSchema`, `JsonInferSchema` and `JSONOptions`.
--
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-54557] [SQL] Make `XmlOptions` and `XmlInferSchema` comparable [spark]
Posted by "mihailoale-db (via GitHub)" <gi...@apache.org>.
mihailoale-db commented on PR #53268:
URL: https://github.com/apache/spark/pull/53268#issuecomment-3596539682
@dtenedor @cloud-fan PTAL when you find time. Thanks!
--
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-54557] [SQL] Make `XmlOptions` and `XmlInferSchema` comparable [spark]
Posted by "cloud-fan (via GitHub)" <gi...@apache.org>.
cloud-fan commented on PR #53268:
URL: https://github.com/apache/spark/pull/53268#issuecomment-3598217525
shall we fix all of them like JSONOptions?
--
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-54557] [SQL] Make `XmlOptions` and `XmlInferSchema` comparable [spark]
Posted by "HyukjinKwon (via GitHub)" <gi...@apache.org>.
HyukjinKwon commented on PR #53268:
URL: https://github.com/apache/spark/pull/53268#issuecomment-3599522071
OK I am fine with implementing it like this. Let's at least do the same for others though? things like JsonOptions
--
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-54557] [SQL] Make `XmlOptions` and `XmlInferSchema` comparable [spark]
Posted by "mihailoale-db (via GitHub)" <gi...@apache.org>.
mihailoale-db commented on PR #53268:
URL: https://github.com/apache/spark/pull/53268#issuecomment-3599502480
we did the same (overriding `equals` and `hashCode`) here https://github.com/apache/spark/pull/50454 and here https://github.com/apache/spark/pull/50212 so it felt straightforward to just follow those examples. I wonder if making them case classes could somehow backfire? Is it the best practice? If not, I would keep it as it is if you agree. cc @HyukjinKwon @cloud-fan
--
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-54557] [SQL] Make `XmlOptions` and `XmlInferSchema` comparable [spark]
Posted by "HyukjinKwon (via GitHub)" <gi...@apache.org>.
HyukjinKwon commented on PR #53268:
URL: https://github.com/apache/spark/pull/53268#issuecomment-3599431668
I wonder if we should just make them case classes
--
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