shenbinglife opened a new issue #2936:
URL: https://github.com/apache/hudi/issues/2936
**Describe the problem you faced**
Try to update some field with new
value,OverwriteNonDefaultsWithLatestAvroPayload works in MOR table not as well
as COW
**To Reproduce**
Steps to reproduce the behavior:
1. create a mor table
2. read mor table as DataFrame
3. df.withColumn(xx, new Value).withColumn(xx2, lit(null).cast(StringType) )
4.
df.write.format("hudi").option(DataSourceWriteOptions.PAYLOAD_CLASS_OPT_KEY,
classOf[OverwriteNonDefaultsWithLatestAvroPayload].getCanonicalName)
4. read the mor table, I found the xx2 field is set as null but not the
previous value.
**Expected behavior**
A clear and concise description of what you expected to happen.
**Environment Description**
* Hudi version :0.7.0
* Spark version :2.4.5
* Hive version :
* Hadoop version :
* Storage (HDFS/S3/GCS..) :
* Running on Docker? (yes/no) :
**Additional context**
Add any other context about the problem here.
**Stacktrace**
```Add the stacktrace of the error.```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]