Skip to content

Commit 4b5c8d1

Browse files
committed
merge
1 parent 2e817b6 commit 4b5c8d1

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
@@ -845,11 +845,11 @@ impl PhysicalPlanner {
845845
))
846846
}
847847
OpStruct::Window(wnd) => {
848-
dbg!(&inputs);
849-
//dbg!(&children);
848+
dbg!(&children[0]);
850849
let (scans, child) = self.create_plan(&children[0], inputs)?;
850+
//dbg!(&child);
851851
let input_schema = child.schema();
852-
//dbg!(&input_schema);
852+
dbg!(&input_schema);
853853
let sort_exprs: Result<Vec<PhysicalSortExpr>, ExecutionError> = wnd
854854
.order_by_list
855855
.iter()

core/src/execution/jni_api.rs

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

318319
let exec_context_id = exec_context.id;
319320

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -425,9 +425,9 @@ class CometSparkSessionExtensions
425425
case w: WindowExec =>
426426
QueryPlanSerde.operator2Proto(w) match {
427427
case Some(nativeOp) =>
428-
val bosonOp =
428+
val cometOp =
429429
CometWindowExec(w, w.windowExpression, w.partitionSpec, w.orderSpec, w.child)
430-
CometSinkPlaceHolder(nativeOp, w, bosonOp)
430+
CometSinkPlaceHolder(nativeOp, w, cometOp)
431431
case None =>
432432
w
433433
}

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)