Hi Rakesh Reddy,
Thank you for sharing resolution details. This helps all community as well. Since you cannot accept your own answer, resharing answer here. Kindly consider marking it as Accepted answer
.
We observed that the issue is because of databricks runtime version. We have used 12.2 runtime version in both environments and tried, then the Nulls are populated correctly in both environments.
Please consider hitting Accept Answer
button. Accepted answers help community as well.