Spark-The-Definitive-Guide icon indicating copy to clipboard operation
Spark-The-Definitive-Guide copied to clipboard

Chapter 9: DataSources - Partitioning based on a sliding window section - python

Open shanmugavel04 opened this issue 3 years ago • 0 comments

The below piece of code when run on a spark 3 cluster

in python

colName = "count" upperBound = 348113L numPartitions = 10 lowerBound = 0L

fails with File "", line 2 upperBound = 348113L ^ SyntaxError: invalid syntax_

Below is the correct code
colName = "count" upperBound = 348113 numPartitions = 10 lowerBound = 0

shanmugavel04 avatar Aug 04 '21 06:08 shanmugavel04