Skip to content

Commit 449f07e

Browse files
littlegrasscaoSun Cao
andauthored
Fix import format (delta-io#4720)
<!-- Thanks for sending a pull request! Here are some tips for you: 1. If this is your first time, please read our contributor guidelines: https://github.com/delta-io/delta/blob/master/CONTRIBUTING.md 2. If the PR is unfinished, add '[WIP]' in your PR title, e.g., '[WIP] Your PR title ...'. 3. Be sure to keep the PR description updated to reflect all changes. 4. Please write your PR title to summarize what this PR proposes. 5. If possible, provide a concise example to reproduce the issue for a faster review. 6. If applicable, include the corresponding issue number in the PR title and link it in the body. --> #### Which Delta project/connector is this regarding? <!-- Please add the component selected below to the beginning of the pull request title For example: [Spark] Title of my pull request --> - [ ] Spark - [ ] Standalone - [ ] Flink - [ ] Kernel - [x] Other (delta sharing) ## Description Fixing import format ## How was this patch tested? CI pipeline ## Does this PR introduce _any_ user-facing changes? No Co-authored-by: Sun Cao <[email protected]>
1 parent 8915932 commit 449f07e

File tree

2 files changed

+6
-9
lines changed

2 files changed

+6
-9
lines changed

sharing/src/main/scala/io/delta/sharing/spark/DeltaSharingUtils.scala

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import java.util.{TimeZone, UUID}
2323
import scala.reflect.ClassTag
2424

2525
import org.apache.spark.sql.delta._
26-
import org.apache.spark.sql.delta.actions.{Metadata, Protocol}
26+
import org.apache.spark.sql.delta.actions.{DeletionVectorDescriptor, Metadata, Protocol}
2727
import com.google.common.hash.Hashing
2828
import io.delta.sharing.client.{DeltaSharingClient, DeltaSharingRestClient}
2929
import io.delta.sharing.client.model.{DeltaTableFiles, DeltaTableMetadata, Table}
@@ -32,7 +32,6 @@ import io.delta.sharing.client.util.JsonUtils
3232
import org.apache.spark.SparkEnv
3333
import org.apache.spark.delta.sharing.TableRefreshResult
3434
import org.apache.spark.internal.Logging
35-
import org.apache.spark.sql.delta.actions.DeletionVectorDescriptor
3635
import org.apache.spark.sql.SparkSession
3736
import org.apache.spark.sql.execution.datasources.FileFormat
3837
import org.apache.spark.storage.{BlockId, StorageLevel}

sharing/src/test/scala/io/delta/sharing/spark/DeltaSharingUtilsSuite.scala

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,13 @@ package io.delta.sharing.spark
1818

1919
import scala.reflect.ClassTag
2020

21+
import io.delta.sharing.client.{DeltaSharingClient, DeltaSharingRestClient}
22+
import io.delta.sharing.client.model.{DeltaTableFiles, DeltaTableMetadata, Table}
23+
import io.delta.sharing.spark.DeltaSharingUtils._
24+
2125
import org.apache.spark.{SharedSparkContext, SparkEnv, SparkFunSuite}
22-
import org.apache.spark.storage.BlockId
2326
import org.apache.spark.delta.sharing.TableRefreshResult
24-
25-
import io.delta.sharing.client.model.Table
26-
import DeltaSharingUtils._
27-
import io.delta.sharing.client.DeltaSharingClient
28-
import io.delta.sharing.client.model.{DeltaTableFiles, DeltaTableMetadata}
29-
import io.delta.sharing.client.DeltaSharingRestClient
27+
import org.apache.spark.storage.BlockId
3028

3129
class DeltaSharingUtilsSuite extends SparkFunSuite with SharedSparkContext {
3230

0 commit comments

Comments
 (0)