Skip to content

Commit

Permalink
Deal with spark changes fro colum<->expression conversions (#11827)
Browse files Browse the repository at this point in the history
Signed-off-by: Robert (Bobby) Evans <[email protected]>
  • Loading branch information
revans2 authored Dec 6, 2024
1 parent 89984d0 commit d9bc056
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@ import org.apache.spark.sql.catalyst.expressions.Expression
import org.apache.spark.sql.internal.ExpressionUtils.{column, expression}

object DataGenExprShims {
def columnToExpr(c: Column): Expression = c
def exprToColumn(e: Expression): Column = e
def columnToExpr(c: Column): Expression = expression(c)
def exprToColumn(e: Expression): Column = column(e)
}
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@ import org.apache.spark.sql.catalyst.expressions.Expression
import org.apache.spark.sql.internal.ExpressionUtils.{column, expression}

object DFUDFShims {
def columnToExpr(c: Column): Expression = c
def exprToColumn(e: Expression): Column = e
def columnToExpr(c: Column): Expression = expression(c)
def exprToColumn(e: Expression): Column = column(e)
}

0 comments on commit d9bc056

Please sign in to comment.