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-35990][BUILD] Remove avro-sbt plugin dependency #33190

Closed
wants to merge 1 commit into from

Conversation

sarutak
Copy link
Member

@sarutak sarutak commented Jul 2, 2021

What changes were proposed in this pull request?

This PR removes sbt-avro plugin dependency.
In the current master, Build with SBT depends on the plugin but it seems never used.
Originally, the plugin was introduced for flume-sink in SPARK-1729 (#807) but flume-sink is no longer in Spark repository.

After SBT was upgraded to 1.x in SPARK-21708 (#29286), avroGenerate part was introduced in object SQL in SparkBuild.scala.
It's confusable but I understand Test / avroGenerate := (Compile / avroGenerate).value is for suppressing sbt-avro for sql sub-module.
In fact, Test/compile will fail if Test / avroGenerate :=(Compile / avroGenerate).value is commented out.

sql sub-module contains parquet-compat.avpr and parquet-compat.avdl but according to sql/core/src/test/README.md, they are intended to be handled by gen-avro.sh.

Also, in terms of Maven build, there seems to be no definition to handle *.avpr or *.avdl.

Based on the above, I think we can remove sbt-avro.

Why are the changes needed?

If sbt-avro is really no longer used, it's confusable that sbt-avro related configurations are in SparkBuild.scala.

Does this PR introduce any user-facing change?

No.

How was this patch tested?

GA.

@github-actions github-actions bot added the BUILD label Jul 2, 2021
Copy link
Member

@dongjoon-hyun dongjoon-hyun left a comment

Choose a reason for hiding this comment

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

Nice catch! +1, LGTM (if CI passes)

@SparkQA
Copy link

SparkQA commented Jul 2, 2021

Kubernetes integration test unable to build dist.

exiting with code: 1
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/45092/

@SparkQA
Copy link

SparkQA commented Jul 2, 2021

Test build #140581 has finished for PR 33190 at commit 20f076b.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

Copy link
Member

@dongjoon-hyun dongjoon-hyun left a comment

Choose a reason for hiding this comment

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

+1, LGTM. Merged to master/3.2 for the clean-up for Apache Spark 3.2.

dongjoon-hyun pushed a commit that referenced this pull request Jul 2, 2021
### What changes were proposed in this pull request?

This PR removes sbt-avro plugin dependency.
In the current master, Build with SBT depends on the plugin but it seems never used.
Originally, the plugin was introduced for `flume-sink` in SPARK-1729 (#807) but `flume-sink` is no longer in Spark repository.

After SBT was upgraded to 1.x in SPARK-21708 (#29286), `avroGenerate` part was introduced in `object SQL` in `SparkBuild.scala`.
It's confusable but I understand `Test / avroGenerate := (Compile / avroGenerate).value` is for suppressing sbt-avro for `sql` sub-module.
In fact, Test/compile will fail if `Test / avroGenerate :=(Compile / avroGenerate).value` is commented out.

`sql` sub-module contains `parquet-compat.avpr` and `parquet-compat.avdl` but according to `sql/core/src/test/README.md`, they are intended to be handled by `gen-avro.sh`.

Also, in terms of Maven build, there seems to be no definition to handle `*.avpr` or `*.avdl`.

Based on the above, I think we can remove `sbt-avro`.

### Why are the changes needed?

If `sbt-avro` is really no longer used, it's confusable that `sbt-avro` related configurations are in `SparkBuild.scala`.

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

No.

### How was this patch tested?

GA.

Closes #33190 from sarutak/remove-avro-from-sbt.

Authored-by: Kousuke Saruta <sarutak@oss.nttdata.com>
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
(cherry picked from commit 6c4616b)
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
3 participants