Skip to content
This repository has been archived by the owner on Sep 18, 2023. It is now read-only.

[NSE-759] Add spark 3.1.2 & 3.1.3 as supported versions for 3.1.1 shim layer #760

Merged
merged 1 commit into from
Mar 10, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,13 @@ package com.intel.oap.sql.shims.spark311
import com.intel.oap.sql.shims.{SparkShims, SparkShimDescriptor}

object SparkShimProvider {
val DESCRIPTOR = SparkShimDescriptor(3, 1, 1)
val DESCRIPTOR_STRINGS = Seq(s"$DESCRIPTOR")
// The shim layer for spark 3.1.1 is also workable for 3.1.2 & 3.1.3.
val SPARK311_DESCRIPTOR = SparkShimDescriptor(3, 1, 1)
val SPARK312_DESCRIPTOR = SparkShimDescriptor(3, 1, 2)
val SPARK313_DESCRIPTOR = SparkShimDescriptor(3, 1, 3)
val DESCRIPTOR_STRINGS =
Seq(s"$SPARK311_DESCRIPTOR", s"$SPARK312_DESCRIPTOR", s"$SPARK313_DESCRIPTOR")
val DESCRIPTOR = SPARK311_DESCRIPTOR
}

class SparkShimProvider extends com.intel.oap.sql.shims.SparkShimProvider {
Expand Down