Uploaded image for project: 'Apache Hudi'
  1. Apache Hudi
  2. HUDI-1314

Hudi Test Suite : Root node has no dependencies. DagUtils should consider that

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 0.5.1
    • Fix Version/s: None
    • Component/s: Testing
    • Labels:
      None

      Description

      In the Hudi Test Suite, the DagUtils class currently has these 2 utility methods w.r.t the DagNode

      1. Java Object to String (convertDagToYaml)
      2. 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

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              basanthroy Basanth Roy
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:

                Time Tracking

                Estimated:
                Original Estimate - 2h
                2h
                Remaining:
                Remaining Estimate - 2h
                2h
                Logged:
                Time Spent - Not Specified
                Not Specified