You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hudi.apache.org by "the-other-tim-brown (via GitHub)" <gi...@apache.org> on 2024/05/14 17:53:01 UTC
[PR] [HUDI-7758] Only consider files in Hudi partitions when initializing MDT [hudi]
the-other-tim-brown opened a new pull request, #11219:
URL: https://github.com/apache/hudi/pull/11219
### Change Logs
- Only considers files in Hudi partitions for MDT to avoid any parsing issues
### Impact
- Avoids runtime exceptions trying to parse information from file paths
### 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-7758] Only consider files in Hudi partitions when initializing MDT [hudi]
Posted by "the-other-tim-brown (via GitHub)" <gi...@apache.org>.
the-other-tim-brown commented on code in PR #11219:
URL: https://github.com/apache/hudi/pull/11219#discussion_r1607459267
##########
hudi-common/src/main/java/org/apache/hudi/metadata/HoodieTableMetadataUtil.java:
##########
@@ -2000,16 +2000,15 @@ public DirectoryInfo(String relativePath, List<StoragePathInfo> pathInfos, Strin
// Pre-allocate with the maximum length possible
filenameToSizeMap = new HashMap<>(pathInfos.size());
+ // Presence of partition meta file implies this is a HUDI partition
+ isHoodiePartition = pathInfos.stream().anyMatch(status -> status.getPath().getName().startsWith(HoodiePartitionMetadata.HOODIE_PARTITION_METAFILE_PREFIX));
Review Comment:
Yes, makes sense. I will add this
--
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-7758] Only consider files in Hudi partitions when initializing MDT [hudi]
Posted by "hudi-bot (via GitHub)" <gi...@apache.org>.
hudi-bot commented on PR #11219:
URL: https://github.com/apache/hudi/pull/11219#issuecomment-2111199365
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "903122ba4879e602d36a4cf172fe675c88dfda93",
"status" : "FAILURE",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=23926",
"triggerID" : "903122ba4879e602d36a4cf172fe675c88dfda93",
"triggerType" : "PUSH"
}, {
"hash" : "6af15255c4d28bd3661fdb7497849e28dd2906d0",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "6af15255c4d28bd3661fdb7497849e28dd2906d0",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* 903122ba4879e602d36a4cf172fe675c88dfda93 Azure: [FAILURE](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=23926)
* 6af15255c4d28bd3661fdb7497849e28dd2906d0 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-7758] Only consider files in Hudi partitions when initializing MDT [hudi]
Posted by "the-other-tim-brown (via GitHub)" <gi...@apache.org>.
the-other-tim-brown commented on code in PR #11219:
URL: https://github.com/apache/hudi/pull/11219#discussion_r1603732565
##########
hudi-common/src/main/java/org/apache/hudi/metadata/HoodieTableMetadataUtil.java:
##########
@@ -2000,16 +2000,15 @@ public DirectoryInfo(String relativePath, List<StoragePathInfo> pathInfos, Strin
// Pre-allocate with the maximum length possible
filenameToSizeMap = new HashMap<>(pathInfos.size());
+ // Presence of partition meta file implies this is a HUDI partition
+ isHoodiePartition = pathInfos.stream().anyMatch(status -> status.getPath().getName().startsWith(HoodiePartitionMetadata.HOODIE_PARTITION_METAFILE_PREFIX));
Review Comment:
I think that the Hudi bootstrap should only consider files that are managed by Hudi. Letting people do things with their Hudi tables is important in my opinion. This can include adding directories under a base path that are not managed by Hudi to store some metadata.
The issue here is that if you had a Hudi table without MDT and then turn it on and you happen to have any parquet files that are not managed by Hudi then you will get an error even if those files are not in a data partition directory.
--
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-7758] Only consider files in Hudi partitions when initializing MDT [hudi]
Posted by "danny0405 (via GitHub)" <gi...@apache.org>.
danny0405 merged PR #11219:
URL: https://github.com/apache/hudi/pull/11219
--
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-7758] Only consider files in Hudi partitions when initializing MDT [hudi]
Posted by "hudi-bot (via GitHub)" <gi...@apache.org>.
hudi-bot commented on PR #11219:
URL: https://github.com/apache/hudi/pull/11219#issuecomment-2121528499
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "903122ba4879e602d36a4cf172fe675c88dfda93",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=23926",
"triggerID" : "903122ba4879e602d36a4cf172fe675c88dfda93",
"triggerType" : "PUSH"
}, {
"hash" : "6af15255c4d28bd3661fdb7497849e28dd2906d0",
"status" : "SUCCESS",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=23933",
"triggerID" : "6af15255c4d28bd3661fdb7497849e28dd2906d0",
"triggerType" : "PUSH"
}, {
"hash" : "ef710f1f1e981fc83f69a3e2db164aa0c139e0c5",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "ef710f1f1e981fc83f69a3e2db164aa0c139e0c5",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* 6af15255c4d28bd3661fdb7497849e28dd2906d0 Azure: [SUCCESS](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=23933)
* ef710f1f1e981fc83f69a3e2db164aa0c139e0c5 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-7758] Only consider files in Hudi partitions when initializing MDT [hudi]
Posted by "danny0405 (via GitHub)" <gi...@apache.org>.
danny0405 commented on code in PR #11219:
URL: https://github.com/apache/hudi/pull/11219#discussion_r1600832292
##########
hudi-common/src/main/java/org/apache/hudi/metadata/HoodieTableMetadataUtil.java:
##########
@@ -2000,16 +2000,15 @@ public DirectoryInfo(String relativePath, List<StoragePathInfo> pathInfos, Strin
// Pre-allocate with the maximum length possible
filenameToSizeMap = new HashMap<>(pathInfos.size());
+ // Presence of partition meta file implies this is a HUDI partition
+ isHoodiePartition = pathInfos.stream().anyMatch(status -> status.getPath().getName().startsWith(HoodiePartitionMetadata.HOODIE_PARTITION_METAFILE_PREFIX));
Review Comment:
Can we fix the `FSUtils.isDataFile` instead? The check for log file uses the regex pattern match, we should fix the base file check to be in line with the log file.
--
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-7758] Only consider files in Hudi partitions when initializing MDT [hudi]
Posted by "KnightChess (via GitHub)" <gi...@apache.org>.
KnightChess commented on code in PR #11219:
URL: https://github.com/apache/hudi/pull/11219#discussion_r1603663221
##########
hudi-common/src/main/java/org/apache/hudi/metadata/HoodieTableMetadataUtil.java:
##########
@@ -2000,16 +2000,15 @@ public DirectoryInfo(String relativePath, List<StoragePathInfo> pathInfos, Strin
// Pre-allocate with the maximum length possible
filenameToSizeMap = new HashMap<>(pathInfos.size());
+ // Presence of partition meta file implies this is a HUDI partition
+ isHoodiePartition = pathInfos.stream().anyMatch(status -> status.getPath().getName().startsWith(HoodiePartitionMetadata.HOODIE_PARTITION_METAFILE_PREFIX));
Review Comment:
for partioned table, if the parent path is already a Hudi partition, is it still necessary to validate the partition metadata files of the subdirectories, can we use short-circuit condition?
##########
hudi-common/src/main/java/org/apache/hudi/metadata/HoodieTableMetadataUtil.java:
##########
@@ -2000,16 +2000,15 @@ public DirectoryInfo(String relativePath, List<StoragePathInfo> pathInfos, Strin
// Pre-allocate with the maximum length possible
filenameToSizeMap = new HashMap<>(pathInfos.size());
+ // Presence of partition meta file implies this is a HUDI partition
+ isHoodiePartition = pathInfos.stream().anyMatch(status -> status.getPath().getName().startsWith(HoodiePartitionMetadata.HOODIE_PARTITION_METAFILE_PREFIX));
Review Comment:
> If you expose your Hudi table as a Delta Lake table with XTable, you will have parquet files in the _delta_log and this will lead to a parsing issue.
A complete dataset includes files that both conform to and do not conform to the Hudi filename format. If the metadata table (MDT) only includes files that conform to Hudi's format, then some file data will be missing. It is not clear whether XTable has its own solution for maintaining the MDT. I think such handling should be maintained on the XTable side, not on the Hudi side. On the Hudi side, I think the MDT construction should fail and throw an exception, prompting the user to handle such anomalous files. what about you?
--
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-7758] Only consider files in Hudi partitions when initializing MDT [hudi]
Posted by "hudi-bot (via GitHub)" <gi...@apache.org>.
hudi-bot commented on PR #11219:
URL: https://github.com/apache/hudi/pull/11219#issuecomment-2110817220
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "903122ba4879e602d36a4cf172fe675c88dfda93",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "903122ba4879e602d36a4cf172fe675c88dfda93",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* 903122ba4879e602d36a4cf172fe675c88dfda93 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-7758] Only consider files in Hudi partitions when initializing MDT [hudi]
Posted by "danny0405 (via GitHub)" <gi...@apache.org>.
danny0405 commented on code in PR #11219:
URL: https://github.com/apache/hudi/pull/11219#discussion_r1602400778
##########
hudi-common/src/main/java/org/apache/hudi/metadata/HoodieTableMetadataUtil.java:
##########
@@ -2000,16 +2000,15 @@ public DirectoryInfo(String relativePath, List<StoragePathInfo> pathInfos, Strin
// Pre-allocate with the maximum length possible
filenameToSizeMap = new HashMap<>(pathInfos.size());
+ // Presence of partition meta file implies this is a HUDI partition
+ isHoodiePartition = pathInfos.stream().anyMatch(status -> status.getPath().getName().startsWith(HoodiePartitionMetadata.HOODIE_PARTITION_METAFILE_PREFIX));
Review Comment:
> I'm worried that changing the isDataFile may lead to some unintended side effects
Should be okay if all the CI tests pass. Actually the `isDataFile` for base file does not make sense because the invoker always needs to consider the directory is a Hudi partition dir, let's fix it.
Another concern is iterate through all the files under one partition is inefficient.
--
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-7758] Only consider files in Hudi partitions when initializing MDT [hudi]
Posted by "hudi-bot (via GitHub)" <gi...@apache.org>.
hudi-bot commented on PR #11219:
URL: https://github.com/apache/hudi/pull/11219#issuecomment-2136081450
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "903122ba4879e602d36a4cf172fe675c88dfda93",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=23926",
"triggerID" : "903122ba4879e602d36a4cf172fe675c88dfda93",
"triggerType" : "PUSH"
}, {
"hash" : "6af15255c4d28bd3661fdb7497849e28dd2906d0",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=23933",
"triggerID" : "6af15255c4d28bd3661fdb7497849e28dd2906d0",
"triggerType" : "PUSH"
}, {
"hash" : "ef710f1f1e981fc83f69a3e2db164aa0c139e0c5",
"status" : "FAILURE",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=24013",
"triggerID" : "ef710f1f1e981fc83f69a3e2db164aa0c139e0c5",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* ef710f1f1e981fc83f69a3e2db164aa0c139e0c5 Azure: [FAILURE](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=24013)
<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-7758] Only consider files in Hudi partitions when initializing MDT [hudi]
Posted by "hudi-bot (via GitHub)" <gi...@apache.org>.
hudi-bot commented on PR #11219:
URL: https://github.com/apache/hudi/pull/11219#issuecomment-2111208141
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "903122ba4879e602d36a4cf172fe675c88dfda93",
"status" : "FAILURE",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=23926",
"triggerID" : "903122ba4879e602d36a4cf172fe675c88dfda93",
"triggerType" : "PUSH"
}, {
"hash" : "6af15255c4d28bd3661fdb7497849e28dd2906d0",
"status" : "PENDING",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=23933",
"triggerID" : "6af15255c4d28bd3661fdb7497849e28dd2906d0",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* 903122ba4879e602d36a4cf172fe675c88dfda93 Azure: [FAILURE](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=23926)
* 6af15255c4d28bd3661fdb7497849e28dd2906d0 Azure: [PENDING](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=23933)
<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-7758] Only consider files in Hudi partitions when initializing MDT [hudi]
Posted by "hudi-bot (via GitHub)" <gi...@apache.org>.
hudi-bot commented on PR #11219:
URL: https://github.com/apache/hudi/pull/11219#issuecomment-2207981834
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "903122ba4879e602d36a4cf172fe675c88dfda93",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=23926",
"triggerID" : "903122ba4879e602d36a4cf172fe675c88dfda93",
"triggerType" : "PUSH"
}, {
"hash" : "6af15255c4d28bd3661fdb7497849e28dd2906d0",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=23933",
"triggerID" : "6af15255c4d28bd3661fdb7497849e28dd2906d0",
"triggerType" : "PUSH"
}, {
"hash" : "ef710f1f1e981fc83f69a3e2db164aa0c139e0c5",
"status" : "FAILURE",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=24013",
"triggerID" : "ef710f1f1e981fc83f69a3e2db164aa0c139e0c5",
"triggerType" : "PUSH"
}, {
"hash" : "09e49d7c4856c6baf4089b538784f2d6cc7b143a",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "09e49d7c4856c6baf4089b538784f2d6cc7b143a",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* ef710f1f1e981fc83f69a3e2db164aa0c139e0c5 Azure: [FAILURE](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=24013)
* 09e49d7c4856c6baf4089b538784f2d6cc7b143a 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-7758] Only consider files in Hudi partitions when initializing MDT [hudi]
Posted by "the-other-tim-brown (via GitHub)" <gi...@apache.org>.
the-other-tim-brown commented on code in PR #11219:
URL: https://github.com/apache/hudi/pull/11219#discussion_r1601667084
##########
hudi-common/src/main/java/org/apache/hudi/metadata/HoodieTableMetadataUtil.java:
##########
@@ -2000,16 +2000,15 @@ public DirectoryInfo(String relativePath, List<StoragePathInfo> pathInfos, Strin
// Pre-allocate with the maximum length possible
filenameToSizeMap = new HashMap<>(pathInfos.size());
+ // Presence of partition meta file implies this is a HUDI partition
+ isHoodiePartition = pathInfos.stream().anyMatch(status -> status.getPath().getName().startsWith(HoodiePartitionMetadata.HOODIE_PARTITION_METAFILE_PREFIX));
Review Comment:
If you expose your Hudi table as a Delta Lake table with XTable, you will have parquet files in the `_delta_log` and this will lead to a parsing issue.
This is the proper way to fix the issue in my opinion. The intention of this code is to only add files that are in directories with a partition marker file. I'm worried that changing the `isDataFile` may lead to some unintended side effects
--
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-7758] Only consider files in Hudi partitions when initializing MDT [hudi]
Posted by "hudi-bot (via GitHub)" <gi...@apache.org>.
hudi-bot commented on PR #11219:
URL: https://github.com/apache/hudi/pull/11219#issuecomment-2111305173
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "903122ba4879e602d36a4cf172fe675c88dfda93",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=23926",
"triggerID" : "903122ba4879e602d36a4cf172fe675c88dfda93",
"triggerType" : "PUSH"
}, {
"hash" : "6af15255c4d28bd3661fdb7497849e28dd2906d0",
"status" : "SUCCESS",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=23933",
"triggerID" : "6af15255c4d28bd3661fdb7497849e28dd2906d0",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* 6af15255c4d28bd3661fdb7497849e28dd2906d0 Azure: [SUCCESS](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=23933)
<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-7758] Only consider files in Hudi partitions when initializing MDT [hudi]
Posted by "hudi-bot (via GitHub)" <gi...@apache.org>.
hudi-bot commented on PR #11219:
URL: https://github.com/apache/hudi/pull/11219#issuecomment-2110903610
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "903122ba4879e602d36a4cf172fe675c88dfda93",
"status" : "FAILURE",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=23926",
"triggerID" : "903122ba4879e602d36a4cf172fe675c88dfda93",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* 903122ba4879e602d36a4cf172fe675c88dfda93 Azure: [FAILURE](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=23926)
<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-7758] Only consider files in Hudi partitions when initializing MDT [hudi]
Posted by "danny0405 (via GitHub)" <gi...@apache.org>.
danny0405 commented on PR #11219:
URL: https://github.com/apache/hudi/pull/11219#issuecomment-2116418144
@KnightChess
> I think such handling should be maintained on the XTable side, not on the Hudi side.
Probably true, but keeping the files scoped in Hudi itself still make sense for Hudi table, I guess it is hard to fix on XTable side because the metadata table is kind of an inner component.
--
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-7758] Only consider files in Hudi partitions when initializing MDT [hudi]
Posted by "danny0405 (via GitHub)" <gi...@apache.org>.
danny0405 commented on code in PR #11219:
URL: https://github.com/apache/hudi/pull/11219#discussion_r1600832686
##########
hudi-common/src/main/java/org/apache/hudi/metadata/HoodieTableMetadataUtil.java:
##########
@@ -2000,16 +2000,15 @@ public DirectoryInfo(String relativePath, List<StoragePathInfo> pathInfos, Strin
// Pre-allocate with the maximum length possible
filenameToSizeMap = new HashMap<>(pathInfos.size());
+ // Presence of partition meta file implies this is a HUDI partition
+ isHoodiePartition = pathInfos.stream().anyMatch(status -> status.getPath().getName().startsWith(HoodiePartitionMetadata.HOODIE_PARTITION_METAFILE_PREFIX));
Review Comment:
And can you clarify what kind of unexpected parquets would cause issue here?
--
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-7758] Only consider files in Hudi partitions when initializing MDT [hudi]
Posted by "hudi-bot (via GitHub)" <gi...@apache.org>.
hudi-bot commented on PR #11219:
URL: https://github.com/apache/hudi/pull/11219#issuecomment-2208019950
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "903122ba4879e602d36a4cf172fe675c88dfda93",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=23926",
"triggerID" : "903122ba4879e602d36a4cf172fe675c88dfda93",
"triggerType" : "PUSH"
}, {
"hash" : "6af15255c4d28bd3661fdb7497849e28dd2906d0",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=23933",
"triggerID" : "6af15255c4d28bd3661fdb7497849e28dd2906d0",
"triggerType" : "PUSH"
}, {
"hash" : "ef710f1f1e981fc83f69a3e2db164aa0c139e0c5",
"status" : "FAILURE",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=24013",
"triggerID" : "ef710f1f1e981fc83f69a3e2db164aa0c139e0c5",
"triggerType" : "PUSH"
}, {
"hash" : "09e49d7c4856c6baf4089b538784f2d6cc7b143a",
"status" : "PENDING",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=24701",
"triggerID" : "09e49d7c4856c6baf4089b538784f2d6cc7b143a",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* ef710f1f1e981fc83f69a3e2db164aa0c139e0c5 Azure: [FAILURE](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=24013)
* 09e49d7c4856c6baf4089b538784f2d6cc7b143a Azure: [PENDING](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=24701)
<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-7758] Only consider files in Hudi partitions when initializing MDT [hudi]
Posted by "hudi-bot (via GitHub)" <gi...@apache.org>.
hudi-bot commented on PR #11219:
URL: https://github.com/apache/hudi/pull/11219#issuecomment-2208095346
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "903122ba4879e602d36a4cf172fe675c88dfda93",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=23926",
"triggerID" : "903122ba4879e602d36a4cf172fe675c88dfda93",
"triggerType" : "PUSH"
}, {
"hash" : "6af15255c4d28bd3661fdb7497849e28dd2906d0",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=23933",
"triggerID" : "6af15255c4d28bd3661fdb7497849e28dd2906d0",
"triggerType" : "PUSH"
}, {
"hash" : "ef710f1f1e981fc83f69a3e2db164aa0c139e0c5",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=24013",
"triggerID" : "ef710f1f1e981fc83f69a3e2db164aa0c139e0c5",
"triggerType" : "PUSH"
}, {
"hash" : "09e49d7c4856c6baf4089b538784f2d6cc7b143a",
"status" : "SUCCESS",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=24701",
"triggerID" : "09e49d7c4856c6baf4089b538784f2d6cc7b143a",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* 09e49d7c4856c6baf4089b538784f2d6cc7b143a Azure: [SUCCESS](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=24701)
<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