Skip to content

Commit

Permalink
Add Shim to DeltaSink
Browse files Browse the repository at this point in the history
  • Loading branch information
longvu-db committed Sep 3, 2024
1 parent ed48c44 commit d9063ca
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ import org.apache.hadoop.fs.Path
// scalastyle:off import.ordering.noEmptyLine
import org.apache.spark.internal.MDC
import org.apache.spark.sql._
import org.apache.spark.sql.ColumnImplicitsShim._
import org.apache.spark.sql.catalyst.analysis.TableOutputResolver
import org.apache.spark.sql.catalyst.catalog.CatalogTable
import org.apache.spark.sql.catalyst.expressions.{Alias, Cast, Expression}
Expand Down Expand Up @@ -203,7 +204,7 @@ case class DeltaSink(
allowStructEvolution = canMergeSchema,
columnName = columnName
)
new Column(Alias(castExpr, columnName)())
Column(Alias(castExpr, columnName)())
}

data.queryExecution match {
Expand Down

0 comments on commit d9063ca

Please sign in to comment.