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

Open
#69 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
1/5
Estimated time
Under an hour
Newbie friendliness
45/100
Issue type
Documentation
Clarity
Clearly specified
Activity status
Stale
Tech stack
python
Domain
documentation

Research direction

Start with Chapter 9, DataSources, in the partitioning based on a sliding window section and inspect the Python example containing the upperBound and lowerBound assignments. Update the example so it runs with Python syntax, then verify that the corrected snippet matches the issue's expected code.

Written by the indexing model from the issue text.

Description

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

Dominant language
Scala
Stars
3.2k
Forks
2.9k
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from databricks/Spark-The-Definitive-Guide

All issues in databricks/Spark-The-Definitive-Guide

Similar issues

More Scala issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.