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

ASSERT for scalar values

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Accepted
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Language
    • Labels:
      None

      Description

      An ASSERT can be tied to a recordset, or can be an action.

      A module or function structure that does not have any record sets (scalars only) cannot currently use an ASSERT to enforce rules.

      The programmer needs something like (for a MODULE):
      SHARED myCheck := ASSERT(<some scalar parameter value checks>, <message>);
      EXPORT partition_rows := VALIDATE(<some scalar>, myCheck);

      Alternatively, a workflow form could be used instead.
      EXPORT foo := FUNCTION
      RETURN 0;
      END : ASSERT(...);
      for a function; and
      EXPORT foo := <some scalar> : myCheck;
      for a module export.

        Attachments

          Activity

            People

            • Assignee:
              anybody Available for anyone
              Reporter:
              johnholt John Holt
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: