zhangyue19921010 commented on code in PR #13365:
URL: https://github.com/apache/hudi/pull/13365#discussion_r2156495437
##########
hudi-client/hudi-spark-client/src/main/scala/org/apache/hudi/AvroConversionUtils.scala:
##########
@@ -268,4 +267,106 @@ object AvroConversionUtils {
}
schema
}
+
+ /**
+ * Recursively aligns the nullable property of hoodie table schema,
supporting nested structures
+ */
+ def alignFieldsNullability(sourceSchema: StructType, avroSchema: Schema):
StructType = {
Review Comment:
Try my best to add UTs for core methods as much as possible to ensure code
security :)
Add ut in TestAvroConversionUtils
```
test("test alignFieldsNullability function") {
```
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]