Skip to content

Commit

Permalink
more
Browse files Browse the repository at this point in the history
  • Loading branch information
viirya committed Sep 17, 2024
1 parent fd7be01 commit 902587c
Showing 1 changed file with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@

package org.apache.spark.sql.comet

import org.apache.spark.broadcast
import org.apache.spark.rdd.RDD
import org.apache.spark.sql.catalyst.InternalRow
import org.apache.spark.sql.catalyst.expressions.{Attribute, SortOrder, UnsafeRow}
Expand Down Expand Up @@ -66,9 +67,17 @@ case class CometRowToColumnarExec(override val output: Seq[Attribute], child: Sp

override def hashCode(): Int = Objects.hashCode(output, child)

override protected def doExecute(): RDD[InternalRow] = throw new UnsupportedOperationException
override def doExecute(): RDD[InternalRow] = {
child.execute()
}

override def doExecuteBroadcast[T](): broadcast.Broadcast[T] = {
child.doExecuteBroadcast()
}

override protected def doExecuteColumnar(): RDD[ColumnarBatch] = {
// scalastyle:off println
println("CometRowToColumnarExec")
child
.execute()
.mapPartitionsInternal(iter => {
Expand Down

0 comments on commit 902587c

Please sign in to comment.