Skip to content

Commit

Permalink
nit
Browse files Browse the repository at this point in the history
  • Loading branch information
anniewang-db committed Jul 5, 2024
1 parent a96297a commit 18daf62
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import org.apache.spark.sql.delta.schema.SchemaUtils
import org.apache.spark.internal.MDC
import org.apache.spark.sql.SparkSession
import org.apache.spark.sql.catalyst.catalog.CatalogTable
import org.apache.spark.sql.types.{ByteType, CalendarIntervalType, NullType, ShortType, TimestampNTZType, VariantType}
import org.apache.spark.sql.types.{ByteType, CalendarIntervalType, NullType, ShortType, TimestampNTZType}

/**
* Utils to validate the Universal Format (UniForm) Delta feature (NOT a table feature).
Expand Down Expand Up @@ -104,7 +104,7 @@ object UniversalFormat extends DeltaLogging {
}
SchemaUtils.findAnyTypeRecursively(newestMetadata.schema) { f =>
f.isInstanceOf[NullType] | f.isInstanceOf[ByteType] | f.isInstanceOf[ShortType] |
f.isInstanceOf[TimestampNTZType] | f.isInstanceOf[VariantType]
f.isInstanceOf[TimestampNTZType]
} match {
case Some(unsupportedType) =>
throw DeltaErrors.uniFormHudiSchemaCompat(unsupportedType)
Expand Down

0 comments on commit 18daf62

Please sign in to comment.