You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hudi.apache.org by "the-other-tim-brown (via GitHub)" <gi...@apache.org> on 2025/06/20 15:54:47 UTC
[PR] [HUDI-8286] Add special handling for ordering fields when building FileGroupReader [hudi]
the-other-tim-brown opened a new pull request, #13469:
URL: https://github.com/apache/hudi/pull/13469
### Change Logs
- Ensure that the ordering field options are properly set for payload and merger classes when constructing the FileGroupReader
- Update tests to execute this path where the fields are read from the table config
### Impact
- Moving the code to a common location helps prevent future bugs
### 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. If not, put "none"._
- _The config description must be updated if new configs are added or the default value of the configs are changed_
- _Any new feature or user-facing change requires updating the Hudi website. Please create a Jira ticket, attach the
ticket number here and follow the [instruction](https://hudi.apache.org/contribute/developer-setup#website) to make
changes to the website._
### Contributor's checklist
- [ ] Read through [contributor's guide](https://hudi.apache.org/contribute/how-to-contribute)
- [ ] Change Logs and Impact were stated clearly
- [ ] Adequate tests were added if applicable
- [ ] CI passed
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [HUDI-8286] Add special handling for ordering fields when building FileGroupReader [hudi]
Posted by "hudi-bot (via GitHub)" <gi...@apache.org>.
hudi-bot commented on PR #13469:
URL: https://github.com/apache/hudi/pull/13469#issuecomment-2992569794
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "62ca20926ecf6c7446f44e1f2aae61c1adfb4627",
"status" : "DELETED",
"url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=6378",
"triggerID" : "62ca20926ecf6c7446f44e1f2aae61c1adfb4627",
"triggerType" : "PUSH"
}, {
"hash" : "e445e79f929202ecfc979256643ea7a6e8500670",
"status" : "FAILURE",
"url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=6382",
"triggerID" : "e445e79f929202ecfc979256643ea7a6e8500670",
"triggerType" : "PUSH"
}, {
"hash" : "cbaffd53922718582fe45dd4872e069de52e2a57",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "cbaffd53922718582fe45dd4872e069de52e2a57",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* e445e79f929202ecfc979256643ea7a6e8500670 Azure: [FAILURE](https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=6382)
* cbaffd53922718582fe45dd4872e069de52e2a57 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-8286] Add special handling for ordering fields when building FileGroupReader [hudi]
Posted by "the-other-tim-brown (via GitHub)" <gi...@apache.org>.
the-other-tim-brown commented on code in PR #13469:
URL: https://github.com/apache/hudi/pull/13469#discussion_r2160653454
##########
hudi-common/src/main/java/org/apache/hudi/common/util/ConfigUtils.java:
##########
@@ -79,12 +79,12 @@ public class ConfigUtils {
*/
public static String getOrderingField(Properties properties) {
String orderField = null;
- if (properties.containsKey(HoodiePayloadProps.PAYLOAD_ORDERING_FIELD_PROP_KEY)) {
- orderField = properties.getProperty(HoodiePayloadProps.PAYLOAD_ORDERING_FIELD_PROP_KEY);
- } else if (properties.containsKey("hoodie.datasource.write.precombine.field")) {
+ if (properties.containsKey("hoodie.datasource.write.precombine.field")) {
orderField = properties.getProperty("hoodie.datasource.write.precombine.field");
} else if (properties.containsKey(HoodieTableConfig.PRECOMBINE_FIELD.key())) {
orderField = properties.getProperty(HoodieTableConfig.PRECOMBINE_FIELD.key());
+ } else if (properties.containsKey(HoodiePayloadProps.PAYLOAD_ORDERING_FIELD_PROP_KEY)) {
+ orderField = properties.getProperty(HoodiePayloadProps.PAYLOAD_ORDERING_FIELD_PROP_KEY);
Review Comment:
That code is being phased out by the FileGroupReader, it will not exist much longer so I don't think it should be updated.
--
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-8286] Add special handling for ordering fields when building FileGroupReader [hudi]
Posted by "hudi-bot (via GitHub)" <gi...@apache.org>.
hudi-bot commented on PR #13469:
URL: https://github.com/apache/hudi/pull/13469#issuecomment-2994283059
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "62ca20926ecf6c7446f44e1f2aae61c1adfb4627",
"status" : "DELETED",
"url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=6378",
"triggerID" : "62ca20926ecf6c7446f44e1f2aae61c1adfb4627",
"triggerType" : "PUSH"
}, {
"hash" : "e445e79f929202ecfc979256643ea7a6e8500670",
"status" : "DELETED",
"url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=6382",
"triggerID" : "e445e79f929202ecfc979256643ea7a6e8500670",
"triggerType" : "PUSH"
}, {
"hash" : "cbaffd53922718582fe45dd4872e069de52e2a57",
"status" : "FAILURE",
"url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=6386",
"triggerID" : "cbaffd53922718582fe45dd4872e069de52e2a57",
"triggerType" : "PUSH"
}, {
"hash" : "50a9c5160ca2070e590bfcea4fcc80afae4c0ac8",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "50a9c5160ca2070e590bfcea4fcc80afae4c0ac8",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* cbaffd53922718582fe45dd4872e069de52e2a57 Azure: [FAILURE](https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=6386)
* 50a9c5160ca2070e590bfcea4fcc80afae4c0ac8 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-8286] Add special handling for ordering fields when building FileGroupReader [hudi]
Posted by "hudi-bot (via GitHub)" <gi...@apache.org>.
hudi-bot commented on PR #13469:
URL: https://github.com/apache/hudi/pull/13469#issuecomment-2994945508
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "62ca20926ecf6c7446f44e1f2aae61c1adfb4627",
"status" : "DELETED",
"url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=6378",
"triggerID" : "62ca20926ecf6c7446f44e1f2aae61c1adfb4627",
"triggerType" : "PUSH"
}, {
"hash" : "e445e79f929202ecfc979256643ea7a6e8500670",
"status" : "DELETED",
"url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=6382",
"triggerID" : "e445e79f929202ecfc979256643ea7a6e8500670",
"triggerType" : "PUSH"
}, {
"hash" : "cbaffd53922718582fe45dd4872e069de52e2a57",
"status" : "DELETED",
"url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=6386",
"triggerID" : "cbaffd53922718582fe45dd4872e069de52e2a57",
"triggerType" : "PUSH"
}, {
"hash" : "50a9c5160ca2070e590bfcea4fcc80afae4c0ac8",
"status" : "DELETED",
"url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=6399",
"triggerID" : "50a9c5160ca2070e590bfcea4fcc80afae4c0ac8",
"triggerType" : "PUSH"
}, {
"hash" : "8db7e5bfaff742359c0a344d73e515df18c2afb3",
"status" : "DELETED",
"url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=6406",
"triggerID" : "8db7e5bfaff742359c0a344d73e515df18c2afb3",
"triggerType" : "PUSH"
}, {
"hash" : "3c8aad7d580eaa62d0ab9f9077f8cf82998bc9df",
"status" : "FAILURE",
"url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=6411",
"triggerID" : "3c8aad7d580eaa62d0ab9f9077f8cf82998bc9df",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* 3c8aad7d580eaa62d0ab9f9077f8cf82998bc9df Azure: [FAILURE](https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=6411)
<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-8286] Add special handling for ordering fields when building FileGroupReader [hudi]
Posted by "hudi-bot (via GitHub)" <gi...@apache.org>.
hudi-bot commented on PR #13469:
URL: https://github.com/apache/hudi/pull/13469#issuecomment-2994811201
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "62ca20926ecf6c7446f44e1f2aae61c1adfb4627",
"status" : "DELETED",
"url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=6378",
"triggerID" : "62ca20926ecf6c7446f44e1f2aae61c1adfb4627",
"triggerType" : "PUSH"
}, {
"hash" : "e445e79f929202ecfc979256643ea7a6e8500670",
"status" : "DELETED",
"url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=6382",
"triggerID" : "e445e79f929202ecfc979256643ea7a6e8500670",
"triggerType" : "PUSH"
}, {
"hash" : "cbaffd53922718582fe45dd4872e069de52e2a57",
"status" : "DELETED",
"url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=6386",
"triggerID" : "cbaffd53922718582fe45dd4872e069de52e2a57",
"triggerType" : "PUSH"
}, {
"hash" : "50a9c5160ca2070e590bfcea4fcc80afae4c0ac8",
"status" : "DELETED",
"url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=6399",
"triggerID" : "50a9c5160ca2070e590bfcea4fcc80afae4c0ac8",
"triggerType" : "PUSH"
}, {
"hash" : "8db7e5bfaff742359c0a344d73e515df18c2afb3",
"status" : "FAILURE",
"url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=6406",
"triggerID" : "8db7e5bfaff742359c0a344d73e515df18c2afb3",
"triggerType" : "PUSH"
}, {
"hash" : "3c8aad7d580eaa62d0ab9f9077f8cf82998bc9df",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "3c8aad7d580eaa62d0ab9f9077f8cf82998bc9df",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* 8db7e5bfaff742359c0a344d73e515df18c2afb3 Azure: [FAILURE](https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=6406)
* 3c8aad7d580eaa62d0ab9f9077f8cf82998bc9df 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-8286] Add special handling for ordering fields when building FileGroupReader [hudi]
Posted by "hudi-bot (via GitHub)" <gi...@apache.org>.
hudi-bot commented on PR #13469:
URL: https://github.com/apache/hudi/pull/13469#issuecomment-2994283758
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "62ca20926ecf6c7446f44e1f2aae61c1adfb4627",
"status" : "DELETED",
"url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=6378",
"triggerID" : "62ca20926ecf6c7446f44e1f2aae61c1adfb4627",
"triggerType" : "PUSH"
}, {
"hash" : "e445e79f929202ecfc979256643ea7a6e8500670",
"status" : "DELETED",
"url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=6382",
"triggerID" : "e445e79f929202ecfc979256643ea7a6e8500670",
"triggerType" : "PUSH"
}, {
"hash" : "cbaffd53922718582fe45dd4872e069de52e2a57",
"status" : "FAILURE",
"url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=6386",
"triggerID" : "cbaffd53922718582fe45dd4872e069de52e2a57",
"triggerType" : "PUSH"
}, {
"hash" : "50a9c5160ca2070e590bfcea4fcc80afae4c0ac8",
"status" : "PENDING",
"url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=6399",
"triggerID" : "50a9c5160ca2070e590bfcea4fcc80afae4c0ac8",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* cbaffd53922718582fe45dd4872e069de52e2a57 Azure: [FAILURE](https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=6386)
* 50a9c5160ca2070e590bfcea4fcc80afae4c0ac8 Azure: [PENDING](https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=6399)
<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-8286] Add special handling for ordering fields when building FileGroupReader [hudi]
Posted by "danny0405 (via GitHub)" <gi...@apache.org>.
danny0405 commented on code in PR #13469:
URL: https://github.com/apache/hudi/pull/13469#discussion_r2160658399
##########
hudi-common/src/main/java/org/apache/hudi/common/util/ConfigUtils.java:
##########
@@ -79,12 +79,12 @@ public class ConfigUtils {
*/
public static String getOrderingField(Properties properties) {
String orderField = null;
- if (properties.containsKey(HoodiePayloadProps.PAYLOAD_ORDERING_FIELD_PROP_KEY)) {
- orderField = properties.getProperty(HoodiePayloadProps.PAYLOAD_ORDERING_FIELD_PROP_KEY);
- } else if (properties.containsKey("hoodie.datasource.write.precombine.field")) {
+ if (properties.containsKey("hoodie.datasource.write.precombine.field")) {
orderField = properties.getProperty("hoodie.datasource.write.precombine.field");
} else if (properties.containsKey(HoodieTableConfig.PRECOMBINE_FIELD.key())) {
orderField = properties.getProperty(HoodieTableConfig.PRECOMBINE_FIELD.key());
+ } else if (properties.containsKey(HoodiePayloadProps.PAYLOAD_ORDERING_FIELD_PROP_KEY)) {
+ orderField = properties.getProperty(HoodiePayloadProps.PAYLOAD_ORDERING_FIELD_PROP_KEY);
Review Comment:
they are related logic, let's try to keep the code performant as much as possible even it is legacy one.
--
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-8286] Add special handling for ordering fields when building FileGroupReader [hudi]
Posted by "danny0405 (via GitHub)" <gi...@apache.org>.
danny0405 commented on code in PR #13469:
URL: https://github.com/apache/hudi/pull/13469#discussion_r2160664743
##########
hudi-common/src/main/java/org/apache/hudi/common/table/read/FileGroupRecordBuffer.java:
##########
@@ -110,7 +112,14 @@ protected FileGroupRecordBuffer(HoodieReaderContext<T> readerContext,
this.payloadClass = Option.empty();
}
this.orderingFieldName = orderingFieldName;
+ // Ensure that ordering field is populated for mergers and legacy payloads
+ orderingFieldName.ifPresent(orderingField -> {
Review Comment:
It is passed to the file group buffer too, at least we make the logic consistent here. I don't think we need a change in `HoodieFileGroupReader`.
--
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-8286] Add special handling for ordering fields when building FileGroupReader [hudi]
Posted by "hudi-bot (via GitHub)" <gi...@apache.org>.
hudi-bot commented on PR #13469:
URL: https://github.com/apache/hudi/pull/13469#issuecomment-2992134807
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "62ca20926ecf6c7446f44e1f2aae61c1adfb4627",
"status" : "PENDING",
"url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=6378",
"triggerID" : "62ca20926ecf6c7446f44e1f2aae61c1adfb4627",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* 62ca20926ecf6c7446f44e1f2aae61c1adfb4627 Azure: [PENDING](https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=6378)
<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-8286] Add special handling for ordering fields when building FileGroupReader [hudi]
Posted by "hudi-bot (via GitHub)" <gi...@apache.org>.
hudi-bot commented on PR #13469:
URL: https://github.com/apache/hudi/pull/13469#issuecomment-2992260113
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "62ca20926ecf6c7446f44e1f2aae61c1adfb4627",
"status" : "CANCELED",
"url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=6378",
"triggerID" : "62ca20926ecf6c7446f44e1f2aae61c1adfb4627",
"triggerType" : "PUSH"
}, {
"hash" : "e445e79f929202ecfc979256643ea7a6e8500670",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "e445e79f929202ecfc979256643ea7a6e8500670",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* 62ca20926ecf6c7446f44e1f2aae61c1adfb4627 Azure: [CANCELED](https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=6378)
* e445e79f929202ecfc979256643ea7a6e8500670 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-8286] Add special handling for ordering fields when building FileGroupReader [hudi]
Posted by "hudi-bot (via GitHub)" <gi...@apache.org>.
hudi-bot commented on PR #13469:
URL: https://github.com/apache/hudi/pull/13469#issuecomment-2994609662
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "62ca20926ecf6c7446f44e1f2aae61c1adfb4627",
"status" : "DELETED",
"url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=6378",
"triggerID" : "62ca20926ecf6c7446f44e1f2aae61c1adfb4627",
"triggerType" : "PUSH"
}, {
"hash" : "e445e79f929202ecfc979256643ea7a6e8500670",
"status" : "DELETED",
"url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=6382",
"triggerID" : "e445e79f929202ecfc979256643ea7a6e8500670",
"triggerType" : "PUSH"
}, {
"hash" : "cbaffd53922718582fe45dd4872e069de52e2a57",
"status" : "DELETED",
"url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=6386",
"triggerID" : "cbaffd53922718582fe45dd4872e069de52e2a57",
"triggerType" : "PUSH"
}, {
"hash" : "50a9c5160ca2070e590bfcea4fcc80afae4c0ac8",
"status" : "FAILURE",
"url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=6399",
"triggerID" : "50a9c5160ca2070e590bfcea4fcc80afae4c0ac8",
"triggerType" : "PUSH"
}, {
"hash" : "8db7e5bfaff742359c0a344d73e515df18c2afb3",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "8db7e5bfaff742359c0a344d73e515df18c2afb3",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* 50a9c5160ca2070e590bfcea4fcc80afae4c0ac8 Azure: [FAILURE](https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=6399)
* 8db7e5bfaff742359c0a344d73e515df18c2afb3 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-8286] Add special handling for ordering fields when building FileGroupReader [hudi]
Posted by "hudi-bot (via GitHub)" <gi...@apache.org>.
hudi-bot commented on PR #13469:
URL: https://github.com/apache/hudi/pull/13469#issuecomment-2992257118
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "62ca20926ecf6c7446f44e1f2aae61c1adfb4627",
"status" : "PENDING",
"url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=6378",
"triggerID" : "62ca20926ecf6c7446f44e1f2aae61c1adfb4627",
"triggerType" : "PUSH"
}, {
"hash" : "e445e79f929202ecfc979256643ea7a6e8500670",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "e445e79f929202ecfc979256643ea7a6e8500670",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* 62ca20926ecf6c7446f44e1f2aae61c1adfb4627 Azure: [PENDING](https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=6378)
* e445e79f929202ecfc979256643ea7a6e8500670 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-8286] Add special handling for ordering fields when building FileGroupReader [hudi]
Posted by "the-other-tim-brown (via GitHub)" <gi...@apache.org>.
the-other-tim-brown commented on code in PR #13469:
URL: https://github.com/apache/hudi/pull/13469#discussion_r2160383060
##########
hudi-common/src/main/java/org/apache/hudi/common/table/read/HoodieFileGroupReader.java:
##########
@@ -158,16 +158,12 @@ private HoodieFileGroupReader(HoodieReaderContext<T> readerContext, HoodieStorag
? new PositionBasedSchemaHandler<>(readerContext, dataSchema, requestedSchema, internalSchemaOpt, tableConfig, props)
: new FileGroupReaderSchemaHandler<>(readerContext, dataSchema, requestedSchema, internalSchemaOpt, tableConfig, props));
this.outputConverter = readerContext.getSchemaHandler().getOutputConverter();
- this.orderingFieldName = recordMergeMode == RecordMergeMode.COMMIT_TIME_ORDERING
- ? Option.empty()
- : Option.ofNullable(ConfigUtils.getOrderingField(props))
Review Comment:
Is there a good reason to allow the user to override the field manually? Shouldn't we always use the value written to the table config going forward?
--
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-8286] Add special handling for ordering fields when building FileGroupReader [hudi]
Posted by "the-other-tim-brown (via GitHub)" <gi...@apache.org>.
the-other-tim-brown commented on code in PR #13469:
URL: https://github.com/apache/hudi/pull/13469#discussion_r2160655721
##########
hudi-common/src/main/java/org/apache/hudi/common/table/read/FileGroupRecordBuffer.java:
##########
@@ -110,7 +112,14 @@ protected FileGroupRecordBuffer(HoodieReaderContext<T> readerContext,
this.payloadClass = Option.empty();
}
this.orderingFieldName = orderingFieldName;
+ // Ensure that ordering field is populated for mergers and legacy payloads
+ orderingFieldName.ifPresent(orderingField -> {
Review Comment:
The file group reader doesn't handle any of the merging so it makes more sense to keep this all in the `FileGroupRecordBuffer`. The `orderingFieldName` is just used in the FileGroupReader as an input when constructing the BufferedRecord iterator
--
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-8286] Add special handling for ordering fields when building FileGroupReader [hudi]
Posted by "hudi-bot (via GitHub)" <gi...@apache.org>.
hudi-bot commented on PR #13469:
URL: https://github.com/apache/hudi/pull/13469#issuecomment-2996448996
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "62ca20926ecf6c7446f44e1f2aae61c1adfb4627",
"status" : "DELETED",
"url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=6378",
"triggerID" : "62ca20926ecf6c7446f44e1f2aae61c1adfb4627",
"triggerType" : "PUSH"
}, {
"hash" : "e445e79f929202ecfc979256643ea7a6e8500670",
"status" : "DELETED",
"url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=6382",
"triggerID" : "e445e79f929202ecfc979256643ea7a6e8500670",
"triggerType" : "PUSH"
}, {
"hash" : "cbaffd53922718582fe45dd4872e069de52e2a57",
"status" : "DELETED",
"url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=6386",
"triggerID" : "cbaffd53922718582fe45dd4872e069de52e2a57",
"triggerType" : "PUSH"
}, {
"hash" : "50a9c5160ca2070e590bfcea4fcc80afae4c0ac8",
"status" : "DELETED",
"url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=6399",
"triggerID" : "50a9c5160ca2070e590bfcea4fcc80afae4c0ac8",
"triggerType" : "PUSH"
}, {
"hash" : "8db7e5bfaff742359c0a344d73e515df18c2afb3",
"status" : "DELETED",
"url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=6406",
"triggerID" : "8db7e5bfaff742359c0a344d73e515df18c2afb3",
"triggerType" : "PUSH"
}, {
"hash" : "3c8aad7d580eaa62d0ab9f9077f8cf82998bc9df",
"status" : "FAILURE",
"url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=6411",
"triggerID" : "3c8aad7d580eaa62d0ab9f9077f8cf82998bc9df",
"triggerType" : "PUSH"
}, {
"hash" : "2b3478ecd19e3e043b52b2175ba2f311e40ffeae",
"status" : "PENDING",
"url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=6416",
"triggerID" : "2b3478ecd19e3e043b52b2175ba2f311e40ffeae",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* 3c8aad7d580eaa62d0ab9f9077f8cf82998bc9df Azure: [FAILURE](https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=6411)
* 2b3478ecd19e3e043b52b2175ba2f311e40ffeae Azure: [PENDING](https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=6416)
<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-8286] Add special handling for ordering fields when building FileGroupReader [hudi]
Posted by "the-other-tim-brown (via GitHub)" <gi...@apache.org>.
the-other-tim-brown commented on code in PR #13469:
URL: https://github.com/apache/hudi/pull/13469#discussion_r2161597483
##########
hudi-common/src/main/java/org/apache/hudi/common/table/read/FileGroupRecordBuffer.java:
##########
@@ -110,7 +112,14 @@ protected FileGroupRecordBuffer(HoodieReaderContext<T> readerContext,
this.payloadClass = Option.empty();
}
this.orderingFieldName = orderingFieldName;
+ // Ensure that ordering field is populated for mergers and legacy payloads
+ orderingFieldName.ifPresent(orderingField -> {
Review Comment:
Ok, I've reverted the changes to the HoodieFileGroupReader
--
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-8286] Add special handling for ordering fields when building FileGroupReader [hudi]
Posted by "hudi-bot (via GitHub)" <gi...@apache.org>.
hudi-bot commented on PR #13469:
URL: https://github.com/apache/hudi/pull/13469#issuecomment-2994315663
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "62ca20926ecf6c7446f44e1f2aae61c1adfb4627",
"status" : "DELETED",
"url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=6378",
"triggerID" : "62ca20926ecf6c7446f44e1f2aae61c1adfb4627",
"triggerType" : "PUSH"
}, {
"hash" : "e445e79f929202ecfc979256643ea7a6e8500670",
"status" : "DELETED",
"url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=6382",
"triggerID" : "e445e79f929202ecfc979256643ea7a6e8500670",
"triggerType" : "PUSH"
}, {
"hash" : "cbaffd53922718582fe45dd4872e069de52e2a57",
"status" : "DELETED",
"url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=6386",
"triggerID" : "cbaffd53922718582fe45dd4872e069de52e2a57",
"triggerType" : "PUSH"
}, {
"hash" : "50a9c5160ca2070e590bfcea4fcc80afae4c0ac8",
"status" : "FAILURE",
"url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=6399",
"triggerID" : "50a9c5160ca2070e590bfcea4fcc80afae4c0ac8",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* 50a9c5160ca2070e590bfcea4fcc80afae4c0ac8 Azure: [FAILURE](https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=6399)
<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-8286] Add special handling for ordering fields when building FileGroupReader [hudi]
Posted by "nsivabalan (via GitHub)" <gi...@apache.org>.
nsivabalan commented on code in PR #13469:
URL: https://github.com/apache/hudi/pull/13469#discussion_r2162788843
##########
hudi-common/src/main/java/org/apache/hudi/common/util/ConfigUtils.java:
##########
@@ -79,12 +79,12 @@ public class ConfigUtils {
*/
public static String getOrderingField(Properties properties) {
String orderField = null;
- if (properties.containsKey(HoodiePayloadProps.PAYLOAD_ORDERING_FIELD_PROP_KEY)) {
- orderField = properties.getProperty(HoodiePayloadProps.PAYLOAD_ORDERING_FIELD_PROP_KEY);
- } else if (properties.containsKey("hoodie.datasource.write.precombine.field")) {
+ if (properties.containsKey("hoodie.datasource.write.precombine.field")) {
orderField = properties.getProperty("hoodie.datasource.write.precombine.field");
} else if (properties.containsKey(HoodieTableConfig.PRECOMBINE_FIELD.key())) {
orderField = properties.getProperty(HoodieTableConfig.PRECOMBINE_FIELD.key());
+ } else if (properties.containsKey(HoodiePayloadProps.PAYLOAD_ORDERING_FIELD_PROP_KEY)) {
Review Comment:
Is the change in order of these configs intentional?
previously it was HoodiePayloadProps.PAYLOAD_ORDERING_FIELD_PROP_KEY, followed by "hoodie.datasource.write.precombine.field", and then HoodieTableConfig.PRECOMBINE_FIELD.key().
which ever config property is set, we take that.
and now, we are switching the ordering of these to
hoodie.datasource.write.precombine.field -> HoodieTableConfig.PRECOMBINE_FIELD.key() -> HoodiePayloadProps.PAYLOAD_ORDERING_FIELD_PROP_KEY
ordering field is a immutable table property similar to table type for instance.
So, why honor a diff write property if set? just in this code snippet.
Anyways, down the line the write fail if someone attempted to write to a table by switching ordering field config property.
--
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-8286] Add special handling for ordering fields when building FileGroupReader [hudi]
Posted by "danny0405 (via GitHub)" <gi...@apache.org>.
danny0405 merged PR #13469:
URL: https://github.com/apache/hudi/pull/13469
--
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-8286] Add special handling for ordering fields when building FileGroupReader [hudi]
Posted by "hudi-bot (via GitHub)" <gi...@apache.org>.
hudi-bot commented on PR #13469:
URL: https://github.com/apache/hudi/pull/13469#issuecomment-2992130912
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "62ca20926ecf6c7446f44e1f2aae61c1adfb4627",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "62ca20926ecf6c7446f44e1f2aae61c1adfb4627",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* 62ca20926ecf6c7446f44e1f2aae61c1adfb4627 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-8286] Add special handling for ordering fields when building FileGroupReader [hudi]
Posted by "the-other-tim-brown (via GitHub)" <gi...@apache.org>.
the-other-tim-brown commented on code in PR #13469:
URL: https://github.com/apache/hudi/pull/13469#discussion_r2159375663
##########
hudi-common/src/main/java/org/apache/hudi/common/table/read/HoodieFileGroupReader.java:
##########
@@ -158,16 +158,12 @@ private HoodieFileGroupReader(HoodieReaderContext<T> readerContext, HoodieStorag
? new PositionBasedSchemaHandler<>(readerContext, dataSchema, requestedSchema, internalSchemaOpt, tableConfig, props)
: new FileGroupReaderSchemaHandler<>(readerContext, dataSchema, requestedSchema, internalSchemaOpt, tableConfig, props));
this.outputConverter = readerContext.getSchemaHandler().getOutputConverter();
- this.orderingFieldName = recordMergeMode == RecordMergeMode.COMMIT_TIME_ORDERING
- ? Option.empty()
- : Option.ofNullable(ConfigUtils.getOrderingField(props))
Review Comment:
Currently the developer can override how the events are ordered by passing a prop that does not match the table config. This seems risky so I am changing this to use the table config.
--
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-8286] Add special handling for ordering fields when building FileGroupReader [hudi]
Posted by "nsivabalan (via GitHub)" <gi...@apache.org>.
nsivabalan commented on code in PR #13469:
URL: https://github.com/apache/hudi/pull/13469#discussion_r2162788843
##########
hudi-common/src/main/java/org/apache/hudi/common/util/ConfigUtils.java:
##########
@@ -79,12 +79,12 @@ public class ConfigUtils {
*/
public static String getOrderingField(Properties properties) {
String orderField = null;
- if (properties.containsKey(HoodiePayloadProps.PAYLOAD_ORDERING_FIELD_PROP_KEY)) {
- orderField = properties.getProperty(HoodiePayloadProps.PAYLOAD_ORDERING_FIELD_PROP_KEY);
- } else if (properties.containsKey("hoodie.datasource.write.precombine.field")) {
+ if (properties.containsKey("hoodie.datasource.write.precombine.field")) {
orderField = properties.getProperty("hoodie.datasource.write.precombine.field");
} else if (properties.containsKey(HoodieTableConfig.PRECOMBINE_FIELD.key())) {
orderField = properties.getProperty(HoodieTableConfig.PRECOMBINE_FIELD.key());
+ } else if (properties.containsKey(HoodiePayloadProps.PAYLOAD_ORDERING_FIELD_PROP_KEY)) {
Review Comment:
Looks like we wanted to make table config the source of truth.
previously it was HoodiePayloadProps.PAYLOAD_ORDERING_FIELD_PROP_KEY, followed by "hoodie.datasource.write.precombine.field", and then HoodieTableConfig.PRECOMBINE_FIELD.key().
which ever config property is set, we take that.
and now, we are switching the ordering of these to
hoodie.datasource.write.precombine.field -> HoodieTableConfig.PRECOMBINE_FIELD.key() -> HoodiePayloadProps.PAYLOAD_ORDERING_FIELD_PROP_KEY
ordering field is a immutable table property similar to table type for instance.
So, why can't we just rely on only the table property here and ignore other options.
Is it bcoz, we could also be using the same code path while writing to the table for first 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
Re: [PR] [HUDI-8286] Add special handling for ordering fields when building FileGroupReader [hudi]
Posted by "hudi-bot (via GitHub)" <gi...@apache.org>.
hudi-bot commented on PR #13469:
URL: https://github.com/apache/hudi/pull/13469#issuecomment-2996441934
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "62ca20926ecf6c7446f44e1f2aae61c1adfb4627",
"status" : "DELETED",
"url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=6378",
"triggerID" : "62ca20926ecf6c7446f44e1f2aae61c1adfb4627",
"triggerType" : "PUSH"
}, {
"hash" : "e445e79f929202ecfc979256643ea7a6e8500670",
"status" : "DELETED",
"url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=6382",
"triggerID" : "e445e79f929202ecfc979256643ea7a6e8500670",
"triggerType" : "PUSH"
}, {
"hash" : "cbaffd53922718582fe45dd4872e069de52e2a57",
"status" : "DELETED",
"url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=6386",
"triggerID" : "cbaffd53922718582fe45dd4872e069de52e2a57",
"triggerType" : "PUSH"
}, {
"hash" : "50a9c5160ca2070e590bfcea4fcc80afae4c0ac8",
"status" : "DELETED",
"url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=6399",
"triggerID" : "50a9c5160ca2070e590bfcea4fcc80afae4c0ac8",
"triggerType" : "PUSH"
}, {
"hash" : "8db7e5bfaff742359c0a344d73e515df18c2afb3",
"status" : "DELETED",
"url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=6406",
"triggerID" : "8db7e5bfaff742359c0a344d73e515df18c2afb3",
"triggerType" : "PUSH"
}, {
"hash" : "3c8aad7d580eaa62d0ab9f9077f8cf82998bc9df",
"status" : "FAILURE",
"url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=6411",
"triggerID" : "3c8aad7d580eaa62d0ab9f9077f8cf82998bc9df",
"triggerType" : "PUSH"
}, {
"hash" : "2b3478ecd19e3e043b52b2175ba2f311e40ffeae",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "2b3478ecd19e3e043b52b2175ba2f311e40ffeae",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* 3c8aad7d580eaa62d0ab9f9077f8cf82998bc9df Azure: [FAILURE](https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=6411)
* 2b3478ecd19e3e043b52b2175ba2f311e40ffeae 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-8286] Add special handling for ordering fields when building FileGroupReader [hudi]
Posted by "hudi-bot (via GitHub)" <gi...@apache.org>.
hudi-bot commented on PR #13469:
URL: https://github.com/apache/hudi/pull/13469#issuecomment-2992572574
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "62ca20926ecf6c7446f44e1f2aae61c1adfb4627",
"status" : "DELETED",
"url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=6378",
"triggerID" : "62ca20926ecf6c7446f44e1f2aae61c1adfb4627",
"triggerType" : "PUSH"
}, {
"hash" : "e445e79f929202ecfc979256643ea7a6e8500670",
"status" : "FAILURE",
"url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=6382",
"triggerID" : "e445e79f929202ecfc979256643ea7a6e8500670",
"triggerType" : "PUSH"
}, {
"hash" : "cbaffd53922718582fe45dd4872e069de52e2a57",
"status" : "PENDING",
"url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=6386",
"triggerID" : "cbaffd53922718582fe45dd4872e069de52e2a57",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* e445e79f929202ecfc979256643ea7a6e8500670 Azure: [FAILURE](https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=6382)
* cbaffd53922718582fe45dd4872e069de52e2a57 Azure: [PENDING](https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=6386)
<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-8286] Add special handling for ordering fields when building FileGroupReader [hudi]
Posted by "danny0405 (via GitHub)" <gi...@apache.org>.
danny0405 commented on code in PR #13469:
URL: https://github.com/apache/hudi/pull/13469#discussion_r2159839744
##########
hudi-common/src/main/java/org/apache/hudi/common/table/read/HoodieFileGroupReader.java:
##########
@@ -158,16 +158,12 @@ private HoodieFileGroupReader(HoodieReaderContext<T> readerContext, HoodieStorag
? new PositionBasedSchemaHandler<>(readerContext, dataSchema, requestedSchema, internalSchemaOpt, tableConfig, props)
: new FileGroupReaderSchemaHandler<>(readerContext, dataSchema, requestedSchema, internalSchemaOpt, tableConfig, props));
this.outputConverter = readerContext.getSchemaHandler().getOutputConverter();
- this.orderingFieldName = recordMergeMode == RecordMergeMode.COMMIT_TIME_ORDERING
- ? Option.empty()
- : Option.ofNullable(ConfigUtils.getOrderingField(props))
Review Comment:
The current ordering value field priority sequence is:
1. hoodie.payload.ordering.field
2. hoodie.datasource.write.precombine.field
3. hoodie.table.precombine.field
That is the `#2` has higher priority than `#3` let's keep that for backward compatibility. So I think the logic is fine here, we just need to supplement the `props` for `#2` and `#3`. `#1` is deprecated and let's remove the support for it for file group reader.
One more thing I can think of is to tweak the check priority in ConfigUtils#etOrderingField: the `hoodie.payload.ordering.field` is deprecated and should be put in the last check(the check happens in row-level and is performance sensitive, each check has a hashKey computation for the keys).
Also we should fix the legacy log scanner to better use `hoodie.datasource.write.precombine.field` instead.
--
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-8286] Add special handling for ordering fields when building FileGroupReader [hudi]
Posted by "hudi-bot (via GitHub)" <gi...@apache.org>.
hudi-bot commented on PR #13469:
URL: https://github.com/apache/hudi/pull/13469#issuecomment-2994611341
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "62ca20926ecf6c7446f44e1f2aae61c1adfb4627",
"status" : "DELETED",
"url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=6378",
"triggerID" : "62ca20926ecf6c7446f44e1f2aae61c1adfb4627",
"triggerType" : "PUSH"
}, {
"hash" : "e445e79f929202ecfc979256643ea7a6e8500670",
"status" : "DELETED",
"url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=6382",
"triggerID" : "e445e79f929202ecfc979256643ea7a6e8500670",
"triggerType" : "PUSH"
}, {
"hash" : "cbaffd53922718582fe45dd4872e069de52e2a57",
"status" : "DELETED",
"url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=6386",
"triggerID" : "cbaffd53922718582fe45dd4872e069de52e2a57",
"triggerType" : "PUSH"
}, {
"hash" : "50a9c5160ca2070e590bfcea4fcc80afae4c0ac8",
"status" : "FAILURE",
"url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=6399",
"triggerID" : "50a9c5160ca2070e590bfcea4fcc80afae4c0ac8",
"triggerType" : "PUSH"
}, {
"hash" : "8db7e5bfaff742359c0a344d73e515df18c2afb3",
"status" : "PENDING",
"url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=6406",
"triggerID" : "8db7e5bfaff742359c0a344d73e515df18c2afb3",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* 50a9c5160ca2070e590bfcea4fcc80afae4c0ac8 Azure: [FAILURE](https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=6399)
* 8db7e5bfaff742359c0a344d73e515df18c2afb3 Azure: [PENDING](https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=6406)
<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-8286] Add special handling for ordering fields when building FileGroupReader [hudi]
Posted by "danny0405 (via GitHub)" <gi...@apache.org>.
danny0405 commented on code in PR #13469:
URL: https://github.com/apache/hudi/pull/13469#discussion_r2160647510
##########
hudi-common/src/main/java/org/apache/hudi/common/util/ConfigUtils.java:
##########
@@ -79,12 +79,12 @@ public class ConfigUtils {
*/
public static String getOrderingField(Properties properties) {
String orderField = null;
- if (properties.containsKey(HoodiePayloadProps.PAYLOAD_ORDERING_FIELD_PROP_KEY)) {
- orderField = properties.getProperty(HoodiePayloadProps.PAYLOAD_ORDERING_FIELD_PROP_KEY);
- } else if (properties.containsKey("hoodie.datasource.write.precombine.field")) {
+ if (properties.containsKey("hoodie.datasource.write.precombine.field")) {
orderField = properties.getProperty("hoodie.datasource.write.precombine.field");
} else if (properties.containsKey(HoodieTableConfig.PRECOMBINE_FIELD.key())) {
orderField = properties.getProperty(HoodieTableConfig.PRECOMBINE_FIELD.key());
+ } else if (properties.containsKey(HoodiePayloadProps.PAYLOAD_ORDERING_FIELD_PROP_KEY)) {
+ orderField = properties.getProperty(HoodiePayloadProps.PAYLOAD_ORDERING_FIELD_PROP_KEY);
Review Comment:
can you also fix the `AbstractHoodieLogRecordScanner` to setup `hoodie.datasource.write.precombine.field` instead?
--
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-8286] Add special handling for ordering fields when building FileGroupReader [hudi]
Posted by "hudi-bot (via GitHub)" <gi...@apache.org>.
hudi-bot commented on PR #13469:
URL: https://github.com/apache/hudi/pull/13469#issuecomment-2996675488
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "62ca20926ecf6c7446f44e1f2aae61c1adfb4627",
"status" : "DELETED",
"url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=6378",
"triggerID" : "62ca20926ecf6c7446f44e1f2aae61c1adfb4627",
"triggerType" : "PUSH"
}, {
"hash" : "e445e79f929202ecfc979256643ea7a6e8500670",
"status" : "DELETED",
"url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=6382",
"triggerID" : "e445e79f929202ecfc979256643ea7a6e8500670",
"triggerType" : "PUSH"
}, {
"hash" : "cbaffd53922718582fe45dd4872e069de52e2a57",
"status" : "DELETED",
"url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=6386",
"triggerID" : "cbaffd53922718582fe45dd4872e069de52e2a57",
"triggerType" : "PUSH"
}, {
"hash" : "50a9c5160ca2070e590bfcea4fcc80afae4c0ac8",
"status" : "DELETED",
"url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=6399",
"triggerID" : "50a9c5160ca2070e590bfcea4fcc80afae4c0ac8",
"triggerType" : "PUSH"
}, {
"hash" : "8db7e5bfaff742359c0a344d73e515df18c2afb3",
"status" : "DELETED",
"url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=6406",
"triggerID" : "8db7e5bfaff742359c0a344d73e515df18c2afb3",
"triggerType" : "PUSH"
}, {
"hash" : "3c8aad7d580eaa62d0ab9f9077f8cf82998bc9df",
"status" : "DELETED",
"url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=6411",
"triggerID" : "3c8aad7d580eaa62d0ab9f9077f8cf82998bc9df",
"triggerType" : "PUSH"
}, {
"hash" : "2b3478ecd19e3e043b52b2175ba2f311e40ffeae",
"status" : "FAILURE",
"url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=6416",
"triggerID" : "2b3478ecd19e3e043b52b2175ba2f311e40ffeae",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* 2b3478ecd19e3e043b52b2175ba2f311e40ffeae Azure: [FAILURE](https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=6416)
<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-8286] Add special handling for ordering fields when building FileGroupReader [hudi]
Posted by "hudi-bot (via GitHub)" <gi...@apache.org>.
hudi-bot commented on PR #13469:
URL: https://github.com/apache/hudi/pull/13469#issuecomment-2992266932
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "62ca20926ecf6c7446f44e1f2aae61c1adfb4627",
"status" : "CANCELED",
"url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=6378",
"triggerID" : "62ca20926ecf6c7446f44e1f2aae61c1adfb4627",
"triggerType" : "PUSH"
}, {
"hash" : "e445e79f929202ecfc979256643ea7a6e8500670",
"status" : "PENDING",
"url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=6382",
"triggerID" : "e445e79f929202ecfc979256643ea7a6e8500670",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* 62ca20926ecf6c7446f44e1f2aae61c1adfb4627 Azure: [CANCELED](https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=6378)
* e445e79f929202ecfc979256643ea7a6e8500670 Azure: [PENDING](https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=6382)
<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-8286] Add special handling for ordering fields when building FileGroupReader [hudi]
Posted by "hudi-bot (via GitHub)" <gi...@apache.org>.
hudi-bot commented on PR #13469:
URL: https://github.com/apache/hudi/pull/13469#issuecomment-2992690081
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "62ca20926ecf6c7446f44e1f2aae61c1adfb4627",
"status" : "DELETED",
"url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=6378",
"triggerID" : "62ca20926ecf6c7446f44e1f2aae61c1adfb4627",
"triggerType" : "PUSH"
}, {
"hash" : "e445e79f929202ecfc979256643ea7a6e8500670",
"status" : "DELETED",
"url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=6382",
"triggerID" : "e445e79f929202ecfc979256643ea7a6e8500670",
"triggerType" : "PUSH"
}, {
"hash" : "cbaffd53922718582fe45dd4872e069de52e2a57",
"status" : "FAILURE",
"url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=6386",
"triggerID" : "cbaffd53922718582fe45dd4872e069de52e2a57",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* cbaffd53922718582fe45dd4872e069de52e2a57 Azure: [FAILURE](https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=6386)
<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-8286] Add special handling for ordering fields when building FileGroupReader [hudi]
Posted by "hudi-bot (via GitHub)" <gi...@apache.org>.
hudi-bot commented on PR #13469:
URL: https://github.com/apache/hudi/pull/13469#issuecomment-2992424261
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "62ca20926ecf6c7446f44e1f2aae61c1adfb4627",
"status" : "DELETED",
"url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=6378",
"triggerID" : "62ca20926ecf6c7446f44e1f2aae61c1adfb4627",
"triggerType" : "PUSH"
}, {
"hash" : "e445e79f929202ecfc979256643ea7a6e8500670",
"status" : "FAILURE",
"url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=6382",
"triggerID" : "e445e79f929202ecfc979256643ea7a6e8500670",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* e445e79f929202ecfc979256643ea7a6e8500670 Azure: [FAILURE](https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=6382)
<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-8286] Add special handling for ordering fields when building FileGroupReader [hudi]
Posted by "hudi-bot (via GitHub)" <gi...@apache.org>.
hudi-bot commented on PR #13469:
URL: https://github.com/apache/hudi/pull/13469#issuecomment-2994684288
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "62ca20926ecf6c7446f44e1f2aae61c1adfb4627",
"status" : "DELETED",
"url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=6378",
"triggerID" : "62ca20926ecf6c7446f44e1f2aae61c1adfb4627",
"triggerType" : "PUSH"
}, {
"hash" : "e445e79f929202ecfc979256643ea7a6e8500670",
"status" : "DELETED",
"url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=6382",
"triggerID" : "e445e79f929202ecfc979256643ea7a6e8500670",
"triggerType" : "PUSH"
}, {
"hash" : "cbaffd53922718582fe45dd4872e069de52e2a57",
"status" : "DELETED",
"url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=6386",
"triggerID" : "cbaffd53922718582fe45dd4872e069de52e2a57",
"triggerType" : "PUSH"
}, {
"hash" : "50a9c5160ca2070e590bfcea4fcc80afae4c0ac8",
"status" : "DELETED",
"url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=6399",
"triggerID" : "50a9c5160ca2070e590bfcea4fcc80afae4c0ac8",
"triggerType" : "PUSH"
}, {
"hash" : "8db7e5bfaff742359c0a344d73e515df18c2afb3",
"status" : "FAILURE",
"url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=6406",
"triggerID" : "8db7e5bfaff742359c0a344d73e515df18c2afb3",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* 8db7e5bfaff742359c0a344d73e515df18c2afb3 Azure: [FAILURE](https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=6406)
<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-8286] Add special handling for ordering fields when building FileGroupReader [hudi]
Posted by "danny0405 (via GitHub)" <gi...@apache.org>.
danny0405 commented on code in PR #13469:
URL: https://github.com/apache/hudi/pull/13469#discussion_r2160645660
##########
hudi-common/src/main/java/org/apache/hudi/common/table/read/FileGroupRecordBuffer.java:
##########
@@ -110,7 +112,14 @@ protected FileGroupRecordBuffer(HoodieReaderContext<T> readerContext,
this.payloadClass = Option.empty();
}
this.orderingFieldName = orderingFieldName;
+ // Ensure that ordering field is populated for mergers and legacy payloads
+ orderingFieldName.ifPresent(orderingField -> {
Review Comment:
is the logic consistent with `HoodieFileGroupReader`? should we just update the props in the `HoodieFileGroupReader` itself?
--
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-8286] Add special handling for ordering fields when building FileGroupReader [hudi]
Posted by "hudi-bot (via GitHub)" <gi...@apache.org>.
hudi-bot commented on PR #13469:
URL: https://github.com/apache/hudi/pull/13469#issuecomment-2994813573
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "62ca20926ecf6c7446f44e1f2aae61c1adfb4627",
"status" : "DELETED",
"url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=6378",
"triggerID" : "62ca20926ecf6c7446f44e1f2aae61c1adfb4627",
"triggerType" : "PUSH"
}, {
"hash" : "e445e79f929202ecfc979256643ea7a6e8500670",
"status" : "DELETED",
"url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=6382",
"triggerID" : "e445e79f929202ecfc979256643ea7a6e8500670",
"triggerType" : "PUSH"
}, {
"hash" : "cbaffd53922718582fe45dd4872e069de52e2a57",
"status" : "DELETED",
"url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=6386",
"triggerID" : "cbaffd53922718582fe45dd4872e069de52e2a57",
"triggerType" : "PUSH"
}, {
"hash" : "50a9c5160ca2070e590bfcea4fcc80afae4c0ac8",
"status" : "DELETED",
"url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=6399",
"triggerID" : "50a9c5160ca2070e590bfcea4fcc80afae4c0ac8",
"triggerType" : "PUSH"
}, {
"hash" : "8db7e5bfaff742359c0a344d73e515df18c2afb3",
"status" : "FAILURE",
"url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=6406",
"triggerID" : "8db7e5bfaff742359c0a344d73e515df18c2afb3",
"triggerType" : "PUSH"
}, {
"hash" : "3c8aad7d580eaa62d0ab9f9077f8cf82998bc9df",
"status" : "PENDING",
"url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=6411",
"triggerID" : "3c8aad7d580eaa62d0ab9f9077f8cf82998bc9df",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* 8db7e5bfaff742359c0a344d73e515df18c2afb3 Azure: [FAILURE](https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=6406)
* 3c8aad7d580eaa62d0ab9f9077f8cf82998bc9df Azure: [PENDING](https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=6411)
<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-8286] Add special handling for ordering fields when building FileGroupReader [hudi]
Posted by "danny0405 (via GitHub)" <gi...@apache.org>.
danny0405 commented on code in PR #13469:
URL: https://github.com/apache/hudi/pull/13469#discussion_r2162795309
##########
hudi-common/src/main/java/org/apache/hudi/common/util/ConfigUtils.java:
##########
@@ -79,12 +79,12 @@ public class ConfigUtils {
*/
public static String getOrderingField(Properties properties) {
String orderField = null;
- if (properties.containsKey(HoodiePayloadProps.PAYLOAD_ORDERING_FIELD_PROP_KEY)) {
- orderField = properties.getProperty(HoodiePayloadProps.PAYLOAD_ORDERING_FIELD_PROP_KEY);
- } else if (properties.containsKey("hoodie.datasource.write.precombine.field")) {
+ if (properties.containsKey("hoodie.datasource.write.precombine.field")) {
orderField = properties.getProperty("hoodie.datasource.write.precombine.field");
} else if (properties.containsKey(HoodieTableConfig.PRECOMBINE_FIELD.key())) {
orderField = properties.getProperty(HoodieTableConfig.PRECOMBINE_FIELD.key());
+ } else if (properties.containsKey(HoodiePayloadProps.PAYLOAD_ORDERING_FIELD_PROP_KEY)) {
Review Comment:
> So, why can't we just rely on only the table property here and ignore other options.
we want to keep backward compatibility here, we can remove all the others except the others when the write config got removed.
--
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