Skip to content

fix: replace reduce with aggregate to better support older spark versions #32

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

tongqqiu
Copy link
Contributor

@tongqqiu tongqqiu commented May 13, 2025

🚀 Replace reduce with aggregate


📌 What does this PR do?

Replace reduce with aggregate

Reduce is a function introduced in spark 3.5. Older version cannot use that. In order to make the tool be used by more people, we can use aggregate function instead. The function is basically the same as reduce.


🧪 Checklist

  • I followed the project's coding style.
  • I added new unit tests for the changes (if applicable).
  • All existing and new tests pass (pytest --cov=sparkdq).
  • I updated the documentation (if applicable).
  • My commit message follows Conventional Commits.

🔎 Related Issues


Related to #31

@tongqqiu tongqqiu marked this pull request as draft May 13, 2025 15:30
@tongqqiu tongqqiu marked this pull request as ready for review May 13, 2025 15:38
@flitzpiepe93 flitzpiepe93 added the chore Maintenance tasks like updates to docs, configs, workflows, or dependencies — no impact on core func label May 13, 2025
Copy link

codecov bot commented May 13, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

📢 Thoughts on this report? Let us know!

@flitzpiepe93
Copy link
Contributor

Looks good to me! Thanks for improvement 🚀

@flitzpiepe93 flitzpiepe93 merged commit b7aeb1f into sparkdq-community:main May 13, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore Maintenance tasks like updates to docs, configs, workflows, or dependencies — no impact on core func
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants