YannByron commented on a change in pull request #4270:
URL: https://github.com/apache/hudi/pull/4270#discussion_r768671752
##########
File path:
hudi-client/hudi-spark-client/src/main/scala/org/apache/hudi/HoodieSparkUtils.scala
##########
@@ -47,8 +47,14 @@ import scala.collection.JavaConverters.asScalaBufferConverter
object HoodieSparkUtils extends SparkAdapterSupport {
+ def isSpark2: Boolean = SPARK_VERSION.startsWith("2.")
+
def isSpark3: Boolean = SPARK_VERSION.startsWith("3.")
+ def isSpark3_0: Boolean = SPARK_VERSION.startsWith("3.0")
+
+ def isSpark3_2: Boolean = SPARK_VERSION.startsWith("3.2")
Review comment:
Here is used as the basis of how to reflect to the right method for
different spark versions.
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]