This is an automated email from the ASF dual-hosted git repository.
maxgekk pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/spark.git
The following commit(s) were added to refs/heads/master by this push:
new 325fb95ab50d [SPARK-51662][SQL] Make OrcFileFormat comparable
325fb95ab50d is described below
commit 325fb95ab50df09bdda286e51b1079f85d97e080
Author: Vladimir Golubev <[email protected]>
AuthorDate: Sun Mar 30 09:21:08 2025 +0300
[SPARK-51662][SQL] Make OrcFileFormat comparable
### What changes were proposed in this pull request?
Make OrcFileFormat comparable.
### Why are the changes needed?
This is important to correctly compare fixed-point/single-pass Analyzer
logical plans with `HadoopFsRelation`s.
### 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.
Closes #50454 from
vladimirg-db/vladimir-golubev_data/make-orc-file-format-comparable.
Authored-by: Vladimir Golubev <[email protected]>
Signed-off-by: Max Gekk <[email protected]>
---
.../src/main/scala/org/apache/spark/sql/hive/orc/OrcFileFormat.scala | 4 ++++
1 file changed, 4 insertions(+)
diff --git
a/sql/hive/src/main/scala/org/apache/spark/sql/hive/orc/OrcFileFormat.scala
b/sql/hive/src/main/scala/org/apache/spark/sql/hive/orc/OrcFileFormat.scala
index 7c41a3db9453..f3ce637439a1 100644
--- a/sql/hive/src/main/scala/org/apache/spark/sql/hive/orc/OrcFileFormat.scala
+++ b/sql/hive/src/main/scala/org/apache/spark/sql/hive/orc/OrcFileFormat.scala
@@ -61,6 +61,10 @@ class OrcFileFormat extends FileFormat with
DataSourceRegister with Serializable
override def toString: String = "ORC"
+ override def hashCode(): Int = getClass.hashCode()
+
+ override def equals(other: Any): Boolean = other.isInstanceOf[OrcFileFormat]
+
override def inferSchema(
sparkSession: SparkSession,
options: Map[String, String],
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]