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'

Add voteVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            mridul Mridul Muralidharan

            Dates

              Created:
              Updated:

              Slack

                Issue deployment