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

VIRTUAL RECORD not passed to EMBED

    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:
    • Compatibility:
      Major

      Description

      This example:

      import python;
      
      d := dataset(['hello'], {string f1});
      
      string f(VIRTUAL RECORD r, string fname) := EMBED(Python)
        return getattr(r, fname)
      endembed;
      
      f(d[1], 'f1');
      

      compiles ok but neither r nor fname are actually passed to the python function

        Attachments

          Activity

            People

            • Assignee:
              ghalliday Gavin Halliday
              Reporter:
              richardkchapman Richard Chapman
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: