Skip to content

feat: support of pyspark-client#863

Merged
SemyonSinchenko merged 8 commits into
graphframes:mainfrom
SemyonSinchenko:861-pyspark-client
Jun 16, 2026
Merged

feat: support of pyspark-client#863
SemyonSinchenko merged 8 commits into
graphframes:mainfrom
SemyonSinchenko:861-pyspark-client

Conversation

@SemyonSinchenko

Copy link
Copy Markdown
Collaborator

What changes were proposed in this pull request?

Small adjustments to support pyspark-client and testing flow.

Why are the changes needed?

Close #861

@SemyonSinchenko SemyonSinchenko self-assigned this Jun 16, 2026
@SemyonSinchenko SemyonSinchenko added the pyspark-connect GraphFrames on PySpark Connect label Jun 16, 2026
Comment thread .github/workflows/pyspark-client-ci.yml Outdated
Comment thread .github/workflows/pyspark-client-ci.yml Outdated
Comment thread python/dev/run_connect.py
Comment thread python/dev/run_connect.py
Comment thread python/dev/run_connect.py Outdated
Comment thread python/dev/run_connect.py Outdated
Comment thread python/dev/run_connect.py Outdated
Comment thread python/dev/run_connect.py
Comment thread python/dev/run_connect.py Outdated
Comment thread python/pyproject.toml Outdated
@james-willis
james-willis self-requested a review June 16, 2026 17:31

@james-willis james-willis left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mostly some typos and other small things

SemyonSinchenko and others added 3 commits June 16, 2026 19:32
Co-authored-by: James Willis <james-willis@users.noreply.github.com>
@james-willis

Copy link
Copy Markdown
Collaborator

aside from the CI failing I approve.

@codecov-commenter

Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 79.26%. Comparing base (e705223) to head (18ac883).
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #863      +/-   ##
==========================================
- Coverage   81.63%   79.26%   -2.37%     
==========================================
  Files          81       81              
  Lines        4682     4712      +30     
  Branches      574      554      -20     
==========================================
- Hits         3822     3735      -87     
- Misses        860      977     +117     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

SemyonSinchenko and others added 2 commits June 16, 2026 21:21
The pyspark-client CI job ran 'poetry install --with=connect', which also
pulled the non-optional dev group and its full pyspark dependency. Full
pyspark and pyspark-client both own the pyspark/ namespace, so version.py
was clobbered and __version__ no longer reflected the thin client. Exclude
the dev group so only pyspark-client is installed.

Also gate the approx triangleCount algorithm on the connected server
version (spark.version) instead of the client library __version__, since
the approximate algorithm is a server-side capability and client/server
versions can differ under Spark Connect.
@SemyonSinchenko
SemyonSinchenko merged commit f4b2654 into graphframes:main Jun 16, 2026
10 checks passed
james-willis added a commit to james-willis/graphframes that referenced this pull request Jun 16, 2026
run_connect.py and stop_connect.py were added in graphframes#863 before the linting scope was extended to dev/. Apply black/isort and add a noqa for an unavoidable long config string so python-ci passes.
james-willis added a commit that referenced this pull request Jun 16, 2026
#864)

* ci: add codespell spell check and extend python linting to dev scripts

- Add codespell (config in .codespellrc) covering yml, python and scala
  via a new Spell Check workflow and a pre-commit hook; fix the typos it
  surfaced across sources and docs. graphx/ is excluded to stay aligned
  with upstream Apache Spark.
- Extend black/flake8/isort to the dev/ and python/dev/ scripts in both
  the Python CI code-style step and pre-commit.

* ci: pass explicit config to black/isort so root dev/ does not break discovery

When ../dev is included, black/isort resolve their config from the common
parent of all paths (the repo root, which has no pyproject.toml) and fall
back to defaults. Pass --config/--settings-path explicitly.

* ci: format dev connect scripts to satisfy extended linting

run_connect.py and stop_connect.py were added in #863 before the linting scope was extended to dev/. Apply black/isort and add a noqa for an unavoidable long config string so python-ci passes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pyspark-connect GraphFrames on PySpark Connect

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: support pyspark-client for Spark Connect

3 participants