Skip to content

Commit d45467e

Browse files
committed
Address comments.
1 parent ba8be46 commit d45467e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/jdbc/JdbcRelationProvider.scala

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ class JdbcRelationProvider extends CreatableRelationProvider
3535
val upperBound = jdbcOptions.upperBound
3636
val numPartitions = jdbcOptions.numPartitions
3737

38-
val partitionInfo = if (partitionColumn == null) {
38+
val partitionInfo = if (partitionColumn == null || lowerBound == null || upperBound == null ||
39+
numPartitions.isEmpty) {
3940
null
4041
} else {
4142
JDBCPartitioningInfo(

0 commit comments

Comments
 (0)