Skip to content

Remove PySpark pandas UDF deprecation warnings#247

Open
fjammes wants to merge 2 commits into
mainfrom
1178-remove-pyspark-pandas-udf-deprecation-warnings
Open

Remove PySpark pandas UDF deprecation warnings#247
fjammes wants to merge 2 commits into
mainfrom
1178-remove-pyspark-pandas-udf-deprecation-warnings

Conversation

@fjammes
Copy link
Copy Markdown

@fjammes fjammes commented May 22, 2026

Summary

  • Migrate pandas UDFs from the deprecated PandasUDFType.SCALAR style to the PySpark 3+ type hint style
  • Remove PandasUDFType import from fink_utils/spark/utils.py
  • Add Python type annotations (pd.Series) to UDF function signatures
  • Bump version to 0.64.0

Test plan

  • Verify no deprecation warnings from PySpark when running existing unit tests
  • Confirm UDF return types are correctly inferred from annotations

Closes #1178

🤖 Generated with Claude Code

fjammes and others added 2 commits May 14, 2026 08:54
Remove deprecated PandasUDFType.SCALAR from extend_lc_with_upper_limits
and apply_quality_flags_on_history, adding pd.Series type hints on all
parameters. Also removes the Python default from onlyfainterlimits since
all callers already pass it explicitly via F.lit().

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant