jeffw13 commented on code in PR #5821: URL: https://github.com/apache/datafusion-comet/pull/5821#discussion_r4009117271
########## spark/src/main/scala/org/apache/spark/sql/comet/CometEmptyRelationExec.scala: ########## @@ -0,0 +1,62 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package org.apache.spark.sql.comet + +import scala.reflect.ClassTag + +import org.apache.arrow.memory.BufferAllocator +import org.apache.arrow.vector.ipc.ArrowReader +import org.apache.spark.rdd.RDD +import org.apache.spark.sql.catalyst.expressions.Attribute +import org.apache.spark.sql.comet.execution.arrow.CometNativeArrowSource +import org.apache.spark.sql.execution.{LeafExecNode, SparkPlan} + +import org.apache.comet.{CometConf, ConfigEntry} +import org.apache.comet.serde.OperatorOuterClass.Operator +import org.apache.comet.serde.operator.CometSink + +/** + * An empty native input. Spark's eliminated logical subtree is explanation data only; neither it + * nor an Arrow reader needs to run. Preserve the zero partitions of EmptyRelationExec so Spark's + * exchanges continue to control aggregate and join partitioning. + */ +case class CometEmptyRelationExec(originalPlan: SparkPlan, override val output: Seq[Attribute]) Review Comment: Fixed in commit 1296afd34 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
