-
Notifications
You must be signed in to change notification settings - Fork 2.5k
[HUDI-3643] Fix hive count exception when the table is empty and the path depth is less than 3 #5051
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
hudi-hadoop-mr/src/main/java/org/apache/hudi/hadoop/utils/HoodieHiveUtils.java
Outdated
Show resolved
Hide resolved
|
@dongkelun if we cannot find PartitionMetadata file, we can check whether ./hoodie directoy exist instead of check PartitionMetadata file |
If it is a partition path, it does not exist the ./hoodie directoy |
|
If it is not the root directory of the table, you can find the parent directory and go on, if we find .hoodie directory, we can parser hoodie.properties to do verify. |
1、truncate table will delete the .hoodie_partition_metadata file but not delete the partition path |
9c30548 to
0d444f0
Compare
…path depth is less than 3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
…path depth is less than 3 (#5051)
Spark SQL create non-partition hudi table:
hive tez count
then exception:
hudi 0.9.0
hudi master also exception
What is the purpose of the pull request
Fix hive count exception when the table is empty and the path depth is less than 3
Brief change log
Verify this pull request
This change added tests and can be verified as follows:
Committer checklist
Has a corresponding JIRA in PR title & commit
Commit message is descriptive of the change
CI is green
Necessary doc changes done or have another open PR
For large changes, please consider breaking it into sub-tasks under an umbrella JIRA.