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

The implementation of IndexedTuple might break in cases where a custom TupleFactory is being used

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.2.0
    • None
    • data
    • None

    Description

      IndexedTuple extends the DefaultTuple. This implementation might break in case we are trying to use a custom TupleFactory. Any special data in the custom tuples might get lost when we convert it to an IndexedTuple. The constructor does a super(t.getAll()), other non-datum attributes will be lost after this conversion. The indexedTuple must instead have Tuple as an attribute and implement the Tuple interface and delegate all the methods. The implementation should be by composition.

      Attachments

        Activity

          People

            Unassigned Unassigned
            shubhamc Shubham Chopra
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: