We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 379b0b0 commit cd9c7f3Copy full SHA for cd9c7f3
sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/FileFormatWriter.scala
@@ -171,7 +171,8 @@ object FileFormatWriter extends Logging {
171
queryExecution.toRdd
172
} else {
173
SortExec(
174
- requiredOrdering.map(SortOrder(_, Ascending)),
+ requiredOrdering.map(SortOrder(_, Ascending))
175
+ ++ queryExecution.executedPlan.outputOrdering,
176
global = false,
177
child = queryExecution.executedPlan).execute()
178
}
0 commit comments