Skip to content

Commit

Permalink
Enable override option
Browse files Browse the repository at this point in the history
Signed-off-by: Andy Kwok <[email protected]>
  • Loading branch information
andy-k-improving committed Dec 13, 2024
1 parent cba664d commit d790d20
Show file tree
Hide file tree
Showing 2 changed files with 297 additions and 295 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -305,13 +305,15 @@ public LogicalPlan visitAppendCol(AppendCol node, CatalystPlanContext context) {
context.retainAllNamedParseExpressions(p -> p);
context.retainAllPlans(p -> p);

SparkSession sparkSession = SparkSession.getActiveSession().get();
if (node.override) {
SparkSession sparkSession = SparkSession.getActiveSession().get();

QueryExecution queryExecution = sparkSession.sessionState().executePlan(mainSearchWithRowNumber, CommandExecutionMode.ALL());
QueryExecution queryExecutionSub = sparkSession.sessionState().executePlan(subSearchWithRowNumber, CommandExecutionMode.ALL());
QueryExecution queryExecution = sparkSession.sessionState().executePlan(mainSearchWithRowNumber, CommandExecutionMode.ALL());
QueryExecution queryExecutionSub = sparkSession.sessionState().executePlan(subSearchWithRowNumber, CommandExecutionMode.ALL());

Seq<Attribute> outputMain = queryExecution.analyzed().output();
Seq<Attribute> outputSub = queryExecutionSub.analyzed().output();
Seq<Attribute> outputMain = queryExecution.analyzed().output();
Seq<Attribute> outputSub = queryExecutionSub.analyzed().output();
}

// Composite the join clause
LogicalPlan joinedQuery = join(
Expand Down
Loading

0 comments on commit d790d20

Please sign in to comment.