This is an automated email from the ASF dual-hosted git repository.
danny0405 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/hudi.git
The following commit(s) were added to refs/heads/master by this push:
new acc418235e7 [MINOR] Delete the duplicated getMetadata method in
HoodieTable (#9964)
acc418235e7 is described below
commit acc418235e7c78cb8901edeab6c42639a2112b4b
Author: majian <[email protected]>
AuthorDate: Thu Nov 2 08:22:58 2023 +0800
[MINOR] Delete the duplicated getMetadata method in HoodieTable (#9964)
---
.../src/main/java/org/apache/hudi/table/HoodieTable.java | 4 ----
.../test/scala/org/apache/hudi/functional/TestRecordLevelIndex.scala | 2 +-
2 files changed, 1 insertion(+), 5 deletions(-)
diff --git
a/hudi-client/hudi-client-common/src/main/java/org/apache/hudi/table/HoodieTable.java
b/hudi-client/hudi-client-common/src/main/java/org/apache/hudi/table/HoodieTable.java
index 36a5e6de21a..c44d3b0f4cb 100644
---
a/hudi-client/hudi-client-common/src/main/java/org/apache/hudi/table/HoodieTable.java
+++
b/hudi-client/hudi-client-common/src/main/java/org/apache/hudi/table/HoodieTable.java
@@ -170,10 +170,6 @@ public abstract class HoodieTable<T, I, K, O> implements
Serializable {
return viewManager;
}
- public HoodieTableMetadata getMetadata() {
- return metadata;
- }
-
/**
* Upsert a batch of new records into Hoodie table at the supplied
instantTime.
* @param context HoodieEngineContext
diff --git
a/hudi-spark-datasource/hudi-spark/src/test/scala/org/apache/hudi/functional/TestRecordLevelIndex.scala
b/hudi-spark-datasource/hudi-spark/src/test/scala/org/apache/hudi/functional/TestRecordLevelIndex.scala
index b1973e250f4..17e3cadeeff 100644
---
a/hudi-spark-datasource/hudi-spark/src/test/scala/org/apache/hudi/functional/TestRecordLevelIndex.scala
+++
b/hudi-spark-datasource/hudi-spark/src/test/scala/org/apache/hudi/functional/TestRecordLevelIndex.scala
@@ -385,7 +385,7 @@ class TestRecordLevelIndex extends RecordLevelIndexTestBase
{
doWriteAndValidateDataAndRecordIndex(hudiOpts,
operation = DataSourceWriteOptions.UPSERT_OPERATION_OPT_VAL,
saveMode = SaveMode.Append)
- val metadataTableFSView = getHoodieTable(metaClient,
getWriteConfig(hudiOpts)).getMetadata
+ val metadataTableFSView = getHoodieTable(metaClient,
getWriteConfig(hudiOpts)).getMetadataTable
.asInstanceOf[HoodieBackedTableMetadata].getMetadataFileSystemView
val compactionTimeline =
metadataTableFSView.getVisibleCommitsAndCompactionTimeline.filterCompletedAndCompactionInstants()
val lastCompactionInstant = compactionTimeline