You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hudi.apache.org by "the-other-tim-brown (via GitHub)" <gi...@apache.org> on 2024/04/30 03:41:18 UTC
[PR] [HUDI-7689] Allow users to leverage HoodieTable and Engine Context in Compaction Strategy [hudi]
the-other-tim-brown opened a new pull request, #11123:
URL: https://github.com/apache/hudi/pull/11123
### Change Logs
_Describe context and summary for this change. Highlight if any code was copied._
### Impact
_Describe any public API or user-facing feature change or any performance impact._
### Risk level (write none, low medium or high below)
_If medium or high, explain what verification was done to mitigate the risks._
### Documentation Update
_Describe any necessary documentation update if there is any new feature, config, or user-facing change. If not, put "none"._
- _The config description must be updated if new configs are added or the default value of the configs are changed_
- _Any new feature or user-facing change requires updating the Hudi website. Please create a Jira ticket, attach the
ticket number here and follow the [instruction](https://hudi.apache.org/contribute/developer-setup#website) to make
changes to the website._
### Contributor's checklist
- [ ] Read through [contributor's guide](https://hudi.apache.org/contribute/how-to-contribute)
- [ ] Change Logs and Impact were stated clearly
- [ ] Adequate tests were added if applicable
- [ ] CI passed
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [HUDI-7689] Allow users to leverage HoodieTable and Engine Context in Compaction Strategy [hudi]
Posted by "hudi-bot (via GitHub)" <gi...@apache.org>.
hudi-bot commented on PR #11123:
URL: https://github.com/apache/hudi/pull/11123#issuecomment-2084335819
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "7c33e514fa077f0fb460a829326563f153d92860",
"status" : "PENDING",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=23570",
"triggerID" : "7c33e514fa077f0fb460a829326563f153d92860",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* 7c33e514fa077f0fb460a829326563f153d92860 Azure: [PENDING](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=23570)
<details>
<summary>Bot commands</summary>
@hudi-bot supports the following commands:
- `@hudi-bot run azure` re-run the last Azure build
</details>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [HUDI-7689] Allow users to leverage HoodieTable and Engine Context in Compaction Strategy [hudi]
Posted by "hudi-bot (via GitHub)" <gi...@apache.org>.
hudi-bot commented on PR #11123:
URL: https://github.com/apache/hudi/pull/11123#issuecomment-2084430850
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "7c33e514fa077f0fb460a829326563f153d92860",
"status" : "SUCCESS",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=23570",
"triggerID" : "7c33e514fa077f0fb460a829326563f153d92860",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* 7c33e514fa077f0fb460a829326563f153d92860 Azure: [SUCCESS](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=23570)
<details>
<summary>Bot commands</summary>
@hudi-bot supports the following commands:
- `@hudi-bot run azure` re-run the last Azure build
</details>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [HUDI-7689] Allow users to leverage HoodieTable and Engine Context in Compaction Strategy [hudi]
Posted by "the-other-tim-brown (via GitHub)" <gi...@apache.org>.
the-other-tim-brown commented on PR #11123:
URL: https://github.com/apache/hudi/pull/11123#issuecomment-3649838573
@yihua yes, I will close it
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [HUDI-7689] Allow users to leverage HoodieTable and Engine Context in Compaction Strategy [hudi]
Posted by "bvaradar (via GitHub)" <gi...@apache.org>.
bvaradar commented on code in PR #11123:
URL: https://github.com/apache/hudi/pull/11123#discussion_r1584177880
##########
hudi-client/hudi-client-common/src/main/java/org/apache/hudi/table/action/compact/strategy/CompactionStrategy.java:
##########
@@ -102,4 +105,19 @@ public List<HoodieCompactionOperation> orderAndFilter(HoodieWriteConfig writeCon
public List<String> filterPartitionPaths(HoodieWriteConfig writeConfig, List<String> allPartitionPaths) {
return allPartitionPaths;
}
+
+ /**
+ * Creates a new instance of the provided class.
+ * @param strategyClass class name of the strategy
+ * @param hoodieEngineContext an engine context which may be used by the compaction strategy
+ * @param hoodieTable a hoodie table which may be used by the compaction strategy
+ * @return a new instance of the provided class
+ */
+ public static CompactionStrategy create(String strategyClass, HoodieEngineContext hoodieEngineContext, HoodieTable hoodieTable) {
Review Comment:
@the-other-tim-brown HoodieTable interface exposes different write APIs (insertXXX, bulkInsertXXX, upsertXXX, deleteXXX) which should not be called by the CompactionStrategy implementation.
Can you define an interface to expose the subset of APIs that you want to compaction strategy implementation to make use of ?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [HUDI-7689] Allow users to leverage HoodieTable and Engine Context in Compaction Strategy [hudi]
Posted by "hudi-bot (via GitHub)" <gi...@apache.org>.
hudi-bot commented on PR #11123:
URL: https://github.com/apache/hudi/pull/11123#issuecomment-2084330935
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "7c33e514fa077f0fb460a829326563f153d92860",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "7c33e514fa077f0fb460a829326563f153d92860",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* 7c33e514fa077f0fb460a829326563f153d92860 UNKNOWN
<details>
<summary>Bot commands</summary>
@hudi-bot supports the following commands:
- `@hudi-bot run azure` re-run the last Azure build
</details>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [HUDI-7689] Allow users to leverage HoodieTable and Engine Context in Compaction Strategy [hudi]
Posted by "the-other-tim-brown (via GitHub)" <gi...@apache.org>.
the-other-tim-brown closed pull request #11123: [HUDI-7689] Allow users to leverage HoodieTable and Engine Context in Compaction Strategy
URL: https://github.com/apache/hudi/pull/11123
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org