Skip to content

Commit 518cd16

Browse files
committed
merge
1 parent a23e2c8 commit 518cd16

File tree

4 files changed

+9
-6
lines changed

4 files changed

+9
-6
lines changed

core/src/execution/datafusion/planner.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -870,11 +870,11 @@ impl PhysicalPlanner {
870870
))
871871
}
872872
OpStruct::Window(wnd) => {
873-
dbg!(&inputs);
874-
//dbg!(&children);
873+
dbg!(&children[0]);
875874
let (scans, child) = self.create_plan(&children[0], inputs)?;
875+
//dbg!(&child);
876876
let input_schema = child.schema();
877-
//dbg!(&input_schema);
877+
dbg!(&input_schema);
878878
let sort_exprs: Result<Vec<PhysicalSortExpr>, ExecutionError> = wnd
879879
.order_by_list
880880
.iter()

core/src/execution/jni_api.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -310,6 +310,7 @@ pub unsafe extern "system" fn Java_org_apache_comet_Native_executePlan(
310310
try_unwrap_or_throw(&e, |mut env| {
311311
// Retrieve the query
312312
let exec_context = get_execution_context(exec_context);
313+
//dbg!(&exec_context.spark_plan.children[0]);
313314

314315
let exec_context_id = exec_context.id;
315316

spark/src/main/scala/org/apache/comet/CometSparkSessionExtensions.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -537,9 +537,9 @@ class CometSparkSessionExtensions
537537
case w: WindowExec =>
538538
QueryPlanSerde.operator2Proto(w) match {
539539
case Some(nativeOp) =>
540-
val bosonOp =
540+
val cometOp =
541541
CometWindowExec(w, w.windowExpression, w.partitionSpec, w.orderSpec, w.child)
542-
CometSinkPlaceHolder(nativeOp, w, bosonOp)
542+
CometSinkPlaceHolder(nativeOp, w, cometOp)
543543
case None =>
544544
w
545545
}

spark/src/main/scala/org/apache/spark/sql/comet/CometWindowExec.scala

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,9 @@ object CometWindowExec {
104104
}
105105

106106
val windowExprs = windowExpression.map(w =>
107-
windowExprToProto(w.asInstanceOf[Alias].child.asInstanceOf[WindowExpression], child.output))
107+
windowExprToProto(
108+
w.asInstanceOf[Alias].child.asInstanceOf[WindowExpression],
109+
outputAttributes))
108110

109111
val windowBuilder = OperatorOuterClass.Window
110112
.newBuilder()

0 commit comments

Comments
 (0)