Open AdmondGuo opened 2 years ago
Look at this: https://stackoverflow.com/questions/52434075/scala-spark-order-changes-when-writing-a-dataframe-to-a-csv-file
And you can fix this by use ET TableRepartition. HERE is the doc: https://docs.byzer.org/#/byzer-lang/zh-cn/extension/et/TableRepartition?id=%e8%a1%a8%e5%88%86%e5%8c%ba%e6%8f%92%e4%bb%b6-tablerepartition
Here is my code:
I expec
description
to appear in the second column.But It always appear at the end of columns. It may occured becaused spark RDD sorting.