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

Cannot MERGE() with descending sorts

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 6.4.20
    • Fix Version/s: 7.2.4
    • Component/s: Code Generator
    • Labels:
      None

      Description

      Sample code:

      DataRec := {UNSIGNED4 n};
      
      ds1 := DATASET([7,3,5,1,9], DataRec);
      ds2 := DATASET([6,2,8,4], DataRec);
      
      sortedDS1 := SORT(NOFOLD(ds1), -n);
      sortedDS2 := SORT(NOFOLD(ds2), -n);
      
      res := MERGE([sortedDS1, sortedDS2], SORTED(-n));
      OUTPUT(res, NAMED('res'));
      

      This code, when run on Thor, produces a runtime error:

      eclcc	Error	3000	" assert(cur->getOperator() == no_select) failed - file: hqlstep.cpp, line 490"	
      eclcc	Warning	0	"assert(cur->getOperator() == no_select) failed - file: hqlstep.cpp, line 490"
      

        Attachments

          Activity

            People

            • Assignee:
              ghalliday Gavin Halliday
              Reporter:
              dcamper Dan S. Camper
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Due:
                Created:
                Updated:
                Resolved: