-
Notifications
You must be signed in to change notification settings - Fork 348
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[#2543] feat(spark-connector): support row-level operations to iceberg Table #3243
[#2543] feat(spark-connector): support row-level operations to iceberg Table #3243
Conversation
d66ff10
to
4d334aa
Compare
4d334aa
to
ae71559
Compare
Hi @FANNG1 could you help review this pr? thank you. |
...ector/src/main/java/com/datastrato/gravitino/spark/connector/utils/SparkBaseTableHelper.java
Outdated
Show resolved
Hide resolved
...rk-connector/src/main/java/com/datastrato/gravitino/spark/connector/utils/ConnectorUtil.java
Outdated
Show resolved
Hide resolved
...rk-connector/src/main/java/com/datastrato/gravitino/spark/connector/utils/ConnectorUtil.java
Outdated
Show resolved
Hide resolved
...rk-connector/src/main/java/com/datastrato/gravitino/spark/connector/catalog/BaseCatalog.java
Outdated
Show resolved
Hide resolved
...rk-connector/src/main/java/com/datastrato/gravitino/spark/connector/catalog/BaseCatalog.java
Outdated
Show resolved
Hide resolved
...-test/src/test/java/com/datastrato/gravitino/integration/test/util/spark/SparkTableInfo.java
Show resolved
Hide resolved
...ration-test/src/test/java/com/datastrato/gravitino/integration/test/spark/SparkCommonIT.java
Outdated
Show resolved
Hide resolved
...ion-test/src/test/java/com/datastrato/gravitino/integration/test/util/spark/SparkUtilIT.java
Outdated
Show resolved
Hide resolved
...test/java/com/datastrato/gravitino/integration/test/spark/iceberg/SparkIcebergCatalogIT.java
Outdated
Show resolved
Hide resolved
...test/java/com/datastrato/gravitino/integration/test/spark/iceberg/SparkIcebergCatalogIT.java
Outdated
Show resolved
Hide resolved
all comments have been addressed. cc @FANNG1 |
...test/java/com/datastrato/gravitino/integration/test/spark/iceberg/SparkIcebergCatalogIT.java
Outdated
Show resolved
Hide resolved
...rk-connector/src/main/java/com/datastrato/gravitino/spark/connector/hive/SparkHiveTable.java
Outdated
Show resolved
Hide resolved
...rk-connector/src/main/java/com/datastrato/gravitino/spark/connector/catalog/BaseCatalog.java
Outdated
Show resolved
Hide resolved
...-test/src/test/java/com/datastrato/gravitino/integration/test/util/spark/SparkTableInfo.java
Outdated
Show resolved
Hide resolved
all comments have been addressed except one in discussion. cc @FANNG1 |
...rk-connector/src/main/java/com/datastrato/gravitino/spark/connector/hive/SparkHiveTable.java
Outdated
Show resolved
Hide resolved
...nector/src/main/java/com/datastrato/gravitino/spark/connector/iceberg/SparkIcebergTable.java
Outdated
Show resolved
Hide resolved
...r/src/main/java/com/datastrato/gravitino/spark/connector/utils/GravitinoTableInfoHelper.java
Outdated
Show resolved
Hide resolved
...-test/src/test/java/com/datastrato/gravitino/integration/test/util/spark/SparkTableInfo.java
Outdated
Show resolved
Hide resolved
@jerryshao @qqqttt123 do you have time to review? Overall LGTM except minor comment. |
@FANNG1 all comments have been addressed. |
If this is a user-facing change, you should add the documents. |
…can00/gravitino into refactor-table-and-support-row-level
done. |
@FANNG1 could you help review again? |
@caican00 could you fix the conflict? |
@qqqttt123 do you have other comments? |
…table-and-support-row-level
…can00/gravitino into refactor-table-and-support-row-level
done |
Hi @FANNG1 @qqqttt123 are there any else comments to fix? |
LGTM,will merge the PR if no other comments this afternoon |
…g Table (#3243) ### What changes were proposed in this pull request? - refactor table implementation, make `SparkIcebergTable` extend Iceberg `SparkTable`, and `SparkHiveTable` extend Kyuubi `HiveTable`. - support row-level operations to iceberg Table ``` 1. update tableName set c1=v1, c2=v2, ... 2. merge into targetTable t using sourceTable s on s.key=t.key when matched then ... when not matched then ... 3. delete from table where xxx ``` ### Why are the changes needed? 1. For spark-connector in Iceberg, it explicitly uses `SparkTable` to identify whether it is an Iceberg table, so the `SparkIcebergTable` must extend `SparkTable`. 2. support row-level operations to iceberg Table. Fix: #2543 ### Does this PR introduce any user-facing change? Yes, support update ... , merge into ..., delete from ... ### How was this patch tested? New ITs.
@caican00 great process for supporting the Iceberg catalog, thanks for your work. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
…iceberg Table (apache#3243) ### What changes were proposed in this pull request? - refactor table implementation, make `SparkIcebergTable` extend Iceberg `SparkTable`, and `SparkHiveTable` extend Kyuubi `HiveTable`. - support row-level operations to iceberg Table ``` 1. update tableName set c1=v1, c2=v2, ... 2. merge into targetTable t using sourceTable s on s.key=t.key when matched then ... when not matched then ... 3. delete from table where xxx ``` ### Why are the changes needed? 1. For spark-connector in Iceberg, it explicitly uses `SparkTable` to identify whether it is an Iceberg table, so the `SparkIcebergTable` must extend `SparkTable`. 2. support row-level operations to iceberg Table. Fix: apache#2543 ### Does this PR introduce any user-facing change? Yes, support update ... , merge into ..., delete from ... ### How was this patch tested? New ITs.
…iceberg Table (apache#3243) ### What changes were proposed in this pull request? - refactor table implementation, make `SparkIcebergTable` extend Iceberg `SparkTable`, and `SparkHiveTable` extend Kyuubi `HiveTable`. - support row-level operations to iceberg Table ``` 1. update tableName set c1=v1, c2=v2, ... 2. merge into targetTable t using sourceTable s on s.key=t.key when matched then ... when not matched then ... 3. delete from table where xxx ``` ### Why are the changes needed? 1. For spark-connector in Iceberg, it explicitly uses `SparkTable` to identify whether it is an Iceberg table, so the `SparkIcebergTable` must extend `SparkTable`. 2. support row-level operations to iceberg Table. Fix: apache#2543 ### Does this PR introduce any user-facing change? Yes, support update ... , merge into ..., delete from ... ### How was this patch tested? New ITs.
What changes were proposed in this pull request?
refactor table implementation, make
SparkIcebergTable
extend IcebergSparkTable
, andSparkHiveTable
extend KyuubiHiveTable
.support row-level operations to iceberg Table
Why are the changes needed?
For spark-connector in Iceberg, it explicitly uses
SparkTable
to identify whether it is an Iceberg table, so theSparkIcebergTable
must extendSparkTable
.support row-level operations to iceberg Table.
Fix: #2543
Does this PR introduce any user-facing change?
Yes, support update ... , merge into ..., delete from ...
How was this patch tested?
New ITs.