Skip to content

Commit 9442948

Browse files
committed
address comments
1 parent 4ce0d33 commit 9442948

File tree

1 file changed

+2
-1
lines changed
  • sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/v2

1 file changed

+2
-1
lines changed

sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/v2/FileScan.scala

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@ abstract class FileScan(
5151
* otherwise return `None`.
5252
*/
5353
def getFileUnSplittableReason(path: Path): Option[String] = {
54-
if (!isSplitable(path)) Some("Undefined") else None
54+
assert(!isSplitable(path))
55+
Some("undefined")
5556
}
5657

5758
override def description(): String = {

0 commit comments

Comments
 (0)