Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
None
Description
When trying to create an incremental view of a dataset, an exception is thrown when the latest commit in the time range is empty. In order to determine the schema of the dataset, Hudi will grab the latest commit file, parse it, and grab the first metadata file path. If the latest commit was empty though, the field which is used to determine file paths (partitionToWriteStats) will be empty causing the following exception:
java.util.NoSuchElementException at java.util.HashMap$HashIterator.nextNode(HashMap.java:1447) at java.util.HashMap$ValueIterator.next(HashMap.java:1474) at org.apache.hudi.IncrementalRelation.<init>(IncrementalRelation.scala:80) at org.apache.hudi.DefaultSource.createRelation(DefaultSource.scala:65) at org.apache.hudi.DefaultSource.createRelation(DefaultSource.scala:46) at org.apache.spark.sql.execution.datasources.DataSource.resolveRelation(DataSource.scala:318) at org.apache.spark.sql.DataFrameReader.loadV1Source(DataFrameReader.scala:223) at org.apache.spark.sql.DataFrameReader.load(DataFrameReader.scala:211) at org.apache.spark.sql.DataFrameReader.load(DataFrameReader.scala:178)
Attachments
Issue Links
- is depended upon by
-
HUDI-901 Bug Bash 0.6.0 Tracking Ticket
- Resolved
- links to