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

Syntax error when using ANY-typed attribute with OUTPUT

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Accepted
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 6.2.0
    • Fix Version/s: None
    • Component/s: Code Generator
    • Labels:
      None
    • Compatibility:
      Minor

      Description

      Sample code:

      TestAny(ANY ds) := FUNCTION
          RETURN OUTPUT(ds,,'~testany_out');
      END;
      
      inFile := DATASET(10, TRANSFORM({UNSIGNED4 n}, SELF.n := RANDOM()));
      
      TestAny(inFile);
      

      Syntax-checking the above code results in:

      Error:    syntax error near "," : expected ALGORITHM, ALL, EXTEND, FIRST, HINT, LOCAL, MAXSIZE, NAMED, NOLOCAL, NOOVERWRITE, NOXPATH, ORDERED, OVERWRITE, PARALLEL, STABLE, STORED, THOR, UNORDERED, UNSTABLE, UPDATE, XMLNS (2, 22), 3002, 
      

        Attachments

          Activity

            People

            • Assignee:
              ghalliday Gavin Halliday
              Reporter:
              dcamper Dan S. Camper
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated: