Uploaded image for project: 'Sqoop (READ-ONLY)'
  1. Sqoop (READ-ONLY)
  2. SQOOP-187

Generated records should allow toString() that does not append end-of-record delimiter

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.3.0
    • Component/s: codegen
    • Labels:
      None

      Description

      The SqoopRecord.toString() and SqoopRecord.toString(DelimiterSet) methods always append an end-of-record delimiter. Sqoop uses its own OutputFormat when rendering these to text files, so that the user's delimiters are preserved.

      Other users could use this OutputFormat when working with SqoopRecord instances in their own MapReduce code, but it would also be nice to "play nice" with TextOutputFormat in the event that the intent is newline-terminated records.

      This patch allows users to suppress end-of-record delimiter generation when formatting records with toString.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                aaron Aaron Kimball
                Reporter:
                aaron Aaron Kimball
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: