Uploaded image for project: 'CDAP'
  1. CDAP
  2. CDAP-14444

Delimited format chokes on nulls

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.1.0
    • Component/s: None
    • Labels:
      None
    • Rank:
      1|i00ibb:

      Description

      To reproduce, create a pipeline that uses the GCS sink with 'delimited' as the format and data that contains null values. There will be an error:

      java.lang.NullPointerException: null
      	at co.cask.cdap.format.StructuredRecordStringConverter$1.apply(StructuredRecordStringConverter.java:73) ~[na:na]
      	at co.cask.cdap.format.StructuredRecordStringConverter$1.apply(StructuredRecordStringConverter.java:70) ~[na:na]
      	at com.google.common.collect.Iterators$7.transform(Iterators.java:750) ~[com.google.guava.guava-13.0.1.jar:na]
      	at com.google.common.collect.TransformedIterator.next(TransformedIterator.java:47) ~[com.google.guava.guava-13.0.1.jar:na]
      	at com.google.common.base.Joiner.appendTo(Joiner.java:109) ~[com.google.guava.guava-13.0.1.jar:na]
      	at com.google.common.base.Joiner.appendTo(Joiner.java:154) ~[com.google.guava.guava-13.0.1.jar:na]
      	at com.google.common.base.Joiner.join(Joiner.java:197) ~[com.google.guava.guava-13.0.1.jar:na]
      	at com.google.common.base.Joiner.join(Joiner.java:187) ~[com.google.guava.guava-13.0.1.jar:na]
      	at co.cask.cdap.format.StructuredRecordStringConverter.toDelimitedString(StructuredRecordStringConverter.java:69) ~[na:na]
      	at co.cask.hydrator.format.output.DelimitedTextOutputFormatter.transform(DelimitedTextOutputFormatter.java:43) ~[na:na]
      

        Attachments

          Activity

            People

            • Assignee:
              ashau Albert Shau
              Reporter:
              ashau Albert Shau
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: