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

ecl run does not support MACROs or FUNCTIONs

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Not specified
    • Resolution: Invalid
    • 8.4.0
    • None
    • ecl command
    • None

    Description

      It appears that ecl run does not support running MACROs or FUNCTIONs.
       
      I have simplified the code for this Jira:

      Macro
      //echoTest1.ecl
      EXPORT echoTest1(inVal='hello world') := MACRO
       OUTPUT(inVal);

      ENDMACRO;

      then: 

      ecl run hthor "C:\Users\Public\Documents\HPCC Systems\ECL\My Files\MyProgrammersGuide\echoTest1.ecl" --input "<request><inVal>'gbye'</inVal></request>" --ecl-only
       
       
      W20211202-151145
         state: failed
       
      eclcc: (1,0): Error C3: Query is empty

      1 error(s), 0 warning(s)
       
      Function
      //echoTest2.ecl
      EXPORT echoTest2(STRING inVal='hello world') := FUNCTION
      RETURN OUTPUT(inVal);

      END;

      then: 

      C:\Program Files (x86)\HPCCSystems\8.4.0\clienttools\bin>ecl run hthor "C:\Users\Public\Documents\HPCC Systems\ECL\My Files\MyProgrammersGuide\echoTest2.ecl" --input "<request><inVal>'gbye'</inVal></request>" --ecl-only
       
       
      W20211202-153719
         state: failed
       
      eclcc: (1,0): Error C3: Query is empty

      1 error(s), 0 warning(s)
       

      Attachments

        Activity

          People

            Unassigned Unassigned
            jamesdefabia Jim DeFabia
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: