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-51219][SQL][TESTS][FOLLOWUP] ShowTablesExec remove ArrayImplicits #50008

Conversation

ostronaut
Copy link
Contributor

What changes were proposed in this pull request?

Related to #49144. scala 2.12 is failing with ArrayImplicits, which is in use for ShowTablesExec.isTempView method. This PR removes org.apache.spark.util.ArrayImplicits._ from ShowTablesExec and uses default Seq instead.

Why are the changes needed?

To fix failing scala 2.12 compilation isssu.

Does this PR introduce any user-facing change?

No

How was this patch tested?

Existing init tests and actions run.

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

No.

cloud-fan pushed a commit that referenced this pull request Feb 20, 2025
…icits`

### What changes were proposed in this pull request?

Related to #49144. scala 2.12 is failing with `ArrayImplicits`, which is in use for `ShowTablesExec.isTempView` method. This PR removes `org.apache.spark.util.ArrayImplicits._` from `ShowTablesExec` and uses default Seq instead.

### Why are the changes needed?

To fix failing scala 2.12 compilation isssu.

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

No

### How was this patch tested?

Existing init tests and actions run.

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

No.

Closes #50008 from ostronaut/features/ShowTablesExec-remove-ArrayImplicits.

Authored-by: Dima <dimanowq@gmail.com>
Signed-off-by: Wenchen Fan <wenchen@databricks.com>
cloud-fan pushed a commit that referenced this pull request Feb 20, 2025
…icits`

Related to #49144. scala 2.12 is failing with `ArrayImplicits`, which is in use for `ShowTablesExec.isTempView` method. This PR removes `org.apache.spark.util.ArrayImplicits._` from `ShowTablesExec` and uses default Seq instead.

To fix failing scala 2.12 compilation isssu.

No

Existing init tests and actions run.

No.

Closes #50008 from ostronaut/features/ShowTablesExec-remove-ArrayImplicits.

Authored-by: Dima <dimanowq@gmail.com>
Signed-off-by: Wenchen Fan <wenchen@databricks.com>
(cherry picked from commit 4d15f64)
Signed-off-by: Wenchen Fan <wenchen@databricks.com>
@cloud-fan cloud-fan closed this in f447c43 Feb 20, 2025
@cloud-fan
Copy link
Contributor

thanks, merging to 3.5/4.0/master

@@ -50,8 +49,7 @@ case class ShowTablesExec(

private def isTempView(ident: Identifier, catalog: TableCatalog): Boolean = {
if (CatalogV2Util.isSessionCatalog(catalog)) {
session.sessionState.catalog
.isTempView((ident.namespace() :+ ident.name()).toImmutableArraySeq)
session.sessionState.catalog.isTempView(ident.namespace() :+ ident.name())
Copy link
Contributor

Choose a reason for hiding this comment

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

note: this doesn't compile with scala 2.13 and I added .toSeq when forward porting this commit to 4.0 and master.

@ostronaut ostronaut deleted the features/ShowTablesExec-remove-ArrayImplicits branch February 20, 2025 10:48
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