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

Empty map returned by a streaming_python udf wrongly contains a null key

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 0.15.0
    • 0.16.0, 0.15.1
    • impl
    • None

    Description

      To reproduce, please run the following query-

      b = FOREACH a GENERATE (map[])udfs.empty_dict();
      DUMP b;
      

      where empty_dict() is a Python udf-

      @outputSchema("map_out: []")
      def empty_dict():
          return {}
      

      This returns ([]) in jython while ([null#]) in streaming_python.

      Attachments

        1. PIG-4696.1.patch
          2 kB
          Cheolsoo Park

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: