Hi all,

If you follow the example of schema merging in the spark documentation
http://spark.apache.org/docs/latest/sql-programming-guide.html#schema-merging
you obtain the following results when you want to load the result data :

single triple double
1      3      null
2      6      null
4      12     null
3      9      null
5      15     null
1      null   2
2      null   4
4      null   8
3      null   6
5      null   10

How to remove these null value and get something more logical like :

single triple double
1      3      2
2      6      4
4      12     8
3      9      6
5      15     10

Bests,

Jao

Reply via email to