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

Error passing arguments to embedded functions

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Not specified
    • Resolution: Fixed
    • None
    • 8.8.0
    • Code Generator
    • None
    • Ubuntu

    Description

      When passing arguments to embedded functions, there is a conflict between argument names and unrelated attributes with the same name but different capitalization.

      For example, the following runs successfully:

          IMPORT Python3 AS Python;

          anyinput := 5;

          UNSIGNED testFunc(UNSIGNED anyinput) := EMBED(Python)

              return anyinput + 1

          ENDEMBED;

          result := testFunc(1)

          OUTPUT(result);

      But if I change the second line from:

          anyinput := 5;

      to:

          anyInput := 5;

      That is, change the capitaliztion of the attribute by 1 or more characters, the job fails with the following error:

      Error: 0: pyembed name 'anyinput' is not defined

      This attribute should be independent of the argument name for the embed, but there is some errant interaction when the capitalization is changed.

      Attachments

        Activity

          People

            ghalliday Gavin Halliday
            rdev Roger Dev
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: