Skip to content

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 <[email protected]>
Signed-off-by: Wenchen Fan <[email protected]>
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 <[email protected]>
Signed-off-by: Wenchen Fan <[email protected]>
(cherry picked from commit 4d15f64)
Signed-off-by: Wenchen Fan <[email protected]>
@cloud-fan cloud-fan closed this in f447c43 Feb 20, 2025
@cloud-fan
Copy link
Contributor

thanks, merging to 3.5/4.0/master

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
zifeif2 pushed a commit to zifeif2/spark that referenced this pull request Nov 14, 2025
…icits`

Related to apache#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 apache#50008 from ostronaut/features/ShowTablesExec-remove-ArrayImplicits.

Authored-by: Dima <[email protected]>
Signed-off-by: Wenchen Fan <[email protected]>
(cherry picked from commit 4d15f64)
Signed-off-by: Wenchen Fan <[email protected]>
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