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

Code clean up in DataSourceUtils.java and all test classes

    XMLWordPrintableJSON

    Details

      Description

      DataSourceUtils.java - 

      In function getNestedFieldValAsString, we call getNestedFieldVal function to get the value. Then we check if the object returned is null, which is always false, since the called function throws an exception rather than returning null. 

      Need to change the code accordingly.

      Test classes - 

      1. We have defined checked exceptions at a lot of places which are actually not thrown anywhere. 
      2. Similarly, java stream code can be refactored at a lot of places. 

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Pratyaksh Pratyaksh Sharma
                Reporter:
                Pratyaksh Pratyaksh Sharma
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m