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

GLOBAL() breaks pyembed outputs

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Not specified
    • Resolution: Duplicate
    • Affects Version/s: 7.2.14
    • Fix Version/s: None
    • Component/s: Embedded Languages, Thor
    • Labels:
      None
    • Environment:
      Ubuntu 18.04 on AWS instance. Using AMI (ami-0466912acbeaf66a3). Using Python 3.

      Description

      Pyembed function (python3) returns a "-1 row" count when being passed a dataset that has been through the GLOBAL() function. The expected output is a single record, i.e. 1 Row.

       

      //Example:
      recOut := RECORD
      STRING one;
      STRING two;
      END;
      recIn := RECORD
      INTEGER first;
      DATAxxx someData;
      END;

      ds := DATASET([{}..{}], recIn);
      dsG := GLOBAL(ds, few);

      rec myFunc(DATASET(rec2) inputDS) := EMBED(Python3 : globalscope('test'),persist('global'))
      return ('a','b')
      ENDEMBED;

      //outputs 1 record, as expected
      OUTPUT(ds);

      //outputs -1 record, but is still visible in ECL watch
      OUTPUT(dsG);
       

       

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              rkennedy Robert Kennedy
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: