Skip to content

Commit

Permalink
[update]
Browse files Browse the repository at this point in the history
  • Loading branch information
YannByron committed Nov 24, 2024
1 parent ab78b31 commit a32b7e0
Show file tree
Hide file tree
Showing 13 changed files with 10 additions and 134 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/utitcase.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ jobs:
jvm_timezone=$(random_timezone)
echo "JVM timezone is set to $jvm_timezone"
test_modules="!paimon-e2e-tests,"
for suffix in 3.5 3.4 3.3 3.2 common_2.12; do
for suffix in 3.5 3.4 3.3 3.2 ut; do
test_modules+="!org.apache.paimon:paimon-spark-${suffix},"
done
test_modules="${test_modules%,}"
Expand Down
9 changes: 1 addition & 8 deletions paimon-spark/paimon-spark-3.2/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -67,13 +67,6 @@ under the License.

<!-- test -->

<dependency>
<groupId>org.apache.paimon</groupId>
<artifactId>paimon-spark3-common</artifactId>
<version>${project.version}</version>
<scope>test</scope>
</dependency>

<dependency>
<groupId>org.apache.paimon</groupId>
<artifactId>paimon-spark-ut</artifactId>
Expand Down Expand Up @@ -139,7 +132,7 @@ under the License.
</filters>
<artifactSet>
<includes combine.children="append">
<include>org.apache.paimon:paimon-spark-common_${scala.binary.version}</include>
<include>org.apache.paimon:paimon-spark3-common</include>
</includes>
</artifactSet>
</configuration>
Expand Down

This file was deleted.

9 changes: 1 addition & 8 deletions paimon-spark/paimon-spark-3.3/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -67,13 +67,6 @@ under the License.

<!-- test -->

<dependency>
<groupId>org.apache.paimon</groupId>
<artifactId>paimon-spark3-common</artifactId>
<version>${project.version}</version>
<scope>test</scope>
</dependency>

<dependency>
<groupId>org.apache.paimon</groupId>
<artifactId>paimon-spark-ut</artifactId>
Expand Down Expand Up @@ -139,7 +132,7 @@ under the License.
</filters>
<artifactSet>
<includes combine.children="append">
<include>org.apache.paimon:paimon-spark-common_${scala.binary.version}</include>
<include>org.apache.paimon:paimon-spark3-common</include>
</includes>
</artifactSet>
</configuration>
Expand Down

This file was deleted.

7 changes: 0 additions & 7 deletions paimon-spark/paimon-spark-3.4/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -67,13 +67,6 @@ under the License.

<!-- test -->

<dependency>
<groupId>org.apache.paimon</groupId>
<artifactId>paimon-spark3-common</artifactId>
<version>${project.version}</version>
<scope>test</scope>
</dependency>

<dependency>
<groupId>org.apache.paimon</groupId>
<artifactId>paimon-spark-ut</artifactId>
Expand Down

This file was deleted.

9 changes: 1 addition & 8 deletions paimon-spark/paimon-spark-3.5/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -67,13 +67,6 @@ under the License.

<!-- test -->

<dependency>
<groupId>org.apache.paimon</groupId>
<artifactId>paimon-spark3-common</artifactId>
<version>${project.version}</version>
<scope>test</scope>
</dependency>

<dependency>
<groupId>org.apache.paimon</groupId>
<artifactId>paimon-spark-ut</artifactId>
Expand Down Expand Up @@ -139,7 +132,7 @@ under the License.
</filters>
<artifactSet>
<includes combine.children="append">
<include>org.apache.paimon:paimon-spark-common_${scala.binary.version}</include>
<include>org.apache.paimon:paimon-spark3-common</include>
</includes>
</artifactSet>
</configuration>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,9 @@ abstract class PaimonOptimizationTestBase extends PaimonSparkTestBase {
val relation = Utils.createDataset(spark, createRelationV2("T"))
val mergedSubquery = relation
.select(
Utils.toColumn(count(Literal(1)).as("cnt")),
Utils.toColumn(sum(Utils.toExpression(spark, col("a")).as("sum_a"))),
Utils.toColumn(avg(Utils.toExpression(spark, col("b")).as("avg_b")))
Utils.toColumn(count(Literal(1))).as("cnt"),
Utils.toColumn(sum(Utils.toExpression(spark, col("a")))).as("sum_a"),
Utils.toColumn(avg(Utils.toExpression(spark, col("b"))).as("avg_b"))
)
.select(
Utils.toColumn(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ import java.io.File
*/
object Utils {

def createTempDir: File = SparkUtils.createTempDir()
def createTempDir: File = SparkUtils.createTempDir(System.getProperty("java.io.tmpdir"), "spark")

def waitUntilEventEmpty(spark: SparkSession): Unit = {
spark.sparkContext.listenerBus.waitUntilEmpty()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
# See the License for the specific language governing permissions and
# limitations under the License.

org.apache.paimon.spark.shims.Spark3Shim
org.apache.spark.sql.paimon.shims.Spark3Shim
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -368,6 +368,7 @@ under the License.
<test.spark.version>3.3.0</test.spark.version>
</properties>
<activation>
<activeByDefault>true</activeByDefault>
<property>
<name>spark3</name>
</property>
Expand All @@ -391,7 +392,6 @@ under the License.
<test.spark.version>4.0.0-preview2</test.spark.version>
</properties>
<activation>
<activeByDefault>true</activeByDefault>
<property>
<name>spark4</name>
</property>
Expand Down

0 comments on commit a32b7e0

Please sign in to comment.