From 1835898d340fa6446dbd9012e550e53c64c56676 Mon Sep 17 00:00:00 2001 From: elena Date: Thu, 5 Jan 2023 17:04:55 +0800 Subject: [PATCH] support spark verison 3.3 --- internal/services/synapse/synapse_spark_pool_resource.go | 1 + .../services/synapse/synapse_spark_pool_resource_test.go | 8 ++++++++ website/docs/r/synapse_spark_pool.html.markdown | 2 +- 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/internal/services/synapse/synapse_spark_pool_resource.go b/internal/services/synapse/synapse_spark_pool_resource.go index f31c7e94a723..d539062dcf2e 100644 --- a/internal/services/synapse/synapse_spark_pool_resource.go +++ b/internal/services/synapse/synapse_spark_pool_resource.go @@ -213,6 +213,7 @@ func resourceSynapseSparkPool() *pluginsdk.Resource { "2.4", "3.1", "3.2", + "3.3", }, false), }, diff --git a/internal/services/synapse/synapse_spark_pool_resource_test.go b/internal/services/synapse/synapse_spark_pool_resource_test.go index 734f34a56c6b..6008823cdcd5 100644 --- a/internal/services/synapse/synapse_spark_pool_resource_test.go +++ b/internal/services/synapse/synapse_spark_pool_resource_test.go @@ -120,6 +120,14 @@ func TestAccSynapseSparkPool_sparkVersion(t *testing.T) { }, // not returned by service data.ImportStep("spark_events_folder", "spark_log_folder"), + { + Config: r.sparkVersion(data, "3.3"), + Check: acceptance.ComposeTestCheckFunc( + check.That(data.ResourceName).ExistsInAzure(r), + ), + }, + // not returned by service + data.ImportStep("spark_events_folder", "spark_log_folder"), }) } diff --git a/website/docs/r/synapse_spark_pool.html.markdown b/website/docs/r/synapse_spark_pool.html.markdown index 24689ac1023b..dbafbc5eeb95 100644 --- a/website/docs/r/synapse_spark_pool.html.markdown +++ b/website/docs/r/synapse_spark_pool.html.markdown @@ -123,7 +123,7 @@ The following arguments are supported: * `spark_events_folder` - (Optional) The Spark events folder. Defaults to `/events`. -* `spark_version` - (Optional) The Apache Spark version. Possible values are `2.4` and `3.1` and `3.2`. Defaults to `2.4`. +* `spark_version` - (Optional) The Apache Spark version. Possible values are `2.4` , `3.1` , `3.2` and `3.3`. Defaults to `2.4`. * `tags` - (Optional) A mapping of tags which should be assigned to the Synapse Spark Pool.