forked from apache/gravitino
-
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.
[apache#2541] feat(spark-connector): support basic DDL and DML operat…
…ions to iceberg catalog (apache#2544) ### What changes were proposed in this pull request? 1. support DDL operations to iceberg catalog. 2. support read and write operations to iceberg Table. ### Why are the changes needed? support basic DDL and DML operations for iceberg table using sparksql. Fix: apache#2541 ### Does this PR introduce _any_ user-facing change? Yes, users can use sparksql to do iceberg table ddl and read&write operations. ### How was this patch tested? New Iceberg ITs.
- Loading branch information
Showing
12 changed files
with
368 additions
and
26 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
34 changes: 34 additions & 0 deletions
34
...t/java/com/datastrato/gravitino/integration/test/spark/iceberg/SparkIcebergCatalogIT.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,34 @@ | ||
/* | ||
* Copyright 2024 Datastrato Pvt Ltd. | ||
* This software is licensed under the Apache License version 2. | ||
*/ | ||
package com.datastrato.gravitino.integration.test.spark.iceberg; | ||
|
||
import com.datastrato.gravitino.integration.test.spark.SparkCommonIT; | ||
import org.junit.jupiter.api.Tag; | ||
import org.junit.jupiter.api.TestInstance; | ||
|
||
@Tag("gravitino-docker-it") | ||
@TestInstance(TestInstance.Lifecycle.PER_CLASS) | ||
public class SparkIcebergCatalogIT extends SparkCommonIT { | ||
|
||
@Override | ||
protected String getCatalogName() { | ||
return "iceberg"; | ||
} | ||
|
||
@Override | ||
protected String getProvider() { | ||
return "lakehouse-iceberg"; | ||
} | ||
|
||
@Override | ||
protected boolean supportsSparkSQLClusteredBy() { | ||
return false; | ||
} | ||
|
||
@Override | ||
protected boolean supportsPartition() { | ||
return false; | ||
} | ||
} |
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
Oops, something went wrong.