Can you show the code snippet for unionAll operation ? Which Spark release do you use ?
BTW please use user@spark.apache.org in the future. On Mon, Aug 8, 2016 at 11:47 AM, max square <max2subscr...@gmail.com> wrote: > Hey guys, > > I'm trying to save Dataframe in CSV format after performing unionAll > operations on it. > But I get this exception - > > Exception in thread "main" > org.apache.spark.sql.catalyst.errors.package$TreeNodeException: > execute, tree: > TungstenExchange hashpartitioning(mId#430,200) > > I'm saving it by > > df.write.format("com.databricks.spark.csv").options(Map("mode" -> > "DROPMALFORMED", "delimiter" -> "\t", "header" -> "true")).save(bakDir + > latest) > > It works perfectly if I don't do the unionAll operation. > I see that the format isn't different by printing the part of the results. > > Any help regarding this would be appreciated. > >