forked from GoogleCloudDataproc/spark-bigquery-connector
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding Spark 3.2 Connector (GoogleCloudDataproc#860)
- Loading branch information
1 parent
1b94b15
commit 86e3c67
Showing
22 changed files
with
363 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
...le/cloud/spark/bigquery/acceptance/Spark32BigNumericDataprocServerlessAcceptanceTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
/* | ||
* Copyright 2023 Google LLC | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* https://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
package com.google.cloud.spark.bigquery.acceptance; | ||
|
||
public class Spark32BigNumericDataprocServerlessAcceptanceTest | ||
extends BigNumericDataprocServerlessAcceptanceTestBase { | ||
|
||
public Spark32BigNumericDataprocServerlessAcceptanceTest() { | ||
super("spark-3.2-bigquery", "1.0"); | ||
} | ||
|
||
// tests from superclass | ||
|
||
} |
41 changes: 41 additions & 0 deletions
41
...java/com/google/cloud/spark/bigquery/acceptance/Spark32DataprocImage21AcceptanceTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
/* | ||
* Copyright 2023 Google LLC | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* https://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
package com.google.cloud.spark.bigquery.acceptance; | ||
|
||
import java.util.Collections; | ||
import org.junit.AfterClass; | ||
import org.junit.BeforeClass; | ||
|
||
public class Spark32DataprocImage21AcceptanceTest extends DataprocAcceptanceTestBase { | ||
|
||
private static AcceptanceTestContext context; | ||
|
||
public Spark32DataprocImage21AcceptanceTest() { | ||
super(context, false); | ||
} | ||
|
||
@BeforeClass | ||
public static void setup() throws Exception { | ||
context = | ||
DataprocAcceptanceTestBase.setup( | ||
"2.1-debian11", "spark-3.2-bigquery", Collections.emptyList()); | ||
} | ||
|
||
@AfterClass | ||
public static void tearDown() throws Exception { | ||
DataprocAcceptanceTestBase.tearDown(context); | ||
} | ||
} |
41 changes: 41 additions & 0 deletions
41
...cloud/spark/bigquery/acceptance/Spark32DataprocImage21DisableConscryptAcceptanceTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
/* | ||
* Copyright 2023 Google LLC | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* https://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
package com.google.cloud.spark.bigquery.acceptance; | ||
|
||
import org.junit.AfterClass; | ||
import org.junit.BeforeClass; | ||
|
||
public class Spark32DataprocImage21DisableConscryptAcceptanceTest | ||
extends DataprocAcceptanceTestBase { | ||
|
||
private static AcceptanceTestContext context; | ||
|
||
public Spark32DataprocImage21DisableConscryptAcceptanceTest() { | ||
super(context, false); | ||
} | ||
|
||
@BeforeClass | ||
public static void setup() throws Exception { | ||
context = | ||
DataprocAcceptanceTestBase.setup( | ||
"2.1-debian11", "spark-3.2-bigquery", DISABLE_CONSCRYPT_LIST); | ||
} | ||
|
||
@AfterClass | ||
public static void tearDown() throws Exception { | ||
DataprocAcceptanceTestBase.tearDown(context); | ||
} | ||
} |
27 changes: 27 additions & 0 deletions
27
...oud/spark/bigquery/acceptance/Spark32ReadSheakspeareDataprocServerlessAcceptanceTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
/* | ||
* Copyright 2023 Google LLC | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* https://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
package com.google.cloud.spark.bigquery.acceptance; | ||
|
||
public class Spark32ReadSheakspeareDataprocServerlessAcceptanceTest | ||
extends ReadSheakspeareDataprocServerlessAcceptanceTestBase { | ||
|
||
public Spark32ReadSheakspeareDataprocServerlessAcceptanceTest() { | ||
super("spark-3.2-bigquery", "1.0"); | ||
} | ||
|
||
// tests from superclass | ||
|
||
} |
30 changes: 30 additions & 0 deletions
30
...e/cloud/spark/bigquery/acceptance/Spark32WriteStreamDataprocServerlessAcceptanceTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
/* | ||
* Copyright 2023 Google LLC | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* https://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
package com.google.cloud.spark.bigquery.acceptance; | ||
|
||
import org.junit.Ignore; | ||
|
||
@Ignore // spark-3.2-bigquery does not support streaming yet | ||
public class Spark32WriteStreamDataprocServerlessAcceptanceTest | ||
extends WriteStreamDataprocServerlessAcceptanceTestBase { | ||
|
||
public Spark32WriteStreamDataprocServerlessAcceptanceTest() { | ||
super("spark-3.2-bigquery", "1.0"); | ||
} | ||
|
||
// tests from superclass | ||
|
||
} |
27 changes: 27 additions & 0 deletions
27
...t/java/com/google/cloud/spark/bigquery/integration/Spark32DirectWriteIntegrationTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
/* | ||
* Copyright 2018 Google Inc. All Rights Reserved. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
package com.google.cloud.spark.bigquery.integration; | ||
|
||
import com.google.cloud.spark.bigquery.SparkBigQueryConfig; | ||
|
||
public class Spark32DirectWriteIntegrationTest extends WriteIntegrationTestBase { | ||
|
||
public Spark32DirectWriteIntegrationTest() { | ||
super(SparkBigQueryConfig.WriteMethod.DIRECT); | ||
} | ||
|
||
// tests from superclass | ||
} |
35 changes: 35 additions & 0 deletions
35
...java/com/google/cloud/spark/bigquery/integration/Spark32IndirectWriteIntegrationTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
/* | ||
* Copyright 2018 Google Inc. All Rights Reserved. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
package com.google.cloud.spark.bigquery.integration; | ||
|
||
import com.google.cloud.spark.bigquery.SparkBigQueryConfig; | ||
import org.junit.Before; | ||
|
||
public class Spark32IndirectWriteIntegrationTest extends WriteIntegrationTestBase { | ||
|
||
public Spark32IndirectWriteIntegrationTest() { | ||
super(SparkBigQueryConfig.WriteMethod.INDIRECT); | ||
} | ||
|
||
@Before | ||
public void setParquetLoadBehaviour() { | ||
// TODO: make this the default value | ||
spark.conf().set("enableListInference", "true"); | ||
} | ||
|
||
// tests from superclass | ||
|
||
} |
27 changes: 27 additions & 0 deletions
27
...java/com/google/cloud/spark/bigquery/integration/Spark32QueryPushdownIntegrationTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
/* | ||
* Copyright 2023 Google LLC | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* https://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
package com.google.cloud.spark.bigquery.integration; | ||
|
||
import com.google.cloud.spark.bigquery.BigQueryConnectorUtils; | ||
import org.junit.Before; | ||
|
||
public class Spark32QueryPushdownIntegrationTest extends QueryPushdownIntegrationTestBase { | ||
|
||
@Before | ||
public void before() { | ||
BigQueryConnectorUtils.enablePushdownSession(spark); | ||
} | ||
} |
Oops, something went wrong.