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

Conversion from double to chararray for udf input arguments does not occur

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Invalid
    • 0.4.0
    • 0.9.0
    • None
    • None

    Description

      Script showing the problem:

       "a = load '/user/pig/tests/data/singlefile/studenttab10k' as (name, age, gpa:double); b = foreach a generate CONCAT(gpa, 'dummy'); dump b;"
      
      Error shown:
      2009-08-03 17:04:27,573 [main] ERROR org.apache.pig.tools.grunt.Grunt - ERROR 1045: Could not infer the matching function for org.apache.pig.builtin.CONCAT as multiple or none of them fit. Please use an explicit cast.
      
      

      The error goes away if gpa is casted to chararray.

      Attachments

        Issue Links

          Activity

            People

              gates Alan Gates
              pkamath Pradeep Kamath
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: