Skip to content

[VL] Gluten-it: Simplify CollectionConverter.scala#10533

Merged
philo-he merged 1 commit intoapache:mainfrom
zhztheplayer:wip-fix-it-2.13
Aug 26, 2025
Merged

[VL] Gluten-it: Simplify CollectionConverter.scala#10533
philo-he merged 1 commit intoapache:mainfrom
zhztheplayer:wip-fix-it-2.13

Conversation

@zhztheplayer
Copy link
Copy Markdown
Member

  1. Rename to JavaCollectionConverter.scala
  2. Simplify code

@zhztheplayer
Copy link
Copy Markdown
Member Author

zhztheplayer commented Aug 26, 2025

@philo-he Thanks

@github-actions github-actions bot added the TOOLS label Aug 26, 2025
@github-actions
Copy link
Copy Markdown

Run Gluten Clickhouse CI on x86

@github-actions
Copy link
Copy Markdown

Run Gluten Clickhouse CI on x86

1. Rename to JavaCollectionConverter.scala
2. Simplify code
@github-actions
Copy link
Copy Markdown

Run Gluten Clickhouse CI on x86


import scala.collection.immutable.{Map => IMap}
import scala.collection.immutable.{Seq => ISeq}
import scala.collection.JavaConverters._
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I note scala.collection.JavaConverters has been marked ad deprecated in Scala 2.13. Do we need to use the recommended scala.jdk.CollectionConverters API for 2.13?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

No worries, the scala.collection.JavaConverters is kept in 2.13 for compatibility with 2.12. gluten-it supports both versions so it's a norm to access this API.

Copy link
Copy Markdown
Member

@philo-he philo-he left a comment

Choose a reason for hiding this comment

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

Looks good.

@philo-he philo-he merged commit d910586 into apache:main Aug 26, 2025
55 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants