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

Error when generating an empty dictionary

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.2.4
    • Fix Version/s: 6.0.0, 5.6.2
    • Component/s: Code Generator
    • Labels:
      None

      Description

      In the following code

      EXPORT RCCodes(STRING5 Code) := MODULE
      EXPORT Dct := DICTIONARY([
      ],

      { STRING5 Code => STRING GroupType, STRING Description }

      ) : ONCE;
      EXPORT GroupType := Dct[Code].GroupType;
      EXPORT Description := Dct[Code].Description;
      END;

      Description := RCCodes('23456').Description;
      output (Description);

      It is generating an empty dictionary and giving me a compiler error.

      WUID: W20151111-164526

      Compiler error on eclserver. Code 3000.
      Message: assert(dictionary->getOperator() == no_createdictionary) failed - file: /var/lib/jenkins/workspace/LN-Candidate-withplugins-5.4.4-1/LN/centos-6.4-x86_64/HPCC-Platform/ecl/hqlcpp/hqlhtcpp.cpp, line 11283

        Attachments

          Activity

            People

            • Assignee:
              ghalliday Gavin Halliday
              Reporter:
              rebecca.champion@lexisnexis.com Rebecca Champion
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: