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-48342][FOLLOWUP][SQL] Remove unnecessary import in AstBuilder #47025

Closed

Conversation

davidm-db
Copy link
Contributor

@davidm-db davidm-db commented Jun 19, 2024

What changes were proposed in this pull request?

In SQL Scripting parser PR we didn't notice that import for scala.collection.immutable.Seq was added to AstBuilder (probably accidentally by IntelliJ). While this import is not unused per se, it is logically not needed (since Scala 2.13, scala.Seq is an alias for scala.collection.immutable.Seq).

Anyways, no enforcement was there before and it makes sense to leave it as such. It's not in any way required for SQL Scripting parser change.

Why are the changes needed?

To remove accidentally added package enforcement that's not needed and wasn't used before.

Does this PR introduce any user-facing change?

No.

How was this patch tested?

Already existing tests cover this change.

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

No.

@github-actions github-actions bot added the SQL label Jun 19, 2024
@davidm-db davidm-db changed the title Remove unnecessary import Remove unnecessary import in AstBuilder Jun 19, 2024
@davidm-db davidm-db changed the title Remove unnecessary import in AstBuilder [SQL] Remove unnecessary import in AstBuilder Jun 19, 2024
@davidm-db davidm-db changed the title [SQL] Remove unnecessary import in AstBuilder [SPARK-48342][FOLLOWUP][SQL] Remove unnecessary import in AstBuilder Jun 19, 2024
@davidm-db davidm-db marked this pull request as ready for review June 19, 2024 14:18
@davidm-db davidm-db force-pushed the sql_scripting_remove_import branch from 8e2334e to 5b9acf5 Compare June 19, 2024 15:57
@HyukjinKwon
Copy link
Member

Merged to master

attilapiros pushed a commit to attilapiros/spark that referenced this pull request Oct 4, 2024
### What changes were proposed in this pull request?
In [SQL Scripting parser PR](apache#46665) we didn't notice that import for `scala.collection.immutable.Seq` was added to `AstBuilder` (probably accidentally by IntelliJ). While this import is not unused per se, it is logically not needed (since Scala 2.13, `scala.Seq` is an alias for `scala.collection.immutable.Seq`).

Anyways, no enforcement was there before and it makes sense to leave it as such. It's not in any way required for SQL Scripting parser change.

### Why are the changes needed?
To remove accidentally added package enforcement that's not needed and wasn't used before.

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

### How was this patch tested?
Already existing tests cover this change.

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

Closes apache#47025 from davidm-db/sql_scripting_remove_import.

Authored-by: David Milicevic <david.milicevic@databricks.com>
Signed-off-by: Hyukjin Kwon <gurwls223@apache.org>
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.

3 participants