I am having two data sets received after OLTP/OLAP processing , though these two data sets contains same field but while fetching the same they varies in their schema say by field being Null or Not Null.
To explain in detail say I have df1 and df2.
df1 has field 'a' long with not null
df2 has field 'a' long with null
Now while I am doing unionAll , I am modifying one of the schema as
val x = df1.sqlContext.createDataFrame(df1.rdd, df2.schema)
x.unionAll(df2)
o/p : Job execution goes on hang
also another try
df1.sqlContext.createDataFrame(df1.rdd, df2.schema)
df1.unionAll(df2)
o/p : Here also Job execution goes on hang
Kindly let me know how we can avoid this issue or if I am doing anything wrong.
~Prashant