Skip to content

Commit 43602b5

Browse files
author
DjvuLee
committed
update the None equal comparison
1 parent 94c44ba commit 43602b5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

python/pyspark/sql/readwriter.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -432,8 +432,8 @@ def jdbc(self, url, table, column=None, lowerBound=None, upperBound=None, numPar
432432
if column is not None:
433433
if numPartitions is None:
434434
numPartitions = self._spark._sc.defaultParallelism
435-
assert lowerBound != None, "lowerBound can not be None when ``column`` is specified"
436-
assert upperBound != None, "upperBound can not be None when ``column`` is specified"
435+
assert lowerBound is not None, "lowerBound can not be None when ``column`` is specified"
436+
assert upperBound is not None, "upperBound can not be None when ``column`` is specified"
437437
return self._df(self._jreader.jdbc(url, table, column, int(lowerBound), int(upperBound),
438438
int(numPartitions), jprop))
439439
if predicates is not None:

0 commit comments

Comments
 (0)