Description
In the Hudi Test Suite, the DagUtils class currently has these 2 utility methods w.r.t the DagNode
- Java Object to String (convertDagToYaml)
- String to Java Object (convertJsonToDagNode)
However , these 2 methods are incompatible with each other. That is, the output of the first one cannot be used as the input to the second one. That is a bug. And the root cause is the way ObjectMapper handles null node values. It currently writes them as null into the String representation.
Since root node has no dependencies, the convertJsonToDagNode should handle that case