Uploaded image for project: 'Pig'
  1. Pig
  2. PIG-2494

Improvement to SequenceFileLoader (NullWritable and Delimiter)

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 0.9.1
    • None
    • piggybank
    • All

    • Should have no compatible issues
    • SequenceFileLoader NullWritable Delimiter

    Description

      I wanted to add two features to SequenceFileLoader.
      1. I added a delimiter so it will act more like PigStorage, in that it will Split the value if it is a type Text (chararray).
      2. I added the option of the key being a NullWritable. I wanted to be able to process my Hive files in both Hive and Pig, but because my Hive sequence files have a NullWritable key I could not make this work with the current implementation of SequenceFileLoader.

      My change is attached to this Issue.

      Attachments

        1. SequenceFileLoader.java
          7 kB
          Ted Malaska

        Activity

          People

            Unassigned Unassigned
            malaskat Ted Malaska
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: