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

udf having project-star/project-range as argument has single tuple in argument schema

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 0.7.0, 0.8.0, 0.9.0
    • None
    • None
    • None

    Description

      When a udf has a project-star or project-range-to-end (eg- $3 ..)as the argument, then to find the appropriate matching udf class, pig type checker (TypeCheckingRelVisitor) creates a UDF input schema that has a single tuple as the argument. But at runtime, the udf will actually get an input that has the expanded list of columns - not a tuple containing a single tuple as indicated by schema used in typechecking.

      The patch in PIG-1938 has fix for the case where input schema is present, as it expands the project-star or project-range in that case. Project-range is expanded even in input schema is not present, if it is not a project-to-end, as the number of columns present in such cases is known.

      Attachments

        Issue Links

          Activity

            People

              thejas Thejas Nair
              thejas Thejas Nair
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated: