-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add spark-3.4.3 and 3.5.1 support (#582)
* Add spark-3.4.3 support and migrate to scala 2.13 - updates of pom files - fixes in tests - migration to 2.13 - datasources-34 On branch spark-34-35 Changes to be committed: modified: .github/workflows/spark.yaml modified: .gitignore modified: maven-projects/spark/datasources-32/pom.xml modified: maven-projects/spark/datasources-33/pom.xml new file: maven-projects/spark/datasources-34/.scalafmt.conf new file: maven-projects/spark/datasources-34/pom.xml new file: maven-projects/spark/datasources-34/src/main/java/org/apache/graphar/GeneralParams.java new file: maven-projects/spark/datasources-34/src/main/scala/org/apache/graphar/datasources/GarDataSource.scala new file: maven-projects/spark/datasources-34/src/main/scala/org/apache/spark/sql/graphar/GarCommitProtocol.scala new file: maven-projects/spark/datasources-34/src/main/scala/org/apache/spark/sql/graphar/GarScan.scala new file: maven-projects/spark/datasources-34/src/main/scala/org/apache/spark/sql/graphar/GarScanBuilder.scala new file: maven-projects/spark/datasources-34/src/main/scala/org/apache/spark/sql/graphar/GarTable.scala new file: maven-projects/spark/datasources-34/src/main/scala/org/apache/spark/sql/graphar/GarWriteBuilder.scala new file: maven-projects/spark/datasources-34/src/main/scala/org/apache/spark/sql/graphar/csv/CSVWriteBuilder.scala new file: maven-projects/spark/datasources-34/src/main/scala/org/apache/spark/sql/graphar/json/JSONWriteBuilder.scala new file: maven-projects/spark/datasources-34/src/main/scala/org/apache/spark/sql/graphar/orc/OrcOutputWriter.scala new file: maven-projects/spark/datasources-34/src/main/scala/org/apache/spark/sql/graphar/orc/OrcWriteBuilder.scala new file: maven-projects/spark/datasources-34/src/main/scala/org/apache/spark/sql/graphar/parquet/ParquetWriteBuilder.scala modified: maven-projects/spark/graphar/pom.xml modified: maven-projects/spark/graphar/src/main/scala/org/apache/graphar/graph/GraphReader.scala modified: maven-projects/spark/graphar/src/main/scala/org/apache/graphar/writer/EdgeWriter.scala modified: maven-projects/spark/graphar/src/main/scala/org/apache/graphar/writer/VertexWriter.scala modified: maven-projects/spark/graphar/src/test/scala/org/apache/graphar/TestReader.scala modified: maven-projects/spark/pom.xml * Apply spotless and fix licenserc On branch spark-34-35 Changes to be committed: modified: licenserc.toml modified: maven-projects/spark/datasources-33/src/main/scala/org/apache/spark/sql/graphar/GarScan.scala modified: maven-projects/spark/datasources-33/src/main/scala/org/apache/spark/sql/graphar/GarScanBuilder.scala modified: maven-projects/spark/datasources-33/src/main/scala/org/apache/spark/sql/graphar/GarTable.scala modified: maven-projects/spark/datasources-34/src/main/scala/org/apache/spark/sql/graphar/GarScan.scala modified: maven-projects/spark/datasources-34/src/main/scala/org/apache/spark/sql/graphar/GarScanBuilder.scala modified: maven-projects/spark/datasources-34/src/main/scala/org/apache/spark/sql/graphar/GarTable.scala modified: maven-projects/spark/graphar/src/main/scala/org/apache/graphar/graph/GraphReader.scala modified: maven-projects/spark/graphar/src/main/scala/org/apache/graphar/writer/EdgeWriter.scala * Fix a weak place in GAR On branch spark-34-35 Changes to be committed: modified: maven-projects/spark/graphar/src/main/scala/org/apache/graphar/graph/GraphWriter.scala * Fix scala versions mismatch On branch spark-34-35 Changes to be committed: modified: .github/workflows/spark.yaml * Revert migration to 2.13 + slightly update poms structure On branch spark-34-35 Changes to be committed: modified: .github/workflows/spark.yaml modified: maven-projects/spark/datasources-32/pom.xml modified: maven-projects/spark/datasources-33/pom.xml modified: maven-projects/spark/datasources-34/pom.xml modified: maven-projects/spark/graphar/pom.xml modified: maven-projects/spark/graphar/src/main/scala/org/apache/graphar/writer/EdgeWriter.scala modified: maven-projects/spark/pom.xml * Update PySpark build - skipt nebula example because nebula does not support spark 3.4.3 On branch spark-34-35 Changes to be committed: modified: .github/workflows/spark.yaml modified: pyspark/Makefile modified: pyspark/poetry.lock modified: pyspark/pyproject.toml * Try to fix if in CI On branch spark-34-35 Changes to be committed: modified: .github/workflows/spark.yaml * Try to fix CI * Fix PySpark CI * Fix hadoop download link for spark 3.2 * Datasources-35 - Jackson databind - PySpark to 3.5 On branch spark-34-35 Changes to be committed: new file: maven-projects/spark/datasources-35/.scalafmt.conf new file: maven-projects/spark/datasources-35/pom.xml new file: maven-projects/spark/datasources-35/src/main/java/org/apache/graphar/GeneralParams.java new file: maven-projects/spark/datasources-35/src/main/scala/org/apache/graphar/datasources/GarDataSource.scala new file: maven-projects/spark/datasources-35/src/main/scala/org/apache/spark/sql/graphar/GarCommitProtocol.scala new file: maven-projects/spark/datasources-35/src/main/scala/org/apache/spark/sql/graphar/GarScan.scala new file: maven-projects/spark/datasources-35/src/main/scala/org/apache/spark/sql/graphar/GarScanBuilder.scala new file: maven-projects/spark/datasources-35/src/main/scala/org/apache/spark/sql/graphar/GarTable.scala new file: maven-projects/spark/datasources-35/src/main/scala/org/apache/spark/sql/graphar/GarWriteBuilder.scala new file: maven-projects/spark/datasources-35/src/main/scala/org/apache/spark/sql/graphar/csv/CSVWriteBuilder.scala new file: maven-projects/spark/datasources-35/src/main/scala/org/apache/spark/sql/graphar/json/JSONWriteBuilder.scala new file: maven-projects/spark/datasources-35/src/main/scala/org/apache/spark/sql/graphar/orc/OrcOutputWriter.scala new file: maven-projects/spark/datasources-35/src/main/scala/org/apache/spark/sql/graphar/orc/OrcWriteBuilder.scala new file: maven-projects/spark/datasources-35/src/main/scala/org/apache/spark/sql/graphar/parquet/ParquetWriteBuilder.scala modified: maven-projects/spark/pom.xml modified: pyspark/Makefile modified: pyspark/pyproject.toml * Fix licenserc && update python deps On branch spark-34-35 Changes to be committed: modified: licenserc.toml modified: pyspark/poetry.lock * Update Spark CI On branch spark-34-35 Changes to be committed: modified: .github/workflows/spark.yaml
- Loading branch information
1 parent
083f0d5
commit d460f3d
Showing
47 changed files
with
3,789 additions
and
235 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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../.scalafmt.conf |
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,193 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
Licensed to the Apache Software Foundation (ASF) under one | ||
or more contributor license agreements. See the NOTICE file | ||
distributed with this work for additional information | ||
regarding copyright ownership. The ASF licenses this file | ||
to you 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. | ||
--> | ||
|
||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||
<modelVersion>4.0.0</modelVersion> | ||
|
||
<parent> | ||
<groupId>org.apache.graphar</groupId> | ||
<artifactId>spark</artifactId> | ||
<version>${graphar.version}</version> | ||
<relativePath>../pom.xml</relativePath> | ||
</parent> | ||
|
||
<artifactId>graphar-datasources</artifactId> | ||
<version>${graphar.version}</version> | ||
<packaging>jar</packaging> | ||
|
||
<dependencies> | ||
<dependency> | ||
<groupId>org.apache.spark</groupId> | ||
<artifactId>spark-core_${scala.binary.version}</artifactId> | ||
<version>${spark.version}</version> | ||
<scope>provided</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.apache.spark</groupId> | ||
<artifactId>spark-streaming_${scala.binary.version}</artifactId> | ||
<version>${spark.version}</version> | ||
<scope>provided</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.apache.spark</groupId> | ||
<artifactId>spark-mllib_${scala.binary.version}</artifactId> | ||
<version>${spark.version}</version> | ||
<scope>provided</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.apache.spark</groupId> | ||
<artifactId>spark-sql_${scala.binary.version}</artifactId> | ||
<version>${spark.version}</version> | ||
<scope>provided</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.apache.spark</groupId> | ||
<artifactId>spark-hive_${scala.binary.version}</artifactId> | ||
<version>${spark.version}</version> | ||
<scope>provided</scope> | ||
</dependency> | ||
</dependencies> | ||
|
||
<build> | ||
<plugins> | ||
<plugin> | ||
<groupId>org.scala-tools</groupId> | ||
<artifactId>maven-scala-plugin</artifactId> | ||
<version>2.15.2</version> | ||
<configuration> | ||
<scalaVersion>${scala.version}</scalaVersion> | ||
<args> | ||
<arg>-target:jvm-${maven.compiler.target}</arg> | ||
</args> | ||
<jvmArgs> | ||
<jvmArg>-Xss4096K</jvmArg> | ||
</jvmArgs> | ||
</configuration> | ||
<executions> | ||
<execution> | ||
<id>scala-compile</id> | ||
<goals> | ||
<goal>compile</goal> | ||
</goals> | ||
<configuration> | ||
<excludes> | ||
<exclude>META-INF/*.SF</exclude> | ||
<exclude>META-INF/*.DSA</exclude> | ||
<exclude>META-INF/*.RSA</exclude> | ||
</excludes> | ||
</configuration> | ||
</execution> | ||
<execution> | ||
<id>scala-test-compile</id> | ||
<goals> | ||
<goal>testCompile</goal> | ||
</goals> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
<plugin> | ||
<groupId>net.alchim31.maven</groupId> | ||
<artifactId>scala-maven-plugin</artifactId> | ||
<version>4.8.0</version> | ||
<executions> | ||
<execution> | ||
<goals> | ||
<goal>compile</goal> | ||
<goal>testCompile</goal> | ||
</goals> | ||
</execution> | ||
</executions> | ||
<configuration> | ||
<jvmArgs> | ||
<jvmArg>-Xms64m</jvmArg> | ||
<jvmArg>-Xmx1024m</jvmArg> | ||
</jvmArgs> | ||
<args> | ||
<arg>-Ywarn-unused</arg> | ||
</args> | ||
<compilerPlugins> | ||
<compilerPlugin> | ||
<groupId>org.scalameta</groupId> | ||
<artifactId>semanticdb-scalac_${scala.version}</artifactId> | ||
<version>${semanticdb-scalac.version}</version> | ||
</compilerPlugin> | ||
</compilerPlugins> | ||
</configuration> | ||
</plugin> | ||
<plugin> | ||
<groupId>com.diffplug.spotless</groupId> | ||
<artifactId>spotless-maven-plugin</artifactId> | ||
<version>2.20.0</version> | ||
<configuration> | ||
<!-- define a language-specific format --> | ||
<java> | ||
<!-- no need to specify files, inferred automatically, but you can if you want --> | ||
<!-- apply a specific flavor of google-java-format and reflow long strings --> | ||
<googleJavaFormat> | ||
<version>1.13.0</version> | ||
<style>AOSP</style> | ||
</googleJavaFormat> | ||
</java> | ||
<scala> | ||
<scalafmt> | ||
<file>${project.basedir}/.scalafmt.conf</file> <!-- optional --> | ||
</scalafmt> | ||
</scala> | ||
</configuration> | ||
</plugin> | ||
<plugin> | ||
<groupId>io.github.evis</groupId> | ||
<artifactId>scalafix-maven-plugin_2.13</artifactId> | ||
<version>0.1.8_0.11.0</version> | ||
</plugin> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-source-plugin</artifactId> | ||
<executions> | ||
<execution> | ||
<id>attach-sources</id> | ||
<goals> | ||
<goal>jar</goal> | ||
</goals> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-javadoc-plugin</artifactId> | ||
<executions> | ||
<execution> | ||
<id>attach-javadocs</id> | ||
<goals> | ||
<goal>jar</goal> | ||
</goals> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
<plugin> | ||
<artifactId>maven-site-plugin</artifactId> | ||
<version>3.7.1</version> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
</project> |
1 change: 1 addition & 0 deletions
1
maven-projects/spark/datasources-34/src/main/java/org/apache/graphar/GeneralParams.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 @@ | ||
../../../../../../../graphar/src/main/java/org/apache/graphar/GeneralParams.java |
Oops, something went wrong.