Skip to content

Commit

Permalink
Add explicitly mode in the executePlan args
Browse files Browse the repository at this point in the history
  • Loading branch information
JulienPeloton committed Nov 19, 2023
1 parent 47e4b0f commit aecdb47
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion fink_broker/partitioning.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,9 +142,11 @@ def numPart(df, partition_size=128.):
.builder \
.getOrCreate()

logical_plan = df._jdf.queryExecution().logical()
mode = df._jdf.queryExecution().mode()
b = spark._jsparkSession\
.sessionState()\
.executePlan(df._jdf.queryExecution().logical())\
.executePlan(plan, mode)\
.optimizedPlan()\
.stats()\
.sizeInBytes()
Expand Down

0 comments on commit aecdb47

Please sign in to comment.