Skip to content

Commit a42528e

Browse files
committed
fix code style
1 parent 5201882 commit a42528e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

python/pyspark/sql/column.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -269,19 +269,19 @@ def substr(self, startPos, length):
269269
if isinstance(startPos, (int, long)):
270270
javaMaxInt = 2147483647
271271
if startPos > javaMaxInt:
272-
raise ValueError("startPos is larger than the java max int value "
273-
"which is not supported by pyspark, startPos=" + str(startPos))
272+
raise ValueError("startPos is larger than the java max int value "
273+
"which is not supported by pyspark, startPos=" + str(startPos))
274274

275275
if length == sys.maxint:
276276
# length == sys.maxint when using syntax str[1:]
277277
# cut it down to java max int because java api of substr only support int type
278278
# of length
279279
warnings.warn("PySpark's substr only support int type of length, "
280-
"please make sure the length you specify is less than 2147483647")
280+
"please make sure the length you specify is less than 2147483647")
281281
length = javaMaxInt
282282
elif length > javaMaxInt:
283283
raise ValueError("length is larger than the java max int value "
284-
"which is not supported by pyspark, length=" + str(length))
284+
"which is not supported by pyspark, length=" + str(length))
285285

286286
jc = self._jc.substr(startPos, length)
287287
elif isinstance(startPos, Column):

0 commit comments

Comments
 (0)