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

Remove CastUtils.bytesToMap(byte[] b) method from LoadCaster interface

    XMLWordPrintableJSON

Details

    • Task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.13.0
    • impl
    • None
    • This is a backward incompatible change in LoadCaster interface. Any loader that implements LoadCaster interface needs to replace the deprecated method "bytesToMap(bytes[])" with "bytesToMap(bytes[], ResourceFieldSchema)".

    Description

      PIG-1876 added typed map and annotated the following method as deprecated in 0.9:

      @Deprecated
      public Map<String, Object> bytesToMap(byte[] b) throws IOException;
      

      We should remove and replace it with the new method that takes type information:

      public Map<String, Object> bytesToMap(byte[] b, ResourceFieldSchema fieldSchema) throws IOException;
      

      Attachments

        1. PIG-3485-2.patch
          20 kB
          Cheolsoo Park
        2. PIG-3485-1.patch
          19 kB
          Cheolsoo Park

        Issue Links

          Activity

            People

              cheolsoo Cheolsoo Park
              cheolsoo Cheolsoo Park
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: