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

Rename/Add 'string' as a type in place of chararray - and deprecate (and probably eventually remove) the use of 'chararray'

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • None
    • None

    Description

      The type 'chararray' in pig does not refer to an array of characters (char []) but rather to java.lang.String
      This is inconsistent and confusing naming; and additionally, will be a interoperability issue with other systems which support schema's (zebra among others).

      It would be good to have a consistent naming across projects, while also having appropriate names for the various types.

      Since use of 'chararray' is already widely deployed, it would be good to :

      a) Add a type 'string' (or equivalent) which is an alias for 'chararray'.

      Additionally, it is possible to envision these too (if deemed necessary - not a main requiremnt) :
      b) Modify documentation and example scripts to use this new type.
      c) Emit warnings about chararray being deprecated.

      Attachments

        Activity

          People

            Unassigned Unassigned
            mridul Mridul Muralidharan
            Votes:
            2 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: