@@ -23,19 +23,17 @@ import scala.collection.mutable
2323
2424import org .apache .spark .sql .{AnalysisException , SaveMode }
2525import org .apache .spark .sql .catalog .v2 .{CatalogPlugin , Identifier , LookupCatalog , TableCatalog }
26- import org .apache .spark .sql .catalog .v2 .expressions .{ FieldReference , IdentityTransform , Transform }
26+ import org .apache .spark .sql .catalog .v2 .expressions .Transform
2727import org .apache .spark .sql .catalyst .TableIdentifier
28- import org .apache .spark .sql .catalyst .analysis .{ CastSupport , UnresolvedAttribute , UnresolvedRelation }
28+ import org .apache .spark .sql .catalyst .analysis .CastSupport
2929import org .apache .spark .sql .catalyst .catalog .{BucketSpec , CatalogTable , CatalogTableType , CatalogUtils , UnresolvedCatalogRelation }
30- import org .apache .spark .sql .catalyst .expressions .{Alias , And , Cast , EqualTo , Expression , Literal }
31- import org .apache .spark .sql .catalyst .plans .logical .{AppendData , CreateTableAsSelect , CreateV2Table , DropTable , InsertIntoTable , LogicalPlan , OverwriteByExpression , OverwritePartitionsDynamic , Project , ReplaceTable , ReplaceTableAsSelect }
32- import org .apache .spark .sql .catalyst .plans .logical .sql .{AlterTableAddColumnsStatement , AlterTableSetLocationStatement , AlterTableSetPropertiesStatement , AlterTableUnsetPropertiesStatement , AlterViewSetPropertiesStatement , AlterViewUnsetPropertiesStatement , CreateTableAsSelectStatement , CreateTableStatement , DropTableStatement , DropViewStatement , InsertIntoStatement , QualifiedColType , ReplaceTableAsSelectStatement , ReplaceTableStatement }
30+ import org .apache .spark .sql .catalyst .plans .logical .{CreateTableAsSelect , CreateV2Table , DropTable , LogicalPlan , ReplaceTable , ReplaceTableAsSelect }
31+ import org .apache .spark .sql .catalyst .plans .logical .sql .{AlterTableAddColumnsStatement , AlterTableSetLocationStatement , AlterTableSetPropertiesStatement , AlterTableUnsetPropertiesStatement , AlterViewSetPropertiesStatement , AlterViewUnsetPropertiesStatement , CreateTableAsSelectStatement , CreateTableStatement , DropTableStatement , DropViewStatement , QualifiedColType , ReplaceTableAsSelectStatement , ReplaceTableStatement }
3332import org .apache .spark .sql .catalyst .rules .Rule
3433import org .apache .spark .sql .execution .command .{AlterTableAddColumnsCommand , AlterTableSetLocationCommand , AlterTableSetPropertiesCommand , AlterTableUnsetPropertiesCommand , DropTableCommand }
3534import org .apache .spark .sql .execution .datasources .v2 .{CatalogTableAsV2 , DataSourceV2Relation }
3635import org .apache .spark .sql .internal .SQLConf
37- import org .apache .spark .sql .internal .SQLConf .PartitionOverwriteMode
38- import org .apache .spark .sql .sources .v2 .{Table , TableProvider }
36+ import org .apache .spark .sql .sources .v2 .TableProvider
3937import org .apache .spark .sql .types .{HIVE_TYPE_STRING , HiveStringType , MetadataBuilder , StructField , StructType }
4038
4139case class DataSourceResolution (
@@ -44,7 +42,6 @@ case class DataSourceResolution(
4442 extends Rule [LogicalPlan ] with CastSupport {
4543
4644 import org .apache .spark .sql .catalog .v2 .CatalogV2Implicits ._
47- import org .apache .spark .sql .catalog .v2 .utils .CatalogV2Util ._
4845 import lookup ._
4946
5047 lazy val v2SessionCatalog : CatalogPlugin = lookup.sessionCatalog
0 commit comments