Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,14 @@ object IcebergScanSupport extends Logging {
return None
}

val partitions = inputPartitions(exec)
val partitions =
try {
inputPartitions(exec)
} catch {
case e: IllegalStateException =>
logWarning(s"Get Partition error: ${e.getMessage}")
return None
}
// Empty scan (e.g. empty table) should still build a plan to return no rows.
if (partitions.isEmpty) {
logWarning(s"Native Iceberg scan planned with empty partitions for $scanClassName.")
Expand Down Expand Up @@ -190,7 +197,9 @@ object IcebergScanSupport extends Logging {
logWarning(
s"Failed to obtain input partitions via reflection for ${exec.getClass.getName}.",
t)
Seq.empty
throw new IllegalStateException(
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since we are throwing an exception anyways, do we need to catch it in L189?

s"Cannot resolve input partitions for ${exec.getClass.getName}",
t)
}
}

Expand Down
Loading