Uploaded image for project: 'HPCC'
  1. HPCC
  2. HPCC-22259

Confusing NOTHOR error when there was NOTHOR's in the query

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 7.4.2
    • Component/s: Code Generator
    • Labels:
      None

      Description

      Example was:

      dofunc(string l) := FUNCTION
       o1 := OUTPUT(ds, , PIPE('/home/jsmith/tmp/pipecmd'));
       RETURN WHEN(true,o1,BEFORE);
      END;
      rec mytrans(rec l) := TRANSFORM
       SELF.f1 := IF(dofunc(l.f1), 'a', 'b');
      END;
      
      p2 := PROJECT(ds, mytrans(LEFT));
      c2 := CATCH(NOFOLD(p2), ONFAIL(myFailTrans(FAILMESSAGE)));
      
      SEQUENTIAL(
       OUTPUT(pr);
       OUTPUT(pt);
       OUTPUT(c2);
      );
      

      Gave error:

      Error C4102: OUTPUT to file is not supported inside NOTHOR()

        Attachments

          Activity

            People

            • Assignee:
              ghalliday Gavin Halliday
              Reporter:
              jakesmith Jake Smith
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Due:
                Created:
                Updated:
                Resolved: