baibaichen opened a new pull request, #11342:
URL: https://github.com/apache/incubator-gluten/pull/11342
# [GLUTEN-11341][CORE] Support Scala 2.13 with IntelliJ IDE
Fixes #11341
## What changes were proposed in this pull request?
This PR includes several improvements for Scala 2.13 compatibility and code
modernization:
| Change | Description | Files |
|--------|-------------|-------|
| Update Java compiler release version | Changed from hardcoded `8` to
`${java.version}` in the Scala 2.13 profiler to align with
`maven.compiler.target` | `pom.xml` |
| Replace deprecated file reading method | Migrated from deprecated
`fileToString` to `Files.readString` in `GlutenSQLQueryTestSuite` (see
https://github.com/apache/spark/pull/51911) |
`gluten-ut/spark40/src/test/scala/org/apache/spark/GlutenSQLQueryTestSuite.scala`
|
| Fix symbol literal deprecation | Refactored to use `Symbol()` for column
references to fix compilation error in Scala 2.13 with IntelliJ compiler |
`GlutenDataSourceV2Suite.scala`, `ClickHouseAdaptiveQueryExecSuite.scala`,
`VeloxAdaptiveQueryExecSuite.scala` |
| Suppress warnings | Added suppressions for `ContextAwareIterator`
initialization and `ContentFile::path` warnings in Scala 2.13 |
`ColumnarArrowEvalPythonExec.scala`, `GlutenIcebergSourceUtil.scala` |
| Remove obsolete suppressions | Removed suppression for lint-multiarg-infix
warnings from pom.xml (see https://github.com/apache/spark/pull/43332) |
`pom.xml` |
## Why are the changes needed?
These changes are necessary to:
- Maintain compatibility with Scala 2.13 and IntelliJ compiler to accelerate
development speed
- Remove deprecated code that was removed from Spark codebase
- Improve build configuration consistency
## How was this patch tested?
- Existing test suites
- Manual testing
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]