UmaMahesh1
Honored Contributor III

Hi @Mohammad Saber​ 

The issue is because the column name is similar to a literal value and it is taking that constant value for all the keys provided.

To avoid this you can give more proper column names like below.

imageElse if you have a way where you can explicitly say to spark that 2018 is the column value and not a literal, you can try that too..

Hope this helps...

Cheers

Uma Mahesh D

View solution in original post