You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hudi.apache.org by GitBox <gi...@apache.org> on 2022/11/25 09:58:02 UTC
[GitHub] [hudi] KnightChess opened a new pull request, #7304: [HUDI-5278]support more conf to cluster procedure
KnightChess opened a new pull request, #7304:
URL: https://github.com/apache/hudi/pull/7304
### Change Logs
spark sql cluster procedure support new params: op, order_strategy, options
### Impact
none
### Risk level (write none, low medium or high below)
low
### Documentation Update
will open doc pr to update
### 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
[GitHub] [hudi] hudi-bot commented on pull request #7304: [HUDI-5278]support more conf to cluster procedure
Posted by GitBox <gi...@apache.org>.
hudi-bot commented on PR #7304:
URL: https://github.com/apache/hudi/pull/7304#issuecomment-1327387636
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "627aedfd1d050348522bcf35fa54cb4672da7f40",
"status" : "PENDING",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13242",
"triggerID" : "627aedfd1d050348522bcf35fa54cb4672da7f40",
"triggerType" : "PUSH"
}, {
"hash" : "1b87e595a19e383dd5debc48d93652a01a6d92dc",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "1b87e595a19e383dd5debc48d93652a01a6d92dc",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* 627aedfd1d050348522bcf35fa54cb4672da7f40 Azure: [PENDING](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13242)
* 1b87e595a19e383dd5debc48d93652a01a6d92dc 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
[GitHub] [hudi] leesf commented on pull request #7304: [HUDI-5278]support more conf to cluster procedure
Posted by GitBox <gi...@apache.org>.
leesf commented on PR #7304:
URL: https://github.com/apache/hudi/pull/7304#issuecomment-1330063854
@KnightChess would you please rebase to latest master as I see the master has some code changed.
--
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
[GitHub] [hudi] hudi-bot commented on pull request #7304: [HUDI-5278]support more conf to cluster procedure
Posted by GitBox <gi...@apache.org>.
hudi-bot commented on PR #7304:
URL: https://github.com/apache/hudi/pull/7304#issuecomment-1330143941
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "627aedfd1d050348522bcf35fa54cb4672da7f40",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13242",
"triggerID" : "627aedfd1d050348522bcf35fa54cb4672da7f40",
"triggerType" : "PUSH"
}, {
"hash" : "1b87e595a19e383dd5debc48d93652a01a6d92dc",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13244",
"triggerID" : "1b87e595a19e383dd5debc48d93652a01a6d92dc",
"triggerType" : "PUSH"
}, {
"hash" : "7581789edac1fab4607dc41fa0ba918ee302b5a3",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13250",
"triggerID" : "7581789edac1fab4607dc41fa0ba918ee302b5a3",
"triggerType" : "PUSH"
}, {
"hash" : "ed07bdde33ff96390b4288fee79f2bfe10283e78",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13260",
"triggerID" : "ed07bdde33ff96390b4288fee79f2bfe10283e78",
"triggerType" : "PUSH"
}, {
"hash" : "e839fd6ee20e9586875e5666d9c79e177461ca13",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13284",
"triggerID" : "e839fd6ee20e9586875e5666d9c79e177461ca13",
"triggerType" : "PUSH"
}, {
"hash" : "728191c9f32587415239c87cf89ce3efb6b42fb0",
"status" : "CANCELED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13301",
"triggerID" : "728191c9f32587415239c87cf89ce3efb6b42fb0",
"triggerType" : "PUSH"
}, {
"hash" : "20a511d8ed5d22d8dd6fda83399b45f8e947d9c7",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "20a511d8ed5d22d8dd6fda83399b45f8e947d9c7",
"triggerType" : "PUSH"
}, {
"hash" : "3f8f9a48fadb41bf0c9e6449be942035e7b2d4d7",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "3f8f9a48fadb41bf0c9e6449be942035e7b2d4d7",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* 728191c9f32587415239c87cf89ce3efb6b42fb0 Azure: [CANCELED](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13301)
* 20a511d8ed5d22d8dd6fda83399b45f8e947d9c7 UNKNOWN
* 3f8f9a48fadb41bf0c9e6449be942035e7b2d4d7 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
[GitHub] [hudi] hudi-bot commented on pull request #7304: [HUDI-5278]support more conf to cluster procedure
Posted by GitBox <gi...@apache.org>.
hudi-bot commented on PR #7304:
URL: https://github.com/apache/hudi/pull/7304#issuecomment-1328277223
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "627aedfd1d050348522bcf35fa54cb4672da7f40",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13242",
"triggerID" : "627aedfd1d050348522bcf35fa54cb4672da7f40",
"triggerType" : "PUSH"
}, {
"hash" : "1b87e595a19e383dd5debc48d93652a01a6d92dc",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13244",
"triggerID" : "1b87e595a19e383dd5debc48d93652a01a6d92dc",
"triggerType" : "PUSH"
}, {
"hash" : "7581789edac1fab4607dc41fa0ba918ee302b5a3",
"status" : "SUCCESS",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13250",
"triggerID" : "7581789edac1fab4607dc41fa0ba918ee302b5a3",
"triggerType" : "PUSH"
}, {
"hash" : "ed07bdde33ff96390b4288fee79f2bfe10283e78",
"status" : "PENDING",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13260",
"triggerID" : "ed07bdde33ff96390b4288fee79f2bfe10283e78",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* 7581789edac1fab4607dc41fa0ba918ee302b5a3 Azure: [SUCCESS](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13250)
* ed07bdde33ff96390b4288fee79f2bfe10283e78 Azure: [PENDING](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13260)
<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
[GitHub] [hudi] KnightChess commented on pull request #7304: [HUDI-5278]support more conf to cluster procedure
Posted by GitBox <gi...@apache.org>.
KnightChess commented on PR #7304:
URL: https://github.com/apache/hudi/pull/7304#issuecomment-1330300010
> Don't merge, I meet some question in cluster
look like is something bug in our Internal version, open version is ok, no blocked
--
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
[GitHub] [hudi] hudi-bot commented on pull request #7304: [HUDI-5278]support more conf to cluster procedure
Posted by GitBox <gi...@apache.org>.
hudi-bot commented on PR #7304:
URL: https://github.com/apache/hudi/pull/7304#issuecomment-1330502214
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "627aedfd1d050348522bcf35fa54cb4672da7f40",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13242",
"triggerID" : "627aedfd1d050348522bcf35fa54cb4672da7f40",
"triggerType" : "PUSH"
}, {
"hash" : "1b87e595a19e383dd5debc48d93652a01a6d92dc",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13244",
"triggerID" : "1b87e595a19e383dd5debc48d93652a01a6d92dc",
"triggerType" : "PUSH"
}, {
"hash" : "7581789edac1fab4607dc41fa0ba918ee302b5a3",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13250",
"triggerID" : "7581789edac1fab4607dc41fa0ba918ee302b5a3",
"triggerType" : "PUSH"
}, {
"hash" : "ed07bdde33ff96390b4288fee79f2bfe10283e78",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13260",
"triggerID" : "ed07bdde33ff96390b4288fee79f2bfe10283e78",
"triggerType" : "PUSH"
}, {
"hash" : "e839fd6ee20e9586875e5666d9c79e177461ca13",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13284",
"triggerID" : "e839fd6ee20e9586875e5666d9c79e177461ca13",
"triggerType" : "PUSH"
}, {
"hash" : "728191c9f32587415239c87cf89ce3efb6b42fb0",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13301",
"triggerID" : "728191c9f32587415239c87cf89ce3efb6b42fb0",
"triggerType" : "PUSH"
}, {
"hash" : "20a511d8ed5d22d8dd6fda83399b45f8e947d9c7",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "20a511d8ed5d22d8dd6fda83399b45f8e947d9c7",
"triggerType" : "PUSH"
}, {
"hash" : "3f8f9a48fadb41bf0c9e6449be942035e7b2d4d7",
"status" : "FAILURE",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13306",
"triggerID" : "3f8f9a48fadb41bf0c9e6449be942035e7b2d4d7",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* 20a511d8ed5d22d8dd6fda83399b45f8e947d9c7 UNKNOWN
* 3f8f9a48fadb41bf0c9e6449be942035e7b2d4d7 Azure: [FAILURE](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13306)
<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
[GitHub] [hudi] leesf commented on a diff in pull request #7304: [HUDI-5278]support more conf to cluster procedure
Posted by GitBox <gi...@apache.org>.
leesf commented on code in PR #7304:
URL: https://github.com/apache/hudi/pull/7304#discussion_r1033150889
##########
hudi-spark-datasource/hudi-spark/src/main/scala/org/apache/spark/sql/hudi/command/procedures/RunClusteringProcedure.scala:
##########
@@ -100,24 +111,59 @@ class RunClusteringProcedure extends BaseProcedure
logInfo("No order columns")
}
+ orderStrategy match {
+ case Some(o) =>
+ val strategy = LayoutOptimizationStrategy.fromValue(o.asInstanceOf[String])
+ conf = conf ++ Map(
+ HoodieClusteringConfig.LAYOUT_OPTIMIZE_STRATEGY.key() -> strategy.getValue
+ )
+ case _ =>
+ logInfo("No order strategy")
+ }
+
+ options match {
+ case Some(p) =>
+ val paramPairs = StringUtils.split(p.asInstanceOf[String], ",").asScala
+ paramPairs.foreach{ pair =>
+ val values = StringUtils.split(pair, "=")
+ conf = conf ++ Map(values.get(0) -> values.get(1))
+ }
+ case _ =>
+ logInfo("No options")
+ }
+
// Get all pending clustering instants
var pendingClustering = ClusteringUtils.getAllPendingClusteringPlans(metaClient)
.iterator().asScala.map(_.getLeft.getTimestamp).toSeq.sortBy(f => f)
+
+ pendingClustering = instantsStr match {
+ case Some(inst) =>
+ operator = ClusteringOperator.EXECUTE
Review Comment:
I think we need check if users specify the instants with SCHEDULE and SCHEDULE_AND_EXECUTE, we should throw exception instead of set it to EXECUTE when specify instants.
--
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
[GitHub] [hudi] leesf closed pull request #7304: [HUDI-5278]support more conf to cluster procedure
Posted by GitBox <gi...@apache.org>.
leesf closed pull request #7304: [HUDI-5278]support more conf to cluster procedure
URL: https://github.com/apache/hudi/pull/7304
--
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
[GitHub] [hudi] hudi-bot commented on pull request #7304: [HUDI-5278]support more conf to cluster procedure
Posted by GitBox <gi...@apache.org>.
hudi-bot commented on PR #7304:
URL: https://github.com/apache/hudi/pull/7304#issuecomment-1330139340
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "627aedfd1d050348522bcf35fa54cb4672da7f40",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13242",
"triggerID" : "627aedfd1d050348522bcf35fa54cb4672da7f40",
"triggerType" : "PUSH"
}, {
"hash" : "1b87e595a19e383dd5debc48d93652a01a6d92dc",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13244",
"triggerID" : "1b87e595a19e383dd5debc48d93652a01a6d92dc",
"triggerType" : "PUSH"
}, {
"hash" : "7581789edac1fab4607dc41fa0ba918ee302b5a3",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13250",
"triggerID" : "7581789edac1fab4607dc41fa0ba918ee302b5a3",
"triggerType" : "PUSH"
}, {
"hash" : "ed07bdde33ff96390b4288fee79f2bfe10283e78",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13260",
"triggerID" : "ed07bdde33ff96390b4288fee79f2bfe10283e78",
"triggerType" : "PUSH"
}, {
"hash" : "e839fd6ee20e9586875e5666d9c79e177461ca13",
"status" : "SUCCESS",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13284",
"triggerID" : "e839fd6ee20e9586875e5666d9c79e177461ca13",
"triggerType" : "PUSH"
}, {
"hash" : "728191c9f32587415239c87cf89ce3efb6b42fb0",
"status" : "PENDING",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13301",
"triggerID" : "728191c9f32587415239c87cf89ce3efb6b42fb0",
"triggerType" : "PUSH"
}, {
"hash" : "20a511d8ed5d22d8dd6fda83399b45f8e947d9c7",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "20a511d8ed5d22d8dd6fda83399b45f8e947d9c7",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* e839fd6ee20e9586875e5666d9c79e177461ca13 Azure: [SUCCESS](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13284)
* 728191c9f32587415239c87cf89ce3efb6b42fb0 Azure: [PENDING](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13301)
* 20a511d8ed5d22d8dd6fda83399b45f8e947d9c7 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
[GitHub] [hudi] hudi-bot commented on pull request #7304: [HUDI-5278]support more conf to cluster procedure
Posted by GitBox <gi...@apache.org>.
hudi-bot commented on PR #7304:
URL: https://github.com/apache/hudi/pull/7304#issuecomment-1329282485
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "627aedfd1d050348522bcf35fa54cb4672da7f40",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13242",
"triggerID" : "627aedfd1d050348522bcf35fa54cb4672da7f40",
"triggerType" : "PUSH"
}, {
"hash" : "1b87e595a19e383dd5debc48d93652a01a6d92dc",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13244",
"triggerID" : "1b87e595a19e383dd5debc48d93652a01a6d92dc",
"triggerType" : "PUSH"
}, {
"hash" : "7581789edac1fab4607dc41fa0ba918ee302b5a3",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13250",
"triggerID" : "7581789edac1fab4607dc41fa0ba918ee302b5a3",
"triggerType" : "PUSH"
}, {
"hash" : "ed07bdde33ff96390b4288fee79f2bfe10283e78",
"status" : "SUCCESS",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13260",
"triggerID" : "ed07bdde33ff96390b4288fee79f2bfe10283e78",
"triggerType" : "PUSH"
}, {
"hash" : "e839fd6ee20e9586875e5666d9c79e177461ca13",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "e839fd6ee20e9586875e5666d9c79e177461ca13",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* ed07bdde33ff96390b4288fee79f2bfe10283e78 Azure: [SUCCESS](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13260)
* e839fd6ee20e9586875e5666d9c79e177461ca13 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
[GitHub] [hudi] hudi-bot commented on pull request #7304: [HUDI-5278]support more conf to cluster procedure
Posted by GitBox <gi...@apache.org>.
hudi-bot commented on PR #7304:
URL: https://github.com/apache/hudi/pull/7304#issuecomment-1330081864
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "627aedfd1d050348522bcf35fa54cb4672da7f40",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13242",
"triggerID" : "627aedfd1d050348522bcf35fa54cb4672da7f40",
"triggerType" : "PUSH"
}, {
"hash" : "1b87e595a19e383dd5debc48d93652a01a6d92dc",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13244",
"triggerID" : "1b87e595a19e383dd5debc48d93652a01a6d92dc",
"triggerType" : "PUSH"
}, {
"hash" : "7581789edac1fab4607dc41fa0ba918ee302b5a3",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13250",
"triggerID" : "7581789edac1fab4607dc41fa0ba918ee302b5a3",
"triggerType" : "PUSH"
}, {
"hash" : "ed07bdde33ff96390b4288fee79f2bfe10283e78",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13260",
"triggerID" : "ed07bdde33ff96390b4288fee79f2bfe10283e78",
"triggerType" : "PUSH"
}, {
"hash" : "e839fd6ee20e9586875e5666d9c79e177461ca13",
"status" : "SUCCESS",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13284",
"triggerID" : "e839fd6ee20e9586875e5666d9c79e177461ca13",
"triggerType" : "PUSH"
}, {
"hash" : "728191c9f32587415239c87cf89ce3efb6b42fb0",
"status" : "PENDING",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13301",
"triggerID" : "728191c9f32587415239c87cf89ce3efb6b42fb0",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* e839fd6ee20e9586875e5666d9c79e177461ca13 Azure: [SUCCESS](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13284)
* 728191c9f32587415239c87cf89ce3efb6b42fb0 Azure: [PENDING](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13301)
<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
[GitHub] [hudi] KnightChess commented on a diff in pull request #7304: [HUDI-5278]support more conf to cluster procedure
Posted by GitBox <gi...@apache.org>.
KnightChess commented on code in PR #7304:
URL: https://github.com/apache/hudi/pull/7304#discussion_r1032563137
##########
hudi-client/hudi-client-common/src/main/java/org/apache/hudi/config/HoodieClusteringConfig.java:
##########
@@ -713,5 +713,48 @@ public static LayoutOptimizationStrategy fromValue(String value) {
return enumValue;
}
+
+ public String getValue() {
+ return value;
+ }
+ }
+
+ public enum ClusteringOperator {
+
+ SCHEDULE("schedule"),
+
+ EXECUTE("execute"),
+
+ SCHEDULEANDEXECUTE("scheduleandexecute");
Review Comment:
right
--
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
[GitHub] [hudi] hudi-bot commented on pull request #7304: [HUDI-5278]support more conf to cluster procedure
Posted by GitBox <gi...@apache.org>.
hudi-bot commented on PR #7304:
URL: https://github.com/apache/hudi/pull/7304#issuecomment-1327307859
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "627aedfd1d050348522bcf35fa54cb4672da7f40",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "627aedfd1d050348522bcf35fa54cb4672da7f40",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* 627aedfd1d050348522bcf35fa54cb4672da7f40 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
[GitHub] [hudi] hudi-bot commented on pull request #7304: [HUDI-5278]support more conf to cluster procedure
Posted by GitBox <gi...@apache.org>.
hudi-bot commented on PR #7304:
URL: https://github.com/apache/hudi/pull/7304#issuecomment-1330147640
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "627aedfd1d050348522bcf35fa54cb4672da7f40",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13242",
"triggerID" : "627aedfd1d050348522bcf35fa54cb4672da7f40",
"triggerType" : "PUSH"
}, {
"hash" : "1b87e595a19e383dd5debc48d93652a01a6d92dc",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13244",
"triggerID" : "1b87e595a19e383dd5debc48d93652a01a6d92dc",
"triggerType" : "PUSH"
}, {
"hash" : "7581789edac1fab4607dc41fa0ba918ee302b5a3",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13250",
"triggerID" : "7581789edac1fab4607dc41fa0ba918ee302b5a3",
"triggerType" : "PUSH"
}, {
"hash" : "ed07bdde33ff96390b4288fee79f2bfe10283e78",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13260",
"triggerID" : "ed07bdde33ff96390b4288fee79f2bfe10283e78",
"triggerType" : "PUSH"
}, {
"hash" : "e839fd6ee20e9586875e5666d9c79e177461ca13",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13284",
"triggerID" : "e839fd6ee20e9586875e5666d9c79e177461ca13",
"triggerType" : "PUSH"
}, {
"hash" : "728191c9f32587415239c87cf89ce3efb6b42fb0",
"status" : "CANCELED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13301",
"triggerID" : "728191c9f32587415239c87cf89ce3efb6b42fb0",
"triggerType" : "PUSH"
}, {
"hash" : "20a511d8ed5d22d8dd6fda83399b45f8e947d9c7",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "20a511d8ed5d22d8dd6fda83399b45f8e947d9c7",
"triggerType" : "PUSH"
}, {
"hash" : "3f8f9a48fadb41bf0c9e6449be942035e7b2d4d7",
"status" : "PENDING",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13306",
"triggerID" : "3f8f9a48fadb41bf0c9e6449be942035e7b2d4d7",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* 728191c9f32587415239c87cf89ce3efb6b42fb0 Azure: [CANCELED](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13301)
* 20a511d8ed5d22d8dd6fda83399b45f8e947d9c7 UNKNOWN
* 3f8f9a48fadb41bf0c9e6449be942035e7b2d4d7 Azure: [PENDING](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13306)
<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
[GitHub] [hudi] stream2000 commented on a diff in pull request #7304: [HUDI-5278]support more conf to cluster procedure
Posted by GitBox <gi...@apache.org>.
stream2000 commented on code in PR #7304:
URL: https://github.com/apache/hudi/pull/7304#discussion_r1032567110
##########
hudi-client/hudi-client-common/src/main/java/org/apache/hudi/config/HoodieClusteringConfig.java:
##########
@@ -713,5 +713,48 @@ public static LayoutOptimizationStrategy fromValue(String value) {
return enumValue;
}
+
+ public String getValue() {
+ return value;
+ }
+ }
+
+ public enum ClusteringOperator {
+
+ SCHEDULE("schedule"),
+
+ EXECUTE("execute"),
+
+ SCHEDULEANDEXECUTE("scheduleandexecute");
+
+ private static final Map<String, ClusteringOperator> VALUE_TO_ENUM_MAP =
+ TypeUtils.getValueToEnumMap(ClusteringOperator.class, e -> e.value);
+
+ private final String value;
+
+ ClusteringOperator(String value) {
+ this.value = value;
+ }
+
+ @Nonnull
+ public static ClusteringOperator fromValue(String value) {
+ ClusteringOperator enumValue = VALUE_TO_ENUM_MAP.get(value);
+ if (enumValue == null) {
+ throw new HoodieException(String.format("Invalid value (%s)", value));
+ }
+ return enumValue;
+ }
+
+ public boolean isSchedule() {
Review Comment:
Maybe we can change [SCHEDULE, EXECUTE, SCHEDULEANDEXECUTE] to [SCHDULE_ONLY, EXECUTE_ONLY, SCHEDULE_SCHEDULE_AND_EXECUTE]? So when can know from the name that when SCHDULE_ONLY is set we won't execute the clustering. EXECUTE_ONLY is the same.
--
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
[GitHub] [hudi] stream2000 commented on a diff in pull request #7304: [HUDI-5278]support more conf to cluster procedure
Posted by GitBox <gi...@apache.org>.
stream2000 commented on code in PR #7304:
URL: https://github.com/apache/hudi/pull/7304#discussion_r1032558061
##########
hudi-client/hudi-client-common/src/main/java/org/apache/hudi/config/HoodieClusteringConfig.java:
##########
@@ -713,5 +713,48 @@ public static LayoutOptimizationStrategy fromValue(String value) {
return enumValue;
}
+
+ public String getValue() {
+ return value;
+ }
+ }
+
+ public enum ClusteringOperator {
+
+ SCHEDULE("schedule"),
+
+ EXECUTE("execute"),
+
+ SCHEDULEANDEXECUTE("scheduleandexecute");
Review Comment:
How about SCHEDULE_AND_EXECUTE?
--
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
[GitHub] [hudi] leesf merged pull request #7304: [HUDI-5278] Support more conf to cluster procedure
Posted by GitBox <gi...@apache.org>.
leesf merged PR #7304:
URL: https://github.com/apache/hudi/pull/7304
--
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
[GitHub] [hudi] KnightChess commented on pull request #7304: [HUDI-5278]support more conf to cluster procedure
Posted by GitBox <gi...@apache.org>.
KnightChess commented on PR #7304:
URL: https://github.com/apache/hudi/pull/7304#issuecomment-1330080098
flink moudle error, and I found
<img width="1062" alt="image" src="https://user-images.githubusercontent.com/20125927/204443228-01edc845-f7cd-4616-ab72-38a1668687c2.png">
--
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
[GitHub] [hudi] hudi-bot commented on pull request #7304: [HUDI-5278]support more conf to cluster procedure
Posted by GitBox <gi...@apache.org>.
hudi-bot commented on PR #7304:
URL: https://github.com/apache/hudi/pull/7304#issuecomment-1327562385
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "627aedfd1d050348522bcf35fa54cb4672da7f40",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13242",
"triggerID" : "627aedfd1d050348522bcf35fa54cb4672da7f40",
"triggerType" : "PUSH"
}, {
"hash" : "1b87e595a19e383dd5debc48d93652a01a6d92dc",
"status" : "SUCCESS",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13244",
"triggerID" : "1b87e595a19e383dd5debc48d93652a01a6d92dc",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* 1b87e595a19e383dd5debc48d93652a01a6d92dc Azure: [SUCCESS](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13244)
<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
[GitHub] [hudi] KnightChess commented on a diff in pull request #7304: [HUDI-5278]support more conf to cluster procedure
Posted by GitBox <gi...@apache.org>.
KnightChess commented on code in PR #7304:
URL: https://github.com/apache/hudi/pull/7304#discussion_r1032943324
##########
hudi-spark-datasource/hudi-spark/src/test/scala/org/apache/spark/sql/hudi/procedure/TestClusteringProcedure.scala:
##########
@@ -385,4 +395,189 @@ class TestClusteringProcedure extends HoodieSparkProcedureTestBase {
}
}
}
+
+ test("Test Call run_clustering Procedure op") {
+ withTempDir { tmp =>
+ val tableName = generateTableName
+ val basePath = s"${tmp.getCanonicalPath}/$tableName"
+
+ spark.sql(
+ s"""
+ |create table $tableName (
+ | c1 int,
+ | c2 string,
+ | c3 double
+ |) using hudi
+ | options (
+ | primaryKey = 'c1',
+ | type = 'cow',
+ | hoodie.metadata.enable = 'true',
+ | hoodie.metadata.index.column.stats.enable = 'true',
+ | hoodie.enable.data.skipping = 'true',
+ | hoodie.datasource.write.operation = 'insert'
+ | )
+ | location '$basePath'
+ """.stripMargin)
+
+ writeRecords(2, 4, 0, basePath, Map("hoodie.avro.schema.validate"-> "false"))
+ val conf = new Configuration
+ val metaClient = HoodieTableMetaClient.builder.setConf(conf).setBasePath(basePath).build
+ metaClient.reloadActiveTimeline()
+ assert(0 == metaClient.getActiveTimeline.getCompletedReplaceTimeline.getInstants.count())
+ assert(metaClient.getActiveTimeline.filterPendingReplaceTimeline().empty())
+
+ spark.sql(s"call run_clustering(table => '$tableName', op => 'schedule')")
+ metaClient.reloadActiveTimeline()
+ assert(0 == metaClient.getActiveTimeline.getCompletedReplaceTimeline.getInstants.count())
+ assert(1 == metaClient.getActiveTimeline.filterPendingReplaceTimeline().getInstants.count())
+
+ spark.sql(s"call run_clustering(table => '$tableName', op => 'execute')")
+ metaClient.reloadActiveTimeline()
+ assert(1 == metaClient.getActiveTimeline.getCompletedReplaceTimeline.getInstants.count())
+ assert(0 == metaClient.getActiveTimeline.filterPendingReplaceTimeline().getInstants.count())
+
+ spark.sql(s"call run_clustering(table => '$tableName')")
Review Comment:
oh, it already has invalid case `checkExceptionContain(s"call run_clustering(table => '$tableName', op => 'null')")("Invalid value")`
--
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
[GitHub] [hudi] KnightChess commented on a diff in pull request #7304: [HUDI-5278]support more conf to cluster procedure
Posted by GitBox <gi...@apache.org>.
KnightChess commented on code in PR #7304:
URL: https://github.com/apache/hudi/pull/7304#discussion_r1033611954
##########
hudi-spark-datasource/hudi-spark/src/main/scala/org/apache/spark/sql/hudi/command/procedures/RunClusteringProcedure.scala:
##########
@@ -100,24 +111,59 @@ class RunClusteringProcedure extends BaseProcedure
logInfo("No order columns")
}
+ orderStrategy match {
+ case Some(o) =>
+ val strategy = LayoutOptimizationStrategy.fromValue(o.asInstanceOf[String])
+ conf = conf ++ Map(
+ HoodieClusteringConfig.LAYOUT_OPTIMIZE_STRATEGY.key() -> strategy.getValue
+ )
+ case _ =>
+ logInfo("No order strategy")
+ }
+
+ options match {
+ case Some(p) =>
+ val paramPairs = StringUtils.split(p.asInstanceOf[String], ",").asScala
+ paramPairs.foreach{ pair =>
+ val values = StringUtils.split(pair, "=")
+ conf = conf ++ Map(values.get(0) -> values.get(1))
+ }
+ case _ =>
+ logInfo("No options")
+ }
+
// Get all pending clustering instants
var pendingClustering = ClusteringUtils.getAllPendingClusteringPlans(metaClient)
.iterator().asScala.map(_.getLeft.getTimestamp).toSeq.sortBy(f => f)
+
+ pendingClustering = instantsStr match {
+ case Some(inst) =>
+ operator = ClusteringOperator.EXECUTE
Review Comment:
the line can not put below `logInfo("No op")`, operator default is `scheduleAndExecute`, if user specific instants, it need be set to execute after check
--
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
[GitHub] [hudi] hudi-bot commented on pull request #7304: [HUDI-5278]support more conf to cluster procedure
Posted by GitBox <gi...@apache.org>.
hudi-bot commented on PR #7304:
URL: https://github.com/apache/hudi/pull/7304#issuecomment-1327967860
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "627aedfd1d050348522bcf35fa54cb4672da7f40",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13242",
"triggerID" : "627aedfd1d050348522bcf35fa54cb4672da7f40",
"triggerType" : "PUSH"
}, {
"hash" : "1b87e595a19e383dd5debc48d93652a01a6d92dc",
"status" : "SUCCESS",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13244",
"triggerID" : "1b87e595a19e383dd5debc48d93652a01a6d92dc",
"triggerType" : "PUSH"
}, {
"hash" : "7581789edac1fab4607dc41fa0ba918ee302b5a3",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "7581789edac1fab4607dc41fa0ba918ee302b5a3",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* 1b87e595a19e383dd5debc48d93652a01a6d92dc Azure: [SUCCESS](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13244)
* 7581789edac1fab4607dc41fa0ba918ee302b5a3 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
[GitHub] [hudi] hudi-bot commented on pull request #7304: [HUDI-5278]support more conf to cluster procedure
Posted by GitBox <gi...@apache.org>.
hudi-bot commented on PR #7304:
URL: https://github.com/apache/hudi/pull/7304#issuecomment-1327985474
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "627aedfd1d050348522bcf35fa54cb4672da7f40",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13242",
"triggerID" : "627aedfd1d050348522bcf35fa54cb4672da7f40",
"triggerType" : "PUSH"
}, {
"hash" : "1b87e595a19e383dd5debc48d93652a01a6d92dc",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13244",
"triggerID" : "1b87e595a19e383dd5debc48d93652a01a6d92dc",
"triggerType" : "PUSH"
}, {
"hash" : "7581789edac1fab4607dc41fa0ba918ee302b5a3",
"status" : "SUCCESS",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13250",
"triggerID" : "7581789edac1fab4607dc41fa0ba918ee302b5a3",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* 7581789edac1fab4607dc41fa0ba918ee302b5a3 Azure: [SUCCESS](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13250)
<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
[GitHub] [hudi] KnightChess commented on pull request #7304: [HUDI-5278]support more conf to cluster procedure
Posted by GitBox <gi...@apache.org>.
KnightChess commented on PR #7304:
URL: https://github.com/apache/hudi/pull/7304#issuecomment-1329285791
@leesf can you help me resolve this issue, after lastest success ci code, the code has not change any all, and my local compile is success
<img width="999" alt="image" src="https://user-images.githubusercontent.com/20125927/204313889-3a14597d-511c-4106-aafc-8576c9e2709e.png">
<img width="704" alt="image" src="https://user-images.githubusercontent.com/20125927/204314425-0be4a084-211e-4510-a17c-12c57b0c1e79.png">
--
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
[GitHub] [hudi] hudi-bot commented on pull request #7304: [HUDI-5278]support more conf to cluster procedure
Posted by GitBox <gi...@apache.org>.
hudi-bot commented on PR #7304:
URL: https://github.com/apache/hudi/pull/7304#issuecomment-1329621523
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "627aedfd1d050348522bcf35fa54cb4672da7f40",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13242",
"triggerID" : "627aedfd1d050348522bcf35fa54cb4672da7f40",
"triggerType" : "PUSH"
}, {
"hash" : "1b87e595a19e383dd5debc48d93652a01a6d92dc",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13244",
"triggerID" : "1b87e595a19e383dd5debc48d93652a01a6d92dc",
"triggerType" : "PUSH"
}, {
"hash" : "7581789edac1fab4607dc41fa0ba918ee302b5a3",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13250",
"triggerID" : "7581789edac1fab4607dc41fa0ba918ee302b5a3",
"triggerType" : "PUSH"
}, {
"hash" : "ed07bdde33ff96390b4288fee79f2bfe10283e78",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13260",
"triggerID" : "ed07bdde33ff96390b4288fee79f2bfe10283e78",
"triggerType" : "PUSH"
}, {
"hash" : "e839fd6ee20e9586875e5666d9c79e177461ca13",
"status" : "SUCCESS",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13284",
"triggerID" : "e839fd6ee20e9586875e5666d9c79e177461ca13",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* e839fd6ee20e9586875e5666d9c79e177461ca13 Azure: [SUCCESS](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13284)
<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
[GitHub] [hudi] leesf commented on pull request #7304: [HUDI-5278] Support more conf to cluster procedure
Posted by GitBox <gi...@apache.org>.
leesf commented on PR #7304:
URL: https://github.com/apache/hudi/pull/7304#issuecomment-1330650108
@hudi-bot run azure
--
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
[GitHub] [hudi] boneanxs commented on a diff in pull request #7304: [HUDI-5278] Support more conf to cluster procedure
Posted by "boneanxs (via GitHub)" <gi...@apache.org>.
boneanxs commented on code in PR #7304:
URL: https://github.com/apache/hudi/pull/7304#discussion_r1212496811
##########
hudi-spark-datasource/hudi-spark/src/test/scala/org/apache/spark/sql/hudi/procedure/TestClusteringProcedure.scala:
##########
@@ -385,4 +395,261 @@ class TestClusteringProcedure extends HoodieSparkProcedureTestBase {
}
}
}
+
+ test("Test Call run_clustering Procedure with specific instants") {
+ withTempDir { tmp =>
+ val tableName = generateTableName
+ val basePath = s"${tmp.getCanonicalPath}/$tableName"
+
+ spark.sql(
+ s"""
+ |create table $tableName (
+ | c1 int,
+ | c2 string,
+ | c3 double
+ |) using hudi
+ | options (
+ | primaryKey = 'c1',
+ | type = 'cow',
+ | hoodie.metadata.enable = 'true',
+ | hoodie.metadata.index.column.stats.enable = 'true',
+ | hoodie.enable.data.skipping = 'true',
+ | hoodie.datasource.write.operation = 'insert'
+ | )
+ | location '$basePath'
+ """.stripMargin)
+
+ writeRecords(2, 4, 0, basePath, Map("hoodie.avro.schema.validate" -> "false"))
+ spark.sql(s"call run_clustering(table => '$tableName', op => 'schedule')")
+
+ writeRecords(2, 4, 0, basePath, Map("hoodie.avro.schema.validate" -> "false"))
+ spark.sql(s"call run_clustering(table => '$tableName', op => 'schedule')")
+
+ val conf = new Configuration
+ val metaClient = HoodieTableMetaClient.builder.setConf(conf).setBasePath(basePath).build
+ val instants = metaClient.getActiveTimeline.filterPendingReplaceTimeline().getInstants.iterator().asScala.map(_.getTimestamp).toSeq
+ assert(2 == instants.size)
+
+ checkExceptionContain(
+ s"call run_clustering(table => '$tableName', instants => '000000, ${instants.head}')"
+ )("specific 000000 instants is not exist")
+ metaClient.reloadActiveTimeline()
+ assert(0 == metaClient.getActiveTimeline.getCompletedReplaceTimeline.getInstants.size())
+ assert(2 == metaClient.getActiveTimeline.filterPendingReplaceTimeline.getInstants.size())
+
+ writeRecords(2, 4, 0, basePath, Map("hoodie.avro.schema.validate" -> "false"))
+ // specific instants will not schedule new cluster plan
+ spark.sql(s"call run_clustering(table => '$tableName', instants => '${instants.mkString(",")}')")
+ metaClient.reloadActiveTimeline()
+ assert(2 == metaClient.getActiveTimeline.getCompletedReplaceTimeline.getInstants.size())
+ assert(0 == metaClient.getActiveTimeline.filterPendingReplaceTimeline.getInstants.size())
+
+ // test with operator schedule
+ checkExceptionContain(
+ s"call run_clustering(table => '$tableName', instants => '000000', op => 'schedule')"
+ )("specific instants only can be used in 'execute' op or not specific op")
+
+ // test with operator scheduleAndExecute
+ checkExceptionContain(
+ s"call run_clustering(table => '$tableName', instants => '000000', op => 'scheduleAndExecute')"
+ )("specific instants only can be used in 'execute' op or not specific op")
+
+ // test with operator execute
+ spark.sql(s"call run_clustering(table => '$tableName', op => 'schedule')")
+ metaClient.reloadActiveTimeline()
+ val instants2 = metaClient.getActiveTimeline.filterPendingReplaceTimeline().getInstants.iterator().asScala.map(_.getTimestamp).toSeq
+ spark.sql(s"call run_clustering(table => '$tableName', instants => '${instants2.mkString(",")}', op => 'execute')")
+ metaClient.reloadActiveTimeline()
+ assert(3 == metaClient.getActiveTimeline.getCompletedReplaceTimeline.getInstants.size())
+ assert(0 == metaClient.getActiveTimeline.filterPendingReplaceTimeline.getInstants.size())
+ }
+ }
+
+ test("Test Call run_clustering Procedure op") {
+ withTempDir { tmp =>
+ val tableName = generateTableName
+ val basePath = s"${tmp.getCanonicalPath}/$tableName"
+
+ spark.sql(
+ s"""
+ |create table $tableName (
+ | c1 int,
+ | c2 string,
+ | c3 double
+ |) using hudi
+ | options (
+ | primaryKey = 'c1',
+ | type = 'cow',
+ | hoodie.metadata.enable = 'true',
+ | hoodie.metadata.index.column.stats.enable = 'true',
+ | hoodie.enable.data.skipping = 'true',
+ | hoodie.datasource.write.operation = 'insert'
+ | )
+ | location '$basePath'
+ """.stripMargin)
+
+ writeRecords(2, 4, 0, basePath, Map("hoodie.avro.schema.validate"-> "false"))
+ val conf = new Configuration
+ val metaClient = HoodieTableMetaClient.builder.setConf(conf).setBasePath(basePath).build
+ assert(0 == metaClient.getActiveTimeline.getCompletedReplaceTimeline.getInstants.size())
+ assert(metaClient.getActiveTimeline.filterPendingReplaceTimeline().empty())
+
+ spark.sql(s"call run_clustering(table => '$tableName', op => 'schedule')")
+ metaClient.reloadActiveTimeline()
+ assert(0 == metaClient.getActiveTimeline.getCompletedReplaceTimeline.getInstants.size())
+ assert(1 == metaClient.getActiveTimeline.filterPendingReplaceTimeline().getInstants.size())
+
+ spark.sql(s"call run_clustering(table => '$tableName', op => 'execute')")
+ metaClient.reloadActiveTimeline()
+ assert(1 == metaClient.getActiveTimeline.getCompletedReplaceTimeline.getInstants.size())
+ assert(0 == metaClient.getActiveTimeline.filterPendingReplaceTimeline().getInstants.size())
+
+ spark.sql(s"call run_clustering(table => '$tableName')")
+ metaClient.reloadActiveTimeline()
+ assert(2 == metaClient.getActiveTimeline.getCompletedReplaceTimeline.getInstants.size())
+ assert(0 == metaClient.getActiveTimeline.filterPendingReplaceTimeline().getInstants.size())
+
+ spark.sql(s"call run_clustering(table => '$tableName')")
+ metaClient.reloadActiveTimeline()
+ assert(3 == metaClient.getActiveTimeline.getCompletedReplaceTimeline.getInstants.size())
+ assert(0 == metaClient.getActiveTimeline.filterPendingReplaceTimeline().getInstants.size())
+
+ checkExceptionContain(s"call run_clustering(table => '$tableName', op => 'null')")("Invalid value")
+ }
+ }
+
+ test("Test Call run_clustering Procedure Order Strategy") {
+ withTempDir { tmp =>
+ val tableName = generateTableName
+ val basePath = s"${tmp.getCanonicalPath}/$tableName"
+
+ val metadataOpts = Map(
+ HoodieMetadataConfig.ENABLE.key -> "true",
+ HoodieMetadataConfig.ENABLE_METADATA_INDEX_COLUMN_STATS.key -> "true" ,
+ DataSourceReadOptions.ENABLE_DATA_SKIPPING.key() -> "true"
+ )
+
+ val queryOpts = metadataOpts ++ Map(
+ "path" -> basePath,
+ DataSourceReadOptions.QUERY_TYPE.key -> DataSourceReadOptions.QUERY_TYPE_SNAPSHOT_OPT_VAL
+ )
+
+ val dataFilterC2 = EqualTo(AttributeReference("c2", StringType, nullable = false)(), Literal("foo23"))
+ val dataFilterC3 = EqualTo(AttributeReference("c3", StringType, nullable = false)(), Literal("bar23"))
+
+ spark.sql(
+ s"""
+ |create table $tableName (
+ | c1 int,
+ | c2 string,
+ | c3 double
+ |) using hudi
+ | options (
+ | primaryKey = 'c1',
+ | type = 'cow',
+ | hoodie.metadata.enable = 'true',
+ | hoodie.metadata.index.column.stats.enable = 'true',
+ | hoodie.enable.data.skipping = 'true',
+ | hoodie.datasource.write.operation = 'insert'
+ | )
+ | location '$basePath'
+ """.stripMargin)
+
+ val fileNum = 20
+ val numRecords = 400000
Review Comment:
Hey @KnightChess, do we need so many files and records per file for this test? This test currently could cost much time.
--
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
[GitHub] [hudi] leesf commented on a diff in pull request #7304: [HUDI-5278]support more conf to cluster procedure
Posted by GitBox <gi...@apache.org>.
leesf commented on code in PR #7304:
URL: https://github.com/apache/hudi/pull/7304#discussion_r1032735226
##########
hudi-client/hudi-client-common/src/main/java/org/apache/hudi/config/HoodieClusteringConfig.java:
##########
@@ -713,5 +713,57 @@ public static LayoutOptimizationStrategy fromValue(String value) {
return enumValue;
}
+
+ public String getValue() {
+ return value;
+ }
+ }
+
+ public enum ClusteringOperator {
+
+ /**
+ * only schedule the clustering plan
+ */
+ SCHEDULE("schedule"),
+
+ /**
+ * only execute then pending clustering plans
+ */
+ EXECUTE("execute"),
Review Comment:
can we execute specific pending clustering plan instead of all pending clustering plans?
--
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
[GitHub] [hudi] leesf commented on a diff in pull request #7304: [HUDI-5278]support more conf to cluster procedure
Posted by GitBox <gi...@apache.org>.
leesf commented on code in PR #7304:
URL: https://github.com/apache/hudi/pull/7304#discussion_r1032734768
##########
hudi-spark-datasource/hudi-spark/src/test/scala/org/apache/spark/sql/hudi/procedure/TestClusteringProcedure.scala:
##########
@@ -385,4 +395,189 @@ class TestClusteringProcedure extends HoodieSparkProcedureTestBase {
}
}
}
+
+ test("Test Call run_clustering Procedure op") {
+ withTempDir { tmp =>
+ val tableName = generateTableName
+ val basePath = s"${tmp.getCanonicalPath}/$tableName"
+
+ spark.sql(
+ s"""
+ |create table $tableName (
+ | c1 int,
+ | c2 string,
+ | c3 double
+ |) using hudi
+ | options (
+ | primaryKey = 'c1',
+ | type = 'cow',
+ | hoodie.metadata.enable = 'true',
+ | hoodie.metadata.index.column.stats.enable = 'true',
+ | hoodie.enable.data.skipping = 'true',
+ | hoodie.datasource.write.operation = 'insert'
+ | )
+ | location '$basePath'
+ """.stripMargin)
+
+ writeRecords(2, 4, 0, basePath, Map("hoodie.avro.schema.validate"-> "false"))
+ val conf = new Configuration
+ val metaClient = HoodieTableMetaClient.builder.setConf(conf).setBasePath(basePath).build
+ metaClient.reloadActiveTimeline()
+ assert(0 == metaClient.getActiveTimeline.getCompletedReplaceTimeline.getInstants.count())
+ assert(metaClient.getActiveTimeline.filterPendingReplaceTimeline().empty())
+
+ spark.sql(s"call run_clustering(table => '$tableName', op => 'schedule')")
+ metaClient.reloadActiveTimeline()
+ assert(0 == metaClient.getActiveTimeline.getCompletedReplaceTimeline.getInstants.count())
+ assert(1 == metaClient.getActiveTimeline.filterPendingReplaceTimeline().getInstants.count())
+
+ spark.sql(s"call run_clustering(table => '$tableName', op => 'execute')")
+ metaClient.reloadActiveTimeline()
+ assert(1 == metaClient.getActiveTimeline.getCompletedReplaceTimeline.getInstants.count())
+ assert(0 == metaClient.getActiveTimeline.filterPendingReplaceTimeline().getInstants.count())
+
+ spark.sql(s"call run_clustering(table => '$tableName')")
Review Comment:
missing test case for scheduleandexecute and invalid op?
--
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
[GitHub] [hudi] hudi-bot commented on pull request #7304: [HUDI-5278]support more conf to cluster procedure
Posted by GitBox <gi...@apache.org>.
hudi-bot commented on PR #7304:
URL: https://github.com/apache/hudi/pull/7304#issuecomment-1327313104
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "627aedfd1d050348522bcf35fa54cb4672da7f40",
"status" : "PENDING",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13242",
"triggerID" : "627aedfd1d050348522bcf35fa54cb4672da7f40",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* 627aedfd1d050348522bcf35fa54cb4672da7f40 Azure: [PENDING](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13242)
<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
[GitHub] [hudi] KnightChess closed pull request #7304: [HUDI-5278]support more conf to cluster procedure
Posted by GitBox <gi...@apache.org>.
KnightChess closed pull request #7304: [HUDI-5278]support more conf to cluster procedure
URL: https://github.com/apache/hudi/pull/7304
--
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
[GitHub] [hudi] leesf closed pull request #7304: [HUDI-5278]support more conf to cluster procedure
Posted by GitBox <gi...@apache.org>.
leesf closed pull request #7304: [HUDI-5278]support more conf to cluster procedure
URL: https://github.com/apache/hudi/pull/7304
--
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
[GitHub] [hudi] hudi-bot commented on pull request #7304: [HUDI-5278]support more conf to cluster procedure
Posted by GitBox <gi...@apache.org>.
hudi-bot commented on PR #7304:
URL: https://github.com/apache/hudi/pull/7304#issuecomment-1329294430
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "627aedfd1d050348522bcf35fa54cb4672da7f40",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13242",
"triggerID" : "627aedfd1d050348522bcf35fa54cb4672da7f40",
"triggerType" : "PUSH"
}, {
"hash" : "1b87e595a19e383dd5debc48d93652a01a6d92dc",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13244",
"triggerID" : "1b87e595a19e383dd5debc48d93652a01a6d92dc",
"triggerType" : "PUSH"
}, {
"hash" : "7581789edac1fab4607dc41fa0ba918ee302b5a3",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13250",
"triggerID" : "7581789edac1fab4607dc41fa0ba918ee302b5a3",
"triggerType" : "PUSH"
}, {
"hash" : "ed07bdde33ff96390b4288fee79f2bfe10283e78",
"status" : "SUCCESS",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13260",
"triggerID" : "ed07bdde33ff96390b4288fee79f2bfe10283e78",
"triggerType" : "PUSH"
}, {
"hash" : "e839fd6ee20e9586875e5666d9c79e177461ca13",
"status" : "PENDING",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13284",
"triggerID" : "e839fd6ee20e9586875e5666d9c79e177461ca13",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* ed07bdde33ff96390b4288fee79f2bfe10283e78 Azure: [SUCCESS](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13260)
* e839fd6ee20e9586875e5666d9c79e177461ca13 Azure: [PENDING](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13284)
<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
[GitHub] [hudi] leesf commented on a diff in pull request #7304: [HUDI-5278]support more conf to cluster procedure
Posted by GitBox <gi...@apache.org>.
leesf commented on code in PR #7304:
URL: https://github.com/apache/hudi/pull/7304#discussion_r1032735002
##########
hudi-client/hudi-client-common/src/main/java/org/apache/hudi/config/HoodieClusteringConfig.java:
##########
@@ -713,5 +713,48 @@ public static LayoutOptimizationStrategy fromValue(String value) {
return enumValue;
}
+
+ public String getValue() {
+ return value;
+ }
+ }
+
+ public enum ClusteringOperator {
+
+ SCHEDULE("schedule"),
+
+ EXECUTE("execute"),
+
+ SCHEDULEANDEXECUTE("scheduleandexecute");
Review Comment:
+1 rename to SCHEDULE_AND_EXECUTE
--
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
[GitHub] [hudi] KnightChess commented on pull request #7304: [HUDI-5278] Support more conf to cluster procedure
Posted by GitBox <gi...@apache.org>.
KnightChess commented on PR #7304:
URL: https://github.com/apache/hudi/pull/7304#issuecomment-1331540552
@leesf @stream2000 thanks for review
--
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
[GitHub] [hudi] hudi-bot commented on pull request #7304: [HUDI-5278] Support more conf to cluster procedure
Posted by GitBox <gi...@apache.org>.
hudi-bot commented on PR #7304:
URL: https://github.com/apache/hudi/pull/7304#issuecomment-1331232653
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "627aedfd1d050348522bcf35fa54cb4672da7f40",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13242",
"triggerID" : "627aedfd1d050348522bcf35fa54cb4672da7f40",
"triggerType" : "PUSH"
}, {
"hash" : "1b87e595a19e383dd5debc48d93652a01a6d92dc",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13244",
"triggerID" : "1b87e595a19e383dd5debc48d93652a01a6d92dc",
"triggerType" : "PUSH"
}, {
"hash" : "7581789edac1fab4607dc41fa0ba918ee302b5a3",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13250",
"triggerID" : "7581789edac1fab4607dc41fa0ba918ee302b5a3",
"triggerType" : "PUSH"
}, {
"hash" : "ed07bdde33ff96390b4288fee79f2bfe10283e78",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13260",
"triggerID" : "ed07bdde33ff96390b4288fee79f2bfe10283e78",
"triggerType" : "PUSH"
}, {
"hash" : "e839fd6ee20e9586875e5666d9c79e177461ca13",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13284",
"triggerID" : "e839fd6ee20e9586875e5666d9c79e177461ca13",
"triggerType" : "PUSH"
}, {
"hash" : "728191c9f32587415239c87cf89ce3efb6b42fb0",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13301",
"triggerID" : "728191c9f32587415239c87cf89ce3efb6b42fb0",
"triggerType" : "PUSH"
}, {
"hash" : "20a511d8ed5d22d8dd6fda83399b45f8e947d9c7",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "20a511d8ed5d22d8dd6fda83399b45f8e947d9c7",
"triggerType" : "PUSH"
}, {
"hash" : "3f8f9a48fadb41bf0c9e6449be942035e7b2d4d7",
"status" : "FAILURE",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13306",
"triggerID" : "3f8f9a48fadb41bf0c9e6449be942035e7b2d4d7",
"triggerType" : "PUSH"
}, {
"hash" : "3f8f9a48fadb41bf0c9e6449be942035e7b2d4d7",
"status" : "SUCCESS",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13318",
"triggerID" : "1330650108",
"triggerType" : "MANUAL"
} ]
}-->
## CI report:
* 20a511d8ed5d22d8dd6fda83399b45f8e947d9c7 UNKNOWN
* 3f8f9a48fadb41bf0c9e6449be942035e7b2d4d7 Azure: [FAILURE](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13306) Azure: [SUCCESS](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13318)
<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
[GitHub] [hudi] hudi-bot commented on pull request #7304: [HUDI-5278]support more conf to cluster procedure
Posted by GitBox <gi...@apache.org>.
hudi-bot commented on PR #7304:
URL: https://github.com/apache/hudi/pull/7304#issuecomment-1330078160
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "627aedfd1d050348522bcf35fa54cb4672da7f40",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13242",
"triggerID" : "627aedfd1d050348522bcf35fa54cb4672da7f40",
"triggerType" : "PUSH"
}, {
"hash" : "1b87e595a19e383dd5debc48d93652a01a6d92dc",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13244",
"triggerID" : "1b87e595a19e383dd5debc48d93652a01a6d92dc",
"triggerType" : "PUSH"
}, {
"hash" : "7581789edac1fab4607dc41fa0ba918ee302b5a3",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13250",
"triggerID" : "7581789edac1fab4607dc41fa0ba918ee302b5a3",
"triggerType" : "PUSH"
}, {
"hash" : "ed07bdde33ff96390b4288fee79f2bfe10283e78",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13260",
"triggerID" : "ed07bdde33ff96390b4288fee79f2bfe10283e78",
"triggerType" : "PUSH"
}, {
"hash" : "e839fd6ee20e9586875e5666d9c79e177461ca13",
"status" : "SUCCESS",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13284",
"triggerID" : "e839fd6ee20e9586875e5666d9c79e177461ca13",
"triggerType" : "PUSH"
}, {
"hash" : "728191c9f32587415239c87cf89ce3efb6b42fb0",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "728191c9f32587415239c87cf89ce3efb6b42fb0",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* e839fd6ee20e9586875e5666d9c79e177461ca13 Azure: [SUCCESS](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13284)
* 728191c9f32587415239c87cf89ce3efb6b42fb0 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
[GitHub] [hudi] KnightChess commented on pull request #7304: [HUDI-5278]support more conf to cluster procedure
Posted by GitBox <gi...@apache.org>.
KnightChess commented on PR #7304:
URL: https://github.com/apache/hudi/pull/7304#issuecomment-1330074694
@leesf done, and I update the test to resolve Java CI compile eroor, but I still don't know why
--
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
[GitHub] [hudi] hudi-bot commented on pull request #7304: [HUDI-5278]support more conf to cluster procedure
Posted by GitBox <gi...@apache.org>.
hudi-bot commented on PR #7304:
URL: https://github.com/apache/hudi/pull/7304#issuecomment-1328275812
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "627aedfd1d050348522bcf35fa54cb4672da7f40",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13242",
"triggerID" : "627aedfd1d050348522bcf35fa54cb4672da7f40",
"triggerType" : "PUSH"
}, {
"hash" : "1b87e595a19e383dd5debc48d93652a01a6d92dc",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13244",
"triggerID" : "1b87e595a19e383dd5debc48d93652a01a6d92dc",
"triggerType" : "PUSH"
}, {
"hash" : "7581789edac1fab4607dc41fa0ba918ee302b5a3",
"status" : "SUCCESS",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13250",
"triggerID" : "7581789edac1fab4607dc41fa0ba918ee302b5a3",
"triggerType" : "PUSH"
}, {
"hash" : "ed07bdde33ff96390b4288fee79f2bfe10283e78",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "ed07bdde33ff96390b4288fee79f2bfe10283e78",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* 7581789edac1fab4607dc41fa0ba918ee302b5a3 Azure: [SUCCESS](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13250)
* ed07bdde33ff96390b4288fee79f2bfe10283e78 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
[GitHub] [hudi] leesf commented on a diff in pull request #7304: [HUDI-5278]support more conf to cluster procedure
Posted by GitBox <gi...@apache.org>.
leesf commented on code in PR #7304:
URL: https://github.com/apache/hudi/pull/7304#discussion_r1033047892
##########
hudi-spark-datasource/hudi-spark/src/main/scala/org/apache/spark/sql/hudi/command/procedures/RunClusteringProcedure.scala:
##########
@@ -100,24 +111,59 @@ class RunClusteringProcedure extends BaseProcedure
logInfo("No order columns")
}
+ orderStrategy match {
+ case Some(o) =>
+ val strategy = LayoutOptimizationStrategy.fromValue(o.asInstanceOf[String])
+ conf = conf ++ Map(
+ HoodieClusteringConfig.LAYOUT_OPTIMIZE_STRATEGY.key() -> strategy.getValue
+ )
+ case _ =>
+ logInfo("No order strategy")
+ }
+
+ options match {
+ case Some(p) =>
+ val paramPairs = StringUtils.split(p.asInstanceOf[String], ",").asScala
+ paramPairs.foreach{ pair =>
+ val values = StringUtils.split(pair, "=")
+ conf = conf ++ Map(values.get(0) -> values.get(1))
+ }
+ case _ =>
+ logInfo("No options")
+ }
+
// Get all pending clustering instants
var pendingClustering = ClusteringUtils.getAllPendingClusteringPlans(metaClient)
.iterator().asScala.map(_.getLeft.getTimestamp).toSeq.sortBy(f => f)
+
+ pendingClustering = instantsStr match {
+ case Some(inst) =>
+ operator = ClusteringOperator.EXECUTE
Review Comment:
here why we need set operator to EXECUTE but in line#144 we do not need?
--
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
[GitHub] [hudi] hudi-bot commented on pull request #7304: [HUDI-5278]support more conf to cluster procedure
Posted by GitBox <gi...@apache.org>.
hudi-bot commented on PR #7304:
URL: https://github.com/apache/hudi/pull/7304#issuecomment-1328313460
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "627aedfd1d050348522bcf35fa54cb4672da7f40",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13242",
"triggerID" : "627aedfd1d050348522bcf35fa54cb4672da7f40",
"triggerType" : "PUSH"
}, {
"hash" : "1b87e595a19e383dd5debc48d93652a01a6d92dc",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13244",
"triggerID" : "1b87e595a19e383dd5debc48d93652a01a6d92dc",
"triggerType" : "PUSH"
}, {
"hash" : "7581789edac1fab4607dc41fa0ba918ee302b5a3",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13250",
"triggerID" : "7581789edac1fab4607dc41fa0ba918ee302b5a3",
"triggerType" : "PUSH"
}, {
"hash" : "ed07bdde33ff96390b4288fee79f2bfe10283e78",
"status" : "SUCCESS",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13260",
"triggerID" : "ed07bdde33ff96390b4288fee79f2bfe10283e78",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* ed07bdde33ff96390b4288fee79f2bfe10283e78 Azure: [SUCCESS](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13260)
<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
[GitHub] [hudi] KnightChess commented on a diff in pull request #7304: [HUDI-5278]support more conf to cluster procedure
Posted by GitBox <gi...@apache.org>.
KnightChess commented on code in PR #7304:
URL: https://github.com/apache/hudi/pull/7304#discussion_r1033057837
##########
hudi-spark-datasource/hudi-spark/src/main/scala/org/apache/spark/sql/hudi/command/procedures/RunClusteringProcedure.scala:
##########
@@ -100,24 +111,59 @@ class RunClusteringProcedure extends BaseProcedure
logInfo("No order columns")
}
+ orderStrategy match {
+ case Some(o) =>
+ val strategy = LayoutOptimizationStrategy.fromValue(o.asInstanceOf[String])
+ conf = conf ++ Map(
+ HoodieClusteringConfig.LAYOUT_OPTIMIZE_STRATEGY.key() -> strategy.getValue
+ )
+ case _ =>
+ logInfo("No order strategy")
+ }
+
+ options match {
+ case Some(p) =>
+ val paramPairs = StringUtils.split(p.asInstanceOf[String], ",").asScala
+ paramPairs.foreach{ pair =>
+ val values = StringUtils.split(pair, "=")
+ conf = conf ++ Map(values.get(0) -> values.get(1))
+ }
+ case _ =>
+ logInfo("No options")
+ }
+
// Get all pending clustering instants
var pendingClustering = ClusteringUtils.getAllPendingClusteringPlans(metaClient)
.iterator().asScala.map(_.getLeft.getTimestamp).toSeq.sortBy(f => f)
+
+ pendingClustering = instantsStr match {
+ case Some(inst) =>
+ operator = ClusteringOperator.EXECUTE
Review Comment:
Because the user does not specify the instants
--
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
[GitHub] [hudi] leesf commented on a diff in pull request #7304: [HUDI-5278]support more conf to cluster procedure
Posted by GitBox <gi...@apache.org>.
leesf commented on code in PR #7304:
URL: https://github.com/apache/hudi/pull/7304#discussion_r1033598552
##########
hudi-spark-datasource/hudi-spark/src/main/scala/org/apache/spark/sql/hudi/command/procedures/RunClusteringProcedure.scala:
##########
@@ -100,24 +111,59 @@ class RunClusteringProcedure extends BaseProcedure
logInfo("No order columns")
}
+ orderStrategy match {
+ case Some(o) =>
+ val strategy = LayoutOptimizationStrategy.fromValue(o.asInstanceOf[String])
+ conf = conf ++ Map(
+ HoodieClusteringConfig.LAYOUT_OPTIMIZE_STRATEGY.key() -> strategy.getValue
+ )
+ case _ =>
+ logInfo("No order strategy")
+ }
+
+ options match {
+ case Some(p) =>
+ val paramPairs = StringUtils.split(p.asInstanceOf[String], ",").asScala
+ paramPairs.foreach{ pair =>
+ val values = StringUtils.split(pair, "=")
+ conf = conf ++ Map(values.get(0) -> values.get(1))
+ }
+ case _ =>
+ logInfo("No options")
+ }
+
// Get all pending clustering instants
var pendingClustering = ClusteringUtils.getAllPendingClusteringPlans(metaClient)
.iterator().asScala.map(_.getLeft.getTimestamp).toSeq.sortBy(f => f)
+
+ pendingClustering = instantsStr match {
+ case Some(inst) =>
+ operator = ClusteringOperator.EXECUTE
Review Comment:
please put the line `operator = ClusteringOperator.EXECUTE` below the line `logInfo("No op")` and please change `logInfo("No op")` to `logInfo("No op and set it to EXECUTE with instants specified.")`
--
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
[GitHub] [hudi] hudi-bot commented on pull request #7304: [HUDI-5278]support more conf to cluster procedure
Posted by GitBox <gi...@apache.org>.
hudi-bot commented on PR #7304:
URL: https://github.com/apache/hudi/pull/7304#issuecomment-1327393012
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "627aedfd1d050348522bcf35fa54cb4672da7f40",
"status" : "CANCELED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13242",
"triggerID" : "627aedfd1d050348522bcf35fa54cb4672da7f40",
"triggerType" : "PUSH"
}, {
"hash" : "1b87e595a19e383dd5debc48d93652a01a6d92dc",
"status" : "PENDING",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13244",
"triggerID" : "1b87e595a19e383dd5debc48d93652a01a6d92dc",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* 627aedfd1d050348522bcf35fa54cb4672da7f40 Azure: [CANCELED](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13242)
* 1b87e595a19e383dd5debc48d93652a01a6d92dc Azure: [PENDING](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13244)
<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
[GitHub] [hudi] stream2000 commented on a diff in pull request #7304: [HUDI-5278]support more conf to cluster procedure
Posted by GitBox <gi...@apache.org>.
stream2000 commented on code in PR #7304:
URL: https://github.com/apache/hudi/pull/7304#discussion_r1032571122
##########
hudi-spark-datasource/hudi-spark/src/main/scala/org/apache/spark/sql/hudi/command/procedures/RunClusteringProcedure.scala:
##########
@@ -108,36 +138,42 @@ class RunClusteringProcedure extends BaseProcedure
var client: SparkRDDWriteClient[_] = null
try {
client = HoodieCLIUtils.createHoodieClientFromPath(sparkSession, basePath, conf)
- val instantTime = HoodieActiveTimeline.createNewInstantTime
- if (client.scheduleClusteringAtInstant(instantTime, HOption.empty())) {
- pendingClustering ++= Seq(instantTime)
+ if (operator.isSchedule) {
+ val instantTime = HoodieActiveTimeline.createNewInstantTime
+ if (client.scheduleClusteringAtInstant(instantTime, HOption.empty())) {
+ pendingClustering ++= Seq(instantTime)
+ }
}
logInfo(s"Clustering instants to run: ${pendingClustering.mkString(",")}.")
- val startTs = System.currentTimeMillis()
- pendingClustering.foreach(client.cluster(_, true))
- logInfo(s"Finish clustering all the instants: ${pendingClustering.mkString(",")}," +
- s" time cost: ${System.currentTimeMillis() - startTs}ms.")
-
- val clusteringInstants = metaClient.reloadActiveTimeline().getInstants.iterator().asScala
- .filter(p => p.getAction == HoodieTimeline.REPLACE_COMMIT_ACTION && pendingClustering.contains(p.getTimestamp))
- .toSeq
- .sortBy(f => f.getTimestamp)
- .reverse
-
- val clusteringPlans = clusteringInstants.map(instant =>
- ClusteringUtils.getClusteringPlan(metaClient, instant)
- )
-
- if (showInvolvedPartitions) {
- clusteringPlans.map { p =>
- Row(p.get().getLeft.getTimestamp, p.get().getRight.getInputGroups.size(),
- p.get().getLeft.getState.name(), HoodieCLIUtils.extractPartitions(p.get().getRight.getInputGroups.asScala))
+ if (operator.isExecute) {
+ val startTs = System.currentTimeMillis()
+ pendingClustering.foreach(client.cluster(_, true))
+ logInfo(s"Finish clustering all the instants: ${pendingClustering.mkString(",")}," +
+ s" time cost: ${System.currentTimeMillis() - startTs}ms.")
+
+ val clusteringInstants = metaClient.reloadActiveTimeline().getInstants.iterator().asScala
+ .filter(p => p.getAction == HoodieTimeline.REPLACE_COMMIT_ACTION && pendingClustering.contains(p.getTimestamp))
+ .toSeq
+ .sortBy(f => f.getTimestamp)
+ .reverse
+
+ val clusteringPlans = clusteringInstants.map(instant =>
+ ClusteringUtils.getClusteringPlan(metaClient, instant)
+ )
+
+ if (showInvolvedPartitions) {
Review Comment:
Can we also showInvolvedPartitions when operator.isSchedule is set?
--
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
[GitHub] [hudi] hudi-bot commented on pull request #7304: [HUDI-5278]support more conf to cluster procedure
Posted by GitBox <gi...@apache.org>.
hudi-bot commented on PR #7304:
URL: https://github.com/apache/hudi/pull/7304#issuecomment-1327968659
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "627aedfd1d050348522bcf35fa54cb4672da7f40",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13242",
"triggerID" : "627aedfd1d050348522bcf35fa54cb4672da7f40",
"triggerType" : "PUSH"
}, {
"hash" : "1b87e595a19e383dd5debc48d93652a01a6d92dc",
"status" : "SUCCESS",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13244",
"triggerID" : "1b87e595a19e383dd5debc48d93652a01a6d92dc",
"triggerType" : "PUSH"
}, {
"hash" : "7581789edac1fab4607dc41fa0ba918ee302b5a3",
"status" : "PENDING",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13250",
"triggerID" : "7581789edac1fab4607dc41fa0ba918ee302b5a3",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* 1b87e595a19e383dd5debc48d93652a01a6d92dc Azure: [SUCCESS](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13244)
* 7581789edac1fab4607dc41fa0ba918ee302b5a3 Azure: [PENDING](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13250)
<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
[GitHub] [hudi] KnightChess commented on a diff in pull request #7304: [HUDI-5278]support more conf to cluster procedure
Posted by GitBox <gi...@apache.org>.
KnightChess commented on code in PR #7304:
URL: https://github.com/apache/hudi/pull/7304#discussion_r1032930294
##########
hudi-spark-datasource/hudi-spark/src/test/scala/org/apache/spark/sql/hudi/procedure/TestClusteringProcedure.scala:
##########
@@ -385,4 +395,189 @@ class TestClusteringProcedure extends HoodieSparkProcedureTestBase {
}
}
}
+
+ test("Test Call run_clustering Procedure op") {
+ withTempDir { tmp =>
+ val tableName = generateTableName
+ val basePath = s"${tmp.getCanonicalPath}/$tableName"
+
+ spark.sql(
+ s"""
+ |create table $tableName (
+ | c1 int,
+ | c2 string,
+ | c3 double
+ |) using hudi
+ | options (
+ | primaryKey = 'c1',
+ | type = 'cow',
+ | hoodie.metadata.enable = 'true',
+ | hoodie.metadata.index.column.stats.enable = 'true',
+ | hoodie.enable.data.skipping = 'true',
+ | hoodie.datasource.write.operation = 'insert'
+ | )
+ | location '$basePath'
+ """.stripMargin)
+
+ writeRecords(2, 4, 0, basePath, Map("hoodie.avro.schema.validate"-> "false"))
+ val conf = new Configuration
+ val metaClient = HoodieTableMetaClient.builder.setConf(conf).setBasePath(basePath).build
+ metaClient.reloadActiveTimeline()
+ assert(0 == metaClient.getActiveTimeline.getCompletedReplaceTimeline.getInstants.count())
+ assert(metaClient.getActiveTimeline.filterPendingReplaceTimeline().empty())
+
+ spark.sql(s"call run_clustering(table => '$tableName', op => 'schedule')")
+ metaClient.reloadActiveTimeline()
+ assert(0 == metaClient.getActiveTimeline.getCompletedReplaceTimeline.getInstants.count())
+ assert(1 == metaClient.getActiveTimeline.filterPendingReplaceTimeline().getInstants.count())
+
+ spark.sql(s"call run_clustering(table => '$tableName', op => 'execute')")
+ metaClient.reloadActiveTimeline()
+ assert(1 == metaClient.getActiveTimeline.getCompletedReplaceTimeline.getInstants.count())
+ assert(0 == metaClient.getActiveTimeline.filterPendingReplaceTimeline().getInstants.count())
+
+ spark.sql(s"call run_clustering(table => '$tableName')")
Review Comment:
scheduleandexecute is default, I will add invalid op case
--
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
[GitHub] [hudi] KnightChess commented on a diff in pull request #7304: [HUDI-5278]support more conf to cluster procedure
Posted by GitBox <gi...@apache.org>.
KnightChess commented on code in PR #7304:
URL: https://github.com/apache/hudi/pull/7304#discussion_r1032725208
##########
hudi-client/hudi-client-common/src/main/java/org/apache/hudi/config/HoodieClusteringConfig.java:
##########
@@ -713,5 +713,48 @@ public static LayoutOptimizationStrategy fromValue(String value) {
return enumValue;
}
+
+ public String getValue() {
+ return value;
+ }
+ }
+
+ public enum ClusteringOperator {
+
+ SCHEDULE("schedule"),
+
+ EXECUTE("execute"),
+
+ SCHEDULEANDEXECUTE("scheduleandexecute");
+
+ private static final Map<String, ClusteringOperator> VALUE_TO_ENUM_MAP =
+ TypeUtils.getValueToEnumMap(ClusteringOperator.class, e -> e.value);
+
+ private final String value;
+
+ ClusteringOperator(String value) {
+ this.value = value;
+ }
+
+ @Nonnull
+ public static ClusteringOperator fromValue(String value) {
+ ClusteringOperator enumValue = VALUE_TO_ENUM_MAP.get(value);
+ if (enumValue == null) {
+ throw new HoodieException(String.format("Invalid value (%s)", value));
+ }
+ return enumValue;
+ }
+
+ public boolean isSchedule() {
Review Comment:
I don't think it is necessary, in developer perspective, I will add annotation code, and in user perspective, there will be a use docs to desc each enum value.
--
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
[GitHub] [hudi] KnightChess commented on pull request #7304: [HUDI-5278]support more conf to cluster procedure
Posted by GitBox <gi...@apache.org>.
KnightChess commented on PR #7304:
URL: https://github.com/apache/hudi/pull/7304#issuecomment-1330203440
Don't merge first, I meet some question in cluster
--
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
[GitHub] [hudi] hudi-bot commented on pull request #7304: [HUDI-5278] Support more conf to cluster procedure
Posted by GitBox <gi...@apache.org>.
hudi-bot commented on PR #7304:
URL: https://github.com/apache/hudi/pull/7304#issuecomment-1330655131
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "627aedfd1d050348522bcf35fa54cb4672da7f40",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13242",
"triggerID" : "627aedfd1d050348522bcf35fa54cb4672da7f40",
"triggerType" : "PUSH"
}, {
"hash" : "1b87e595a19e383dd5debc48d93652a01a6d92dc",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13244",
"triggerID" : "1b87e595a19e383dd5debc48d93652a01a6d92dc",
"triggerType" : "PUSH"
}, {
"hash" : "7581789edac1fab4607dc41fa0ba918ee302b5a3",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13250",
"triggerID" : "7581789edac1fab4607dc41fa0ba918ee302b5a3",
"triggerType" : "PUSH"
}, {
"hash" : "ed07bdde33ff96390b4288fee79f2bfe10283e78",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13260",
"triggerID" : "ed07bdde33ff96390b4288fee79f2bfe10283e78",
"triggerType" : "PUSH"
}, {
"hash" : "e839fd6ee20e9586875e5666d9c79e177461ca13",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13284",
"triggerID" : "e839fd6ee20e9586875e5666d9c79e177461ca13",
"triggerType" : "PUSH"
}, {
"hash" : "728191c9f32587415239c87cf89ce3efb6b42fb0",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13301",
"triggerID" : "728191c9f32587415239c87cf89ce3efb6b42fb0",
"triggerType" : "PUSH"
}, {
"hash" : "20a511d8ed5d22d8dd6fda83399b45f8e947d9c7",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "20a511d8ed5d22d8dd6fda83399b45f8e947d9c7",
"triggerType" : "PUSH"
}, {
"hash" : "3f8f9a48fadb41bf0c9e6449be942035e7b2d4d7",
"status" : "FAILURE",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13306",
"triggerID" : "3f8f9a48fadb41bf0c9e6449be942035e7b2d4d7",
"triggerType" : "PUSH"
}, {
"hash" : "3f8f9a48fadb41bf0c9e6449be942035e7b2d4d7",
"status" : "PENDING",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13318",
"triggerID" : "1330650108",
"triggerType" : "MANUAL"
} ]
}-->
## CI report:
* 20a511d8ed5d22d8dd6fda83399b45f8e947d9c7 UNKNOWN
* 3f8f9a48fadb41bf0c9e6449be942035e7b2d4d7 Azure: [FAILURE](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13306) Azure: [PENDING](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=13318)
<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
[GitHub] [hudi] KnightChess commented on pull request #7304: [HUDI-5278]support more conf to cluster procedure
Posted by GitBox <gi...@apache.org>.
KnightChess commented on PR #7304:
URL: https://github.com/apache/hudi/pull/7304#issuecomment-1330087868
I will reopen ci after #7319 be merged
--
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