Skip to content

Commit

Permalink
SPARK-49881. fixed compilation failure after merge
Browse files Browse the repository at this point in the history
  • Loading branch information
ashahid committed Jan 15, 2025
1 parent c14bb66 commit 8066d6d
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ import org.apache.spark.ml.linalg.{Matrices, Matrix, Vector, Vectors}
import org.apache.spark.ml.param.Params
import org.apache.spark.ml.util.MLWritable
import org.apache.spark.sql.{DataFrame, Dataset}
import org.apache.spark.sql.catalyst.analysis.RelationWrapper
import org.apache.spark.sql.connect.common.LiteralValueProtoConverter
import org.apache.spark.sql.connect.planner.SparkConnectPlanner
import org.apache.spark.sql.connect.service.SessionHolder
Expand Down Expand Up @@ -188,6 +189,7 @@ private[ml] object MLUtils {
def parseRelationProto(relation: proto.Relation, sessionHolder: SessionHolder): DataFrame = {
val planner = new SparkConnectPlanner(sessionHolder)
val plan = planner.transformRelation(relation)
implicit val withRelations: Set[RelationWrapper] = Set.empty
Dataset.ofRows(sessionHolder.session, plan)
}

Expand Down

0 comments on commit 8066d6d

Please sign in to comment.