[ 
https://issues.apache.org/jira/browse/SPARK-46376?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Yang Jie updated SPARK-46376:
-----------------------------
    Summary: Simplify the code to generate the Spark tarball `filename` in the 
`HiveExternalCatalogVersionsSuite`.  (was: Simplify the way to generate the 
Spark tarball `filename` in the `HiveExternalCatalogVersionsSuite`.)

> Simplify the code to generate the Spark tarball `filename` in the 
> `HiveExternalCatalogVersionsSuite`.
> -----------------------------------------------------------------------------------------------------
>
>                 Key: SPARK-46376
>                 URL: https://issues.apache.org/jira/browse/SPARK-46376
>             Project: Spark
>          Issue Type: Improvement
>          Components: SQL, Tests
>    Affects Versions: 4.0.0
>            Reporter: Yang Jie
>            Priority: Minor
>              Labels: pull-request-available
>
> {code:java}
> val filename = VersionUtils.majorMinorPatchVersion(version) match {
>   case Some((major, _, _)) if major > 3 => s"spark-$version-bin-hadoop3.tgz"
>   case Some((3, minor, _)) if minor >= 3 => s"spark-$version-bin-hadoop3.tgz"
>   case Some((3, minor, _)) if minor < 3 => s"spark-$version-bin-hadoop3.2.tgz"
>   case Some((_, _, _)) => s"spark-$version-bin-hadoop2.7.tgz"
>   case None => s"spark-$version-bin-hadoop2.7.tgz"
> } {code}
> Currently, the minimum tested version is Spark 3.3, so there is no need for 
> complex case matching anymore.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org

Reply via email to