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'

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      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.

        Activity

        Mridul Muralidharan created issue -
        Hide
        Santhosh Srinivasan added a comment -

        +1

        Show
        Santhosh Srinivasan added a comment - +1

          People

          • Assignee:
            Unassigned
            Reporter:
            Mridul Muralidharan
          • Votes:
            2 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:

              Development