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

parametrize SUBSTRING NOT WORKING

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Invalid
    • Affects Version/s: 0.12.0
    • Fix Version/s: None
    • Component/s: build
    • Labels:
      None
    • Environment:

      CENTOS

      Description

      Substring doesnt work when parameterized

      94km SSE of False Pass, Alaska

      Expected result ( Alaska)

      B= foreach A generate mag,TRIM(place) as pl:chararray, LAST_INDEX_OF(TRIM(place),',')as idx:int,SIZE(TRIM(place)) as sz:int ;

      C= foreach B generate mag SUBSTRING( TRIM(pl),idx,sz ) as st:chararray ;

      Thanks,

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              ashishsoni Ashish Soni
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: