You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hudi.apache.org by "xuzifu666 (via GitHub)" <gi...@apache.org> on 2023/11/05 14:19:06 UTC
[PR] [HUDI-7031] ShowProcedures show add limit syntax to keep the same [hudi]
xuzifu666 opened a new pull request, #9988:
URL: https://github.com/apache/hudi/pull/9988
### Change Logs
like ShowArchivedCommitsProcedure both contains limit to aviod to much status return to user,keep other commands contains it
### Impact
none
### Risk level (write none, low medium or high below)
none
### Documentation Update
_Describe any necessary documentation update if there is any new feature, config, or user-facing change_
- _The config description must be updated if new configs are added or the default value of the configs are changed_
- _Any new feature or user-facing change requires updating the Hudi website. Please create a Jira ticket, attach the
ticket number here and follow the [instruction](https://hudi.apache.org/contribute/developer-setup#website) to make
changes to the website._
### Contributor's checklist
- [ ] Read through [contributor's guide](https://hudi.apache.org/contribute/how-to-contribute)
- [ ] Change Logs and Impact were stated clearly
- [ ] Adequate tests were added if applicable
- [ ] CI passed
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [HUDI-7032] ShowProcedures show add limit syntax to keep the same [hudi]
Posted by "hudi-bot (via GitHub)" <gi...@apache.org>.
hudi-bot commented on PR #9988:
URL: https://github.com/apache/hudi/pull/9988#issuecomment-1798301178
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "adbf574637f49d946aae92f942112262174b9305",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=20683",
"triggerID" : "adbf574637f49d946aae92f942112262174b9305",
"triggerType" : "PUSH"
}, {
"hash" : "f902c8aea336c40247e94a7397fd371668ec15be",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=20694",
"triggerID" : "f902c8aea336c40247e94a7397fd371668ec15be",
"triggerType" : "PUSH"
}, {
"hash" : "a67d829811e63b495dff8cb13f097d9c7fdff796",
"status" : "FAILURE",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=20696",
"triggerID" : "a67d829811e63b495dff8cb13f097d9c7fdff796",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* a67d829811e63b495dff8cb13f097d9c7fdff796 Azure: [FAILURE](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=20696)
<details>
<summary>Bot commands</summary>
@hudi-bot supports the following commands:
- `@hudi-bot run azure` re-run the last Azure build
</details>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [HUDI-7032] ShowProcedures show add limit syntax to keep the same [hudi]
Posted by "hudi-bot (via GitHub)" <gi...@apache.org>.
hudi-bot commented on PR #9988:
URL: https://github.com/apache/hudi/pull/9988#issuecomment-1805947491
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "adbf574637f49d946aae92f942112262174b9305",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=20683",
"triggerID" : "adbf574637f49d946aae92f942112262174b9305",
"triggerType" : "PUSH"
}, {
"hash" : "f902c8aea336c40247e94a7397fd371668ec15be",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=20694",
"triggerID" : "f902c8aea336c40247e94a7397fd371668ec15be",
"triggerType" : "PUSH"
}, {
"hash" : "a67d829811e63b495dff8cb13f097d9c7fdff796",
"status" : "FAILURE",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=20696",
"triggerID" : "a67d829811e63b495dff8cb13f097d9c7fdff796",
"triggerType" : "PUSH"
}, {
"hash" : "e1117ecdb739404096a4c9d7623f53e3ebc9f739",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "e1117ecdb739404096a4c9d7623f53e3ebc9f739",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* a67d829811e63b495dff8cb13f097d9c7fdff796 Azure: [FAILURE](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=20696)
* e1117ecdb739404096a4c9d7623f53e3ebc9f739 UNKNOWN
<details>
<summary>Bot commands</summary>
@hudi-bot supports the following commands:
- `@hudi-bot run azure` re-run the last Azure build
</details>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [HUDI-7032] ShowProcedures show add limit syntax to keep the same [hudi]
Posted by "xuzifu666 (via GitHub)" <gi...@apache.org>.
xuzifu666 commented on code in PR #9988:
URL: https://github.com/apache/hudi/pull/9988#discussion_r1382720887
##########
hudi-spark-datasource/hudi-spark/src/main/scala/org/apache/spark/sql/hudi/command/procedures/ShowSavepointsProcedure.scala:
##########
@@ -54,7 +56,11 @@ class ShowSavepointsProcedure extends BaseProcedure with ProcedureBuilder {
val commits: util.List[HoodieInstant] = timeline.getReverseOrderedInstants.collect(Collectors.toList[HoodieInstant])
if (commits.isEmpty) Seq.empty[Row] else {
- commits.toArray.map(instant => instant.asInstanceOf[HoodieInstant].getTimestamp).map(p => Row(p)).toSeq
+ if (limit.isDefined) {
+ commits.stream().limit(limit.get.asInstanceOf[Int]).toArray.map(instant => instant.asInstanceOf[HoodieInstant].getTimestamp).map(p => Row(p)).toSeq
Review Comment:
ok,I would change it and add ut for it
##########
hudi-spark-datasource/hudi-spark/src/main/scala/org/apache/spark/sql/hudi/command/procedures/ShowSavepointsProcedure.scala:
##########
@@ -54,7 +56,11 @@ class ShowSavepointsProcedure extends BaseProcedure with ProcedureBuilder {
val commits: util.List[HoodieInstant] = timeline.getReverseOrderedInstants.collect(Collectors.toList[HoodieInstant])
if (commits.isEmpty) Seq.empty[Row] else {
- commits.toArray.map(instant => instant.asInstanceOf[HoodieInstant].getTimestamp).map(p => Row(p)).toSeq
+ if (limit.isDefined) {
+ commits.stream().limit(limit.get.asInstanceOf[Int]).toArray.map(instant => instant.asInstanceOf[HoodieInstant].getTimestamp).map(p => Row(p)).toSeq
Review Comment:
ok,I would change it and add ut for it
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [HUDI-7032] ShowProcedures show add limit syntax to keep the same [hudi]
Posted by "xuzifu666 (via GitHub)" <gi...@apache.org>.
xuzifu666 closed pull request #9988: [HUDI-7032] ShowProcedures show add limit syntax to keep the same
URL: https://github.com/apache/hudi/pull/9988
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [HUDI-7032] ShowProcedures show add limit syntax to keep the same [hudi]
Posted by "hudi-bot (via GitHub)" <gi...@apache.org>.
hudi-bot commented on PR #9988:
URL: https://github.com/apache/hudi/pull/9988#issuecomment-1807002318
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "adbf574637f49d946aae92f942112262174b9305",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=20683",
"triggerID" : "adbf574637f49d946aae92f942112262174b9305",
"triggerType" : "PUSH"
}, {
"hash" : "f902c8aea336c40247e94a7397fd371668ec15be",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=20694",
"triggerID" : "f902c8aea336c40247e94a7397fd371668ec15be",
"triggerType" : "PUSH"
}, {
"hash" : "a67d829811e63b495dff8cb13f097d9c7fdff796",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=20696",
"triggerID" : "a67d829811e63b495dff8cb13f097d9c7fdff796",
"triggerType" : "PUSH"
}, {
"hash" : "e1117ecdb739404096a4c9d7623f53e3ebc9f739",
"status" : "FAILURE",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=20824",
"triggerID" : "e1117ecdb739404096a4c9d7623f53e3ebc9f739",
"triggerType" : "PUSH"
}, {
"hash" : "549c7c256c2ae7b261b78154f7ed2d3983d62022",
"status" : "PENDING",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=20860",
"triggerID" : "549c7c256c2ae7b261b78154f7ed2d3983d62022",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* e1117ecdb739404096a4c9d7623f53e3ebc9f739 Azure: [FAILURE](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=20824)
* 549c7c256c2ae7b261b78154f7ed2d3983d62022 Azure: [PENDING](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=20860)
<details>
<summary>Bot commands</summary>
@hudi-bot supports the following commands:
- `@hudi-bot run azure` re-run the last Azure build
</details>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [HUDI-7032] ShowProcedures show add limit syntax [hudi]
Posted by "xuzifu666 (via GitHub)" <gi...@apache.org>.
xuzifu666 commented on PR #9988:
URL: https://github.com/apache/hudi/pull/9988#issuecomment-1807448227
> @xuzifu666 Please remember also to update the doc of the website.
ok,I would add it to websit doc @danny0405
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [HUDI-7032] ShowProcedures show add limit syntax to keep the same [hudi]
Posted by "xuzifu666 (via GitHub)" <gi...@apache.org>.
xuzifu666 commented on PR #9988:
URL: https://github.com/apache/hudi/pull/9988#issuecomment-1793950894
cc @danny0405
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [HUDI-7032] ShowProcedures show add limit syntax to keep the same [hudi]
Posted by "danny0405 (via GitHub)" <gi...@apache.org>.
danny0405 commented on code in PR #9988:
URL: https://github.com/apache/hudi/pull/9988#discussion_r1382716912
##########
hudi-spark-datasource/hudi-spark/src/main/scala/org/apache/spark/sql/hudi/command/procedures/ShowSavepointsProcedure.scala:
##########
@@ -54,7 +56,11 @@ class ShowSavepointsProcedure extends BaseProcedure with ProcedureBuilder {
val commits: util.List[HoodieInstant] = timeline.getReverseOrderedInstants.collect(Collectors.toList[HoodieInstant])
if (commits.isEmpty) Seq.empty[Row] else {
- commits.toArray.map(instant => instant.asInstanceOf[HoodieInstant].getTimestamp).map(p => Row(p)).toSeq
+ if (limit.isDefined) {
+ commits.stream().limit(limit.get.asInstanceOf[Int]).toArray.map(instant => instant.asInstanceOf[HoodieInstant].getTimestamp).map(p => Row(p)).toSeq
Review Comment:
Can we abstract out the limit function into a common logic in parent class, the parent class is responsible to limit and collect the data frame, and can we add a test for it.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [HUDI-7032] ShowProcedures show add limit syntax to keep the same [hudi]
Posted by "hudi-bot (via GitHub)" <gi...@apache.org>.
hudi-bot commented on PR #9988:
URL: https://github.com/apache/hudi/pull/9988#issuecomment-1806044278
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "adbf574637f49d946aae92f942112262174b9305",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=20683",
"triggerID" : "adbf574637f49d946aae92f942112262174b9305",
"triggerType" : "PUSH"
}, {
"hash" : "f902c8aea336c40247e94a7397fd371668ec15be",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=20694",
"triggerID" : "f902c8aea336c40247e94a7397fd371668ec15be",
"triggerType" : "PUSH"
}, {
"hash" : "a67d829811e63b495dff8cb13f097d9c7fdff796",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=20696",
"triggerID" : "a67d829811e63b495dff8cb13f097d9c7fdff796",
"triggerType" : "PUSH"
}, {
"hash" : "e1117ecdb739404096a4c9d7623f53e3ebc9f739",
"status" : "FAILURE",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=20824",
"triggerID" : "e1117ecdb739404096a4c9d7623f53e3ebc9f739",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* e1117ecdb739404096a4c9d7623f53e3ebc9f739 Azure: [FAILURE](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=20824)
<details>
<summary>Bot commands</summary>
@hudi-bot supports the following commands:
- `@hudi-bot run azure` re-run the last Azure build
</details>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [HUDI-7032] ShowProcedures show add limit syntax to keep the same [hudi]
Posted by "xuzifu666 (via GitHub)" <gi...@apache.org>.
xuzifu666 commented on code in PR #9988:
URL: https://github.com/apache/hudi/pull/9988#discussion_r1386071295
##########
hudi-spark-datasource/hudi-spark/src/main/scala/org/apache/spark/sql/hudi/command/procedures/ShowSavepointsProcedure.scala:
##########
@@ -54,7 +56,11 @@ class ShowSavepointsProcedure extends BaseProcedure with ProcedureBuilder {
val commits: util.List[HoodieInstant] = timeline.getReverseOrderedInstants.collect(Collectors.toList[HoodieInstant])
if (commits.isEmpty) Seq.empty[Row] else {
- commits.toArray.map(instant => instant.asInstanceOf[HoodieInstant].getTimestamp).map(p => Row(p)).toSeq
+ if (limit.isDefined) {
+ commits.stream().limit(limit.get.asInstanceOf[Int]).toArray.map(instant => instant.asInstanceOf[HoodieInstant].getTimestamp).map(p => Row(p)).toSeq
Review Comment:
try to construnct a 'limit and collect' method in parent class,but had 2 problem to face:
1. parameter can be list or rdd,cannot keep it the same;
2. some list need handle singe logic,some not need,this cause to need implement it in subclass
@danny0405 to keep the low risk and high compatibility,had some other suggesstions please?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [HUDI-7032] ShowProcedures show add limit syntax to keep the same [hudi]
Posted by "xuzifu666 (via GitHub)" <gi...@apache.org>.
xuzifu666 commented on code in PR #9988:
URL: https://github.com/apache/hudi/pull/9988#discussion_r1384544659
##########
hudi-spark-datasource/hudi-spark/src/main/scala/org/apache/spark/sql/hudi/command/procedures/ShowSavepointsProcedure.scala:
##########
@@ -54,7 +56,11 @@ class ShowSavepointsProcedure extends BaseProcedure with ProcedureBuilder {
val commits: util.List[HoodieInstant] = timeline.getReverseOrderedInstants.collect(Collectors.toList[HoodieInstant])
if (commits.isEmpty) Seq.empty[Row] else {
- commits.toArray.map(instant => instant.asInstanceOf[HoodieInstant].getTimestamp).map(p => Row(p)).toSeq
+ if (limit.isDefined) {
+ commits.stream().limit(limit.get.asInstanceOf[Int]).toArray.map(instant => instant.asInstanceOf[HoodieInstant].getTimestamp).map(p => Row(p)).toSeq
Review Comment:
I try to refactor the code for abstracting out limit in parent class,but seems not fit,because would get parameter from sub-class and cannot confirm the order of limit,so I add ut first. at the same time, show procedure commands are not much.
##########
hudi-spark-datasource/hudi-spark/src/main/scala/org/apache/spark/sql/hudi/command/procedures/ShowSavepointsProcedure.scala:
##########
@@ -54,7 +56,11 @@ class ShowSavepointsProcedure extends BaseProcedure with ProcedureBuilder {
val commits: util.List[HoodieInstant] = timeline.getReverseOrderedInstants.collect(Collectors.toList[HoodieInstant])
if (commits.isEmpty) Seq.empty[Row] else {
- commits.toArray.map(instant => instant.asInstanceOf[HoodieInstant].getTimestamp).map(p => Row(p)).toSeq
+ if (limit.isDefined) {
+ commits.stream().limit(limit.get.asInstanceOf[Int]).toArray.map(instant => instant.asInstanceOf[HoodieInstant].getTimestamp).map(p => Row(p)).toSeq
Review Comment:
I try to refactor the code for abstracting out limit in parent class,but seems not fit,because would get parameter from sub-class and cannot confirm the order of limit,so I add ut first. at the same time, show procedure commands are not much.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [HUDI-7032] ShowProcedures show add limit syntax to keep the same [hudi]
Posted by "hudi-bot (via GitHub)" <gi...@apache.org>.
hudi-bot commented on PR #9988:
URL: https://github.com/apache/hudi/pull/9988#issuecomment-1798094566
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "adbf574637f49d946aae92f942112262174b9305",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=20683",
"triggerID" : "adbf574637f49d946aae92f942112262174b9305",
"triggerType" : "PUSH"
}, {
"hash" : "f902c8aea336c40247e94a7397fd371668ec15be",
"status" : "FAILURE",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=20694",
"triggerID" : "f902c8aea336c40247e94a7397fd371668ec15be",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* f902c8aea336c40247e94a7397fd371668ec15be Azure: [FAILURE](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=20694)
<details>
<summary>Bot commands</summary>
@hudi-bot supports the following commands:
- `@hudi-bot run azure` re-run the last Azure build
</details>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [HUDI-7032] ShowProcedures show add limit syntax to keep the same [hudi]
Posted by "hudi-bot (via GitHub)" <gi...@apache.org>.
hudi-bot commented on PR #9988:
URL: https://github.com/apache/hudi/pull/9988#issuecomment-1798107669
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "adbf574637f49d946aae92f942112262174b9305",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=20683",
"triggerID" : "adbf574637f49d946aae92f942112262174b9305",
"triggerType" : "PUSH"
}, {
"hash" : "f902c8aea336c40247e94a7397fd371668ec15be",
"status" : "FAILURE",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=20694",
"triggerID" : "f902c8aea336c40247e94a7397fd371668ec15be",
"triggerType" : "PUSH"
}, {
"hash" : "a67d829811e63b495dff8cb13f097d9c7fdff796",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "a67d829811e63b495dff8cb13f097d9c7fdff796",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* f902c8aea336c40247e94a7397fd371668ec15be Azure: [FAILURE](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=20694)
* a67d829811e63b495dff8cb13f097d9c7fdff796 UNKNOWN
<details>
<summary>Bot commands</summary>
@hudi-bot supports the following commands:
- `@hudi-bot run azure` re-run the last Azure build
</details>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [HUDI-7032] ShowProcedures show add limit syntax to keep the same [hudi]
Posted by "xuzifu666 (via GitHub)" <gi...@apache.org>.
xuzifu666 commented on code in PR #9988:
URL: https://github.com/apache/hudi/pull/9988#discussion_r1386071295
##########
hudi-spark-datasource/hudi-spark/src/main/scala/org/apache/spark/sql/hudi/command/procedures/ShowSavepointsProcedure.scala:
##########
@@ -54,7 +56,11 @@ class ShowSavepointsProcedure extends BaseProcedure with ProcedureBuilder {
val commits: util.List[HoodieInstant] = timeline.getReverseOrderedInstants.collect(Collectors.toList[HoodieInstant])
if (commits.isEmpty) Seq.empty[Row] else {
- commits.toArray.map(instant => instant.asInstanceOf[HoodieInstant].getTimestamp).map(p => Row(p)).toSeq
+ if (limit.isDefined) {
+ commits.stream().limit(limit.get.asInstanceOf[Int]).toArray.map(instant => instant.asInstanceOf[HoodieInstant].getTimestamp).map(p => Row(p)).toSeq
Review Comment:
try to construnct a 'limit and collect' method in parent class,but had 2 problem to face:
1. parameter can be list or rdd,cannot keep it the same;
2. some list need handle singe logic,some not need,this cause to need implement it in subclass
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [HUDI-7032] ShowProcedures show add limit syntax [hudi]
Posted by "danny0405 (via GitHub)" <gi...@apache.org>.
danny0405 merged PR #9988:
URL: https://github.com/apache/hudi/pull/9988
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [HUDI-7032] ShowProcedures show add limit syntax to keep the same [hudi]
Posted by "xuzifu666 (via GitHub)" <gi...@apache.org>.
xuzifu666 commented on code in PR #9988:
URL: https://github.com/apache/hudi/pull/9988#discussion_r1386071295
##########
hudi-spark-datasource/hudi-spark/src/main/scala/org/apache/spark/sql/hudi/command/procedures/ShowSavepointsProcedure.scala:
##########
@@ -54,7 +56,11 @@ class ShowSavepointsProcedure extends BaseProcedure with ProcedureBuilder {
val commits: util.List[HoodieInstant] = timeline.getReverseOrderedInstants.collect(Collectors.toList[HoodieInstant])
if (commits.isEmpty) Seq.empty[Row] else {
- commits.toArray.map(instant => instant.asInstanceOf[HoodieInstant].getTimestamp).map(p => Row(p)).toSeq
+ if (limit.isDefined) {
+ commits.stream().limit(limit.get.asInstanceOf[Int]).toArray.map(instant => instant.asInstanceOf[HoodieInstant].getTimestamp).map(p => Row(p)).toSeq
Review Comment:
try to construnct a 'limit and collect' method in parent class,but had 2 problem to face:
##########
hudi-spark-datasource/hudi-spark/src/main/scala/org/apache/spark/sql/hudi/command/procedures/ShowSavepointsProcedure.scala:
##########
@@ -54,7 +56,11 @@ class ShowSavepointsProcedure extends BaseProcedure with ProcedureBuilder {
val commits: util.List[HoodieInstant] = timeline.getReverseOrderedInstants.collect(Collectors.toList[HoodieInstant])
if (commits.isEmpty) Seq.empty[Row] else {
- commits.toArray.map(instant => instant.asInstanceOf[HoodieInstant].getTimestamp).map(p => Row(p)).toSeq
+ if (limit.isDefined) {
+ commits.stream().limit(limit.get.asInstanceOf[Int]).toArray.map(instant => instant.asInstanceOf[HoodieInstant].getTimestamp).map(p => Row(p)).toSeq
Review Comment:
try to construnct a 'limit and collect' method in parent class,but had 2 problem to face:
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [HUDI-7032] ShowProcedures show add limit syntax to keep the same [hudi]
Posted by "xuzifu666 (via GitHub)" <gi...@apache.org>.
xuzifu666 commented on code in PR #9988:
URL: https://github.com/apache/hudi/pull/9988#discussion_r1389518260
##########
hudi-spark-datasource/hudi-spark/src/main/scala/org/apache/spark/sql/hudi/command/procedures/ShowSavepointsProcedure.scala:
##########
@@ -54,7 +56,11 @@ class ShowSavepointsProcedure extends BaseProcedure with ProcedureBuilder {
val commits: util.List[HoodieInstant] = timeline.getReverseOrderedInstants.collect(Collectors.toList[HoodieInstant])
if (commits.isEmpty) Seq.empty[Row] else {
- commits.toArray.map(instant => instant.asInstanceOf[HoodieInstant].getTimestamp).map(p => Row(p)).toSeq
+ if (limit.isDefined) {
+ commits.stream().limit(limit.get.asInstanceOf[Int]).toArray.map(instant => instant.asInstanceOf[HoodieInstant].getTimestamp).map(p => Row(p)).toSeq
Review Comment:
I had remove some use less procedures and uts, ptal @danny0405
##########
hudi-spark-datasource/hudi-spark/src/main/scala/org/apache/spark/sql/hudi/command/procedures/ShowSavepointsProcedure.scala:
##########
@@ -54,7 +56,11 @@ class ShowSavepointsProcedure extends BaseProcedure with ProcedureBuilder {
val commits: util.List[HoodieInstant] = timeline.getReverseOrderedInstants.collect(Collectors.toList[HoodieInstant])
if (commits.isEmpty) Seq.empty[Row] else {
- commits.toArray.map(instant => instant.asInstanceOf[HoodieInstant].getTimestamp).map(p => Row(p)).toSeq
+ if (limit.isDefined) {
+ commits.stream().limit(limit.get.asInstanceOf[Int]).toArray.map(instant => instant.asInstanceOf[HoodieInstant].getTimestamp).map(p => Row(p)).toSeq
Review Comment:
I had remove some use less procedures and uts, ptal @danny0405
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [HUDI-7032] ShowProcedures show add limit syntax to keep the same [hudi]
Posted by "hudi-bot (via GitHub)" <gi...@apache.org>.
hudi-bot commented on PR #9988:
URL: https://github.com/apache/hudi/pull/9988#issuecomment-1805959112
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "adbf574637f49d946aae92f942112262174b9305",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=20683",
"triggerID" : "adbf574637f49d946aae92f942112262174b9305",
"triggerType" : "PUSH"
}, {
"hash" : "f902c8aea336c40247e94a7397fd371668ec15be",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=20694",
"triggerID" : "f902c8aea336c40247e94a7397fd371668ec15be",
"triggerType" : "PUSH"
}, {
"hash" : "a67d829811e63b495dff8cb13f097d9c7fdff796",
"status" : "FAILURE",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=20696",
"triggerID" : "a67d829811e63b495dff8cb13f097d9c7fdff796",
"triggerType" : "PUSH"
}, {
"hash" : "e1117ecdb739404096a4c9d7623f53e3ebc9f739",
"status" : "PENDING",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=20824",
"triggerID" : "e1117ecdb739404096a4c9d7623f53e3ebc9f739",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* a67d829811e63b495dff8cb13f097d9c7fdff796 Azure: [FAILURE](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=20696)
* e1117ecdb739404096a4c9d7623f53e3ebc9f739 Azure: [PENDING](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=20824)
<details>
<summary>Bot commands</summary>
@hudi-bot supports the following commands:
- `@hudi-bot run azure` re-run the last Azure build
</details>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [HUDI-7032] ShowProcedures show add limit syntax to keep the same [hudi]
Posted by "hudi-bot (via GitHub)" <gi...@apache.org>.
hudi-bot commented on PR #9988:
URL: https://github.com/apache/hudi/pull/9988#issuecomment-1797940302
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "adbf574637f49d946aae92f942112262174b9305",
"status" : "FAILURE",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=20683",
"triggerID" : "adbf574637f49d946aae92f942112262174b9305",
"triggerType" : "PUSH"
}, {
"hash" : "f902c8aea336c40247e94a7397fd371668ec15be",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "f902c8aea336c40247e94a7397fd371668ec15be",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* adbf574637f49d946aae92f942112262174b9305 Azure: [FAILURE](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=20683)
* f902c8aea336c40247e94a7397fd371668ec15be UNKNOWN
<details>
<summary>Bot commands</summary>
@hudi-bot supports the following commands:
- `@hudi-bot run azure` re-run the last Azure build
</details>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [HUDI-7032] ShowProcedures show add limit syntax [hudi]
Posted by "danny0405 (via GitHub)" <gi...@apache.org>.
danny0405 commented on PR #9988:
URL: https://github.com/apache/hudi/pull/9988#issuecomment-1807438573
@xuzifu666 Please remember also to update the doc of the website.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [HUDI-7032] ShowProcedures show add limit syntax to keep the same [hudi]
Posted by "hudi-bot (via GitHub)" <gi...@apache.org>.
hudi-bot commented on PR #9988:
URL: https://github.com/apache/hudi/pull/9988#issuecomment-1807010028
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "adbf574637f49d946aae92f942112262174b9305",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=20683",
"triggerID" : "adbf574637f49d946aae92f942112262174b9305",
"triggerType" : "PUSH"
}, {
"hash" : "f902c8aea336c40247e94a7397fd371668ec15be",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=20694",
"triggerID" : "f902c8aea336c40247e94a7397fd371668ec15be",
"triggerType" : "PUSH"
}, {
"hash" : "a67d829811e63b495dff8cb13f097d9c7fdff796",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=20696",
"triggerID" : "a67d829811e63b495dff8cb13f097d9c7fdff796",
"triggerType" : "PUSH"
}, {
"hash" : "e1117ecdb739404096a4c9d7623f53e3ebc9f739",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=20824",
"triggerID" : "e1117ecdb739404096a4c9d7623f53e3ebc9f739",
"triggerType" : "PUSH"
}, {
"hash" : "549c7c256c2ae7b261b78154f7ed2d3983d62022",
"status" : "FAILURE",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=20860",
"triggerID" : "549c7c256c2ae7b261b78154f7ed2d3983d62022",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* 549c7c256c2ae7b261b78154f7ed2d3983d62022 Azure: [FAILURE](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=20860)
<details>
<summary>Bot commands</summary>
@hudi-bot supports the following commands:
- `@hudi-bot run azure` re-run the last Azure build
</details>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [HUDI-7032] ShowProcedures show add limit syntax to keep the same [hudi]
Posted by "xuzifu666 (via GitHub)" <gi...@apache.org>.
xuzifu666 commented on code in PR #9988:
URL: https://github.com/apache/hudi/pull/9988#discussion_r1390327687
##########
hudi-spark-datasource/hudi-spark/src/main/scala/org/apache/spark/sql/hudi/command/procedures/ShowBootstrapPartitionsProcedure.scala:
##########
@@ -42,14 +43,19 @@ class ShowBootstrapPartitionsProcedure extends BaseProcedure with ProcedureBuild
super.checkArgs(PARAMETERS, args)
val tableName = getArgValueOrDefault(args, PARAMETERS(0))
+ val limit = getArgValueOrDefault(args, PARAMETERS(1))
val basePath: String = getBasePath(tableName)
val metaClient = HoodieTableMetaClient.builder.setConf(jsc.hadoopConfiguration()).setBasePath(basePath).build
val indexReader = createBootstrapIndexReader(metaClient)
val indexedPartitions = indexReader.getIndexedPartitionPaths
- indexedPartitions.stream().toArray.map(r => Row(r)).toList
+ if (limit.isDefined) {
+ indexedPartitions.stream().limit(limit.get.asInstanceOf[Int]).toArray.map(r => Row(r)).toList
+ } else {
Review Comment:
make sense,I had revert the method,ptal @danny0405
##########
hudi-spark-datasource/hudi-spark/src/main/scala/org/apache/spark/sql/hudi/command/procedures/ShowBootstrapPartitionsProcedure.scala:
##########
@@ -42,14 +43,19 @@ class ShowBootstrapPartitionsProcedure extends BaseProcedure with ProcedureBuild
super.checkArgs(PARAMETERS, args)
val tableName = getArgValueOrDefault(args, PARAMETERS(0))
+ val limit = getArgValueOrDefault(args, PARAMETERS(1))
val basePath: String = getBasePath(tableName)
val metaClient = HoodieTableMetaClient.builder.setConf(jsc.hadoopConfiguration()).setBasePath(basePath).build
val indexReader = createBootstrapIndexReader(metaClient)
val indexedPartitions = indexReader.getIndexedPartitionPaths
- indexedPartitions.stream().toArray.map(r => Row(r)).toList
+ if (limit.isDefined) {
+ indexedPartitions.stream().limit(limit.get.asInstanceOf[Int]).toArray.map(r => Row(r)).toList
+ } else {
Review Comment:
make sense,I had revert the method,ptal @danny0405
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [HUDI-7032] ShowProcedures show add limit syntax to keep the same [hudi]
Posted by "danny0405 (via GitHub)" <gi...@apache.org>.
danny0405 commented on code in PR #9988:
URL: https://github.com/apache/hudi/pull/9988#discussion_r1390316539
##########
hudi-spark-datasource/hudi-spark/src/main/scala/org/apache/spark/sql/hudi/command/procedures/ShowBootstrapPartitionsProcedure.scala:
##########
@@ -42,14 +43,19 @@ class ShowBootstrapPartitionsProcedure extends BaseProcedure with ProcedureBuild
super.checkArgs(PARAMETERS, args)
val tableName = getArgValueOrDefault(args, PARAMETERS(0))
+ val limit = getArgValueOrDefault(args, PARAMETERS(1))
val basePath: String = getBasePath(tableName)
val metaClient = HoodieTableMetaClient.builder.setConf(jsc.hadoopConfiguration()).setBasePath(basePath).build
val indexReader = createBootstrapIndexReader(metaClient)
val indexedPartitions = indexReader.getIndexedPartitionPaths
- indexedPartitions.stream().toArray.map(r => Row(r)).toList
+ if (limit.isDefined) {
+ indexedPartitions.stream().limit(limit.get.asInstanceOf[Int]).toArray.map(r => Row(r)).toList
+ } else {
Review Comment:
There could many partitions here? It is still makes sense to represent pruned result list?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [HUDI-7032] ShowProcedures show add limit syntax to keep the same [hudi]
Posted by "hudi-bot (via GitHub)" <gi...@apache.org>.
hudi-bot commented on PR #9988:
URL: https://github.com/apache/hudi/pull/9988#issuecomment-1797950909
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "adbf574637f49d946aae92f942112262174b9305",
"status" : "FAILURE",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=20683",
"triggerID" : "adbf574637f49d946aae92f942112262174b9305",
"triggerType" : "PUSH"
}, {
"hash" : "f902c8aea336c40247e94a7397fd371668ec15be",
"status" : "PENDING",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=20694",
"triggerID" : "f902c8aea336c40247e94a7397fd371668ec15be",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* adbf574637f49d946aae92f942112262174b9305 Azure: [FAILURE](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=20683)
* f902c8aea336c40247e94a7397fd371668ec15be Azure: [PENDING](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=20694)
<details>
<summary>Bot commands</summary>
@hudi-bot supports the following commands:
- `@hudi-bot run azure` re-run the last Azure build
</details>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [HUDI-7032] ShowProcedures show add limit syntax to keep the same [hudi]
Posted by "hudi-bot (via GitHub)" <gi...@apache.org>.
hudi-bot commented on PR #9988:
URL: https://github.com/apache/hudi/pull/9988#issuecomment-1797002380
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "adbf574637f49d946aae92f942112262174b9305",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "adbf574637f49d946aae92f942112262174b9305",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* adbf574637f49d946aae92f942112262174b9305 UNKNOWN
<details>
<summary>Bot commands</summary>
@hudi-bot supports the following commands:
- `@hudi-bot run azure` re-run the last Azure build
</details>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [HUDI-7032] ShowProcedures show add limit syntax to keep the same [hudi]
Posted by "hudi-bot (via GitHub)" <gi...@apache.org>.
hudi-bot commented on PR #9988:
URL: https://github.com/apache/hudi/pull/9988#issuecomment-1798122813
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "adbf574637f49d946aae92f942112262174b9305",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=20683",
"triggerID" : "adbf574637f49d946aae92f942112262174b9305",
"triggerType" : "PUSH"
}, {
"hash" : "f902c8aea336c40247e94a7397fd371668ec15be",
"status" : "FAILURE",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=20694",
"triggerID" : "f902c8aea336c40247e94a7397fd371668ec15be",
"triggerType" : "PUSH"
}, {
"hash" : "a67d829811e63b495dff8cb13f097d9c7fdff796",
"status" : "PENDING",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=20696",
"triggerID" : "a67d829811e63b495dff8cb13f097d9c7fdff796",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* f902c8aea336c40247e94a7397fd371668ec15be Azure: [FAILURE](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=20694)
* a67d829811e63b495dff8cb13f097d9c7fdff796 Azure: [PENDING](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=20696)
<details>
<summary>Bot commands</summary>
@hudi-bot supports the following commands:
- `@hudi-bot run azure` re-run the last Azure build
</details>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [HUDI-7032] ShowProcedures show add limit syntax to keep the same [hudi]
Posted by "xuzifu666 (via GitHub)" <gi...@apache.org>.
xuzifu666 commented on code in PR #9988:
URL: https://github.com/apache/hudi/pull/9988#discussion_r1384544659
##########
hudi-spark-datasource/hudi-spark/src/main/scala/org/apache/spark/sql/hudi/command/procedures/ShowSavepointsProcedure.scala:
##########
@@ -54,7 +56,11 @@ class ShowSavepointsProcedure extends BaseProcedure with ProcedureBuilder {
val commits: util.List[HoodieInstant] = timeline.getReverseOrderedInstants.collect(Collectors.toList[HoodieInstant])
if (commits.isEmpty) Seq.empty[Row] else {
- commits.toArray.map(instant => instant.asInstanceOf[HoodieInstant].getTimestamp).map(p => Row(p)).toSeq
+ if (limit.isDefined) {
+ commits.stream().limit(limit.get.asInstanceOf[Int]).toArray.map(instant => instant.asInstanceOf[HoodieInstant].getTimestamp).map(p => Row(p)).toSeq
Review Comment:
I try to refactor the code for abstracting out limit in parent class,but seems not fit,because would get parameter from sub-class and cannot confirm the order of limit,so I add ut first. at the same time, show procedure commands are not much.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [HUDI-7032] ShowProcedures show add limit syntax to keep the same [hudi]
Posted by "hudi-bot (via GitHub)" <gi...@apache.org>.
hudi-bot commented on PR #9988:
URL: https://github.com/apache/hudi/pull/9988#issuecomment-1807001080
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "adbf574637f49d946aae92f942112262174b9305",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=20683",
"triggerID" : "adbf574637f49d946aae92f942112262174b9305",
"triggerType" : "PUSH"
}, {
"hash" : "f902c8aea336c40247e94a7397fd371668ec15be",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=20694",
"triggerID" : "f902c8aea336c40247e94a7397fd371668ec15be",
"triggerType" : "PUSH"
}, {
"hash" : "a67d829811e63b495dff8cb13f097d9c7fdff796",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=20696",
"triggerID" : "a67d829811e63b495dff8cb13f097d9c7fdff796",
"triggerType" : "PUSH"
}, {
"hash" : "e1117ecdb739404096a4c9d7623f53e3ebc9f739",
"status" : "FAILURE",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=20824",
"triggerID" : "e1117ecdb739404096a4c9d7623f53e3ebc9f739",
"triggerType" : "PUSH"
}, {
"hash" : "549c7c256c2ae7b261b78154f7ed2d3983d62022",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "549c7c256c2ae7b261b78154f7ed2d3983d62022",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* e1117ecdb739404096a4c9d7623f53e3ebc9f739 Azure: [FAILURE](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=20824)
* 549c7c256c2ae7b261b78154f7ed2d3983d62022 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