spark-instrumented-optimizer/external
yangjie01 e3058ba17c [SPARK-33441][BUILD] Add unused-imports compilation check and remove all unused-imports
### What changes were proposed in this pull request?
This pr add a new Scala compile arg to `pom.xml` to defense against new unused imports:

- `-Ywarn-unused-import` for Scala 2.12
- `-Wconf:cat=unused-imports:e` for Scala 2.13

The other fIles change are remove all unused imports in Spark code

### Why are the changes needed?
Cleanup code and add guarantee to defense against new unused imports

### Does this PR introduce _any_ user-facing change?
No

### How was this patch tested?
Pass the Jenkins or GitHub Action

Closes #30351 from LuciferYang/remove-imports-core-module.

Authored-by: yangjie01 <yangjie01@baidu.com>
Signed-off-by: HyukjinKwon <gurwls223@apache.org>
2020-11-19 14:20:39 +09:00
..
avro [SPARK-33441][BUILD] Add unused-imports compilation check and remove all unused-imports 2020-11-19 14:20:39 +09:00
docker [SPARK-32353][TEST] Update docker/spark-test and clean up unused stuff 2020-07-17 12:05:45 -07:00
docker-integration-tests [MINOR][GRAPHX] Correct typos in the sub-modules: graphx, external, and examples 2020-11-12 08:29:22 +09:00
kafka-0-10 [SPARK-33441][BUILD] Add unused-imports compilation check and remove all unused-imports 2020-11-19 14:20:39 +09:00
kafka-0-10-assembly [SPARK-33212][BUILD] Move to shaded clients for Hadoop 3.x profile 2020-10-22 03:21:34 +00:00
kafka-0-10-sql [SPARK-33441][BUILD] Add unused-imports compilation check and remove all unused-imports 2020-11-19 14:20:39 +09:00
kafka-0-10-token-provider [SPARK-33441][BUILD] Add unused-imports compilation check and remove all unused-imports 2020-11-19 14:20:39 +09:00
kinesis-asl [SPARK-33441][BUILD] Add unused-imports compilation check and remove all unused-imports 2020-11-19 14:20:39 +09:00
kinesis-asl-assembly [SPARK-33212][BUILD] Move to shaded clients for Hadoop 3.x profile 2020-10-22 03:21:34 +00:00
spark-ganglia-lgpl [SPARK-33352][CORE][SQL][SS][MLLIB][AVRO][K8S] Fix procedure-like declaration compilation warnings in Scala 2.13 2020-11-08 12:51:48 -06:00