Skip to content

Commit

Permalink
[SPARK-49183][SQL][FOLLOWUP][3.5] Fix compilation
Browse files Browse the repository at this point in the history
### What changes were proposed in this pull request?

fix compilation error caused by #47684 . Seems scala 2.12 has some subtle differences in the import priority.

### Why are the changes needed?

N/A

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

N/A

### How was this patch tested?

pass compilation

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

no

Closes #47722 from cloud-fan/fix.

Lead-authored-by: Wenchen Fan <wenchen@databricks.com>
Co-authored-by: Dongjoon Hyun <dongjoon@apache.org>
Signed-off-by: Dongjoon Hyun <dhyun@apple.com>
  • Loading branch information
cloud-fan and dongjoon-hyun committed Aug 12, 2024
1 parent 6a75640 commit 7799811
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@

package org.apache.spark.sql.connector

import java.{util => jutil}
import java.sql.Timestamp
import java.time.{Duration, LocalDate, Period}
import java.util
import java.util.Locale

import scala.collection.JavaConverters._
Expand Down Expand Up @@ -3398,8 +3398,8 @@ class SimpleDelegatingCatalog extends DelegatingCatalogExtension {
ident: Identifier,
columns: Array[ColumnV2],
partitions: Array[Transform],
properties: util.Map[String, String]): Table = {
val newProps = new util.HashMap[String, String]
properties: jutil.Map[String, String]): Table = {
val newProps = new jutil.HashMap[String, String]
newProps.putAll(properties)
newProps.put(TableCatalog.PROP_LOCATION, "/tmp/test_path")
newProps.put(TableCatalog.PROP_IS_MANAGED_LOCATION, "true")
Expand Down

0 comments on commit 7799811

Please sign in to comment.