Skip to content
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

[SPARK-45384][CORE][SQL][SS][DSTREAM][CONNECT] Replace TraversableOnce with IterableOnce #43186

Closed
wants to merge 2 commits into from

Conversation

LuciferYang
Copy link
Contributor

@LuciferYang LuciferYang commented Sep 30, 2023

What changes were proposed in this pull request?

This pr replace TraversableOnce with IterableOnce because TraversableOnce has been marked as deprecated after Scala 2.13.0.

@deprecated("Use IterableOnce instead of TraversableOnce", "2.13.0")
type TraversableOnce[+A] = scala.collection.IterableOnce[A]

Additionally, this PR renames two functions:

  • rename UdfUtils#traversableOnceToSeq to UdfUtils#iterableOnceToSeq
  • rename GenerateExec#codeGenTraversableOnce to GenerateExec#codeGenIterableOnce

Why are the changes needed?

Clean up deprecated Scala API usage.

Does this PR introduce any user-facing change?

No

How was this patch tested?

Pass GitHub Actions

Was this patch authored or co-authored using generative AI tooling?

No

@LuciferYang LuciferYang marked this pull request as draft September 30, 2023 05:25
@LuciferYang LuciferYang marked this pull request as ready for review September 30, 2023 05:43
@LuciferYang LuciferYang changed the title [SPARK-45384][CORE][SQL][DSTREAM][CONNECT] Replace TraversableOnce with IterableOnce [SPARK-45384][CORE][SQL][SS][DSTREAM][CONNECT] Replace TraversableOnce with IterableOnce Sep 30, 2023
@LuciferYang
Copy link
Contributor Author

Merged into master for Spark 4.0. Thanks @srowen

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants