[MINOR] HoodieFileScanRDD could print null path (#5056)
Co-authored-by: Rex An <bonean131@gmail.com>
This commit is contained in:
@@ -47,8 +47,8 @@ class HoodieFileScanRDD(@transient private val sparkSession: SparkSession,
|
|||||||
/** Advances to the next file. Returns true if a new non-empty iterator is available. */
|
/** Advances to the next file. Returns true if a new non-empty iterator is available. */
|
||||||
private def nextIterator(): Boolean = {
|
private def nextIterator(): Boolean = {
|
||||||
if (files.hasNext) {
|
if (files.hasNext) {
|
||||||
logInfo(s"Reading File $currentFile")
|
|
||||||
currentFile = files.next()
|
currentFile = files.next()
|
||||||
|
logInfo(s"Reading File $currentFile")
|
||||||
currentIterator = readFunction(currentFile)
|
currentIterator = readFunction(currentFile)
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
|||||||
Reference in New Issue
Block a user