Skip to content

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

@shanmugavel04

Description

@shanmugavel04

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions