Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
longvu-db committed Sep 17, 2024
1 parent c7c7bc2 commit 34babe5
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,12 @@ import org.apache.spark.sql.types.StructType
class DeltaRelationPlugin extends RelationPlugin with DeltaPlannerBase {
override def transform(raw: Array[Byte], planner: SparkConnectPlanner): Optional[LogicalPlan] = {
val relation = parseAnyFrom(raw,
SparkEnv.get.conf.get(4 * Connect.CONNECT_GRPC_MARSHALLER_RECURSION_LIMIT))
4 * SparkEnv.get.conf.get(Connect.CONNECT_GRPC_MARSHALLER_RECURSION_LIMIT))
if (relation.is(classOf[proto.DeltaRelation])) {
Optional.of(
transform(
parseRelationFrom(relation.getValue,
SparkEnv.get.conf.get(4 * Connect.CONNECT_GRPC_MARSHALLER_RECURSION_LIMIT)),
4 * SparkEnv.get.conf.get(Connect.CONNECT_GRPC_MARSHALLER_RECURSION_LIMIT)),
planner
))
} else {
Expand Down

0 comments on commit 34babe5

Please sign in to comment.