Skip to content

Commit

Permalink
compiles
Browse files Browse the repository at this point in the history
  • Loading branch information
dillitz committed Aug 9, 2024
1 parent 37f215d commit 7f9d34d
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@ class DeltaTable private[tables](
.newBuilder()
.setTable(table)
val relation = proto.DeltaRelation.newBuilder().setDescribeHistory(describeHistory).build()
val extension = org.sparkproject.com.google.protobuf.Any.pack(relation)
val extension = org.sparkproject.com.google.protobuf.Any
.pack(relation.asInstanceOf[org.sparkproject.com.google.protobuf.Message])
val df = sparkSession.newDataFrame(_.setExtension(extension))
limit match {
case Some(limit) => df.limit(limit)
Expand Down Expand Up @@ -245,7 +246,7 @@ object DeltaTable {
.newBuilder()
.setScan(proto.Scan.newBuilder().setTable(table))
.build()
val extension = org.sparkproject.com.google.protobuf.Any.pack(relation)
val extension = com.google.protobuf.Any.pack(relation)
val sparkRelation = spark_proto.Relation.newBuilder().setExtension(extension).build()
val df = sparkSession.newDataFrame(_.mergeFrom(sparkRelation))
new DeltaTable(df, table)
Expand Down

0 comments on commit 7f9d34d

Please sign in to comment.