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

BUILD(idx [,options]) form errors

    Details

      Description

      BUILD's documentation contains a third from:

      [attrname := ] BUILD( indexdef [, options ] );
      Form 3 creates an index file by using a previously defined INDEX definition.
      
      Example:
      nameKey := INDEX(mainTable,{surname,forename,filepos},'name.idx');
      BUILD(nameKey); //gets all info from the INDEX definition
      

      If you try this as-is, the code fails during syntax-checking:

      DataRec := {UNSIGNED4 n, UNSIGNED4 v};
      oldIDX := INDEX({DataRec.n}, {DataRec}, '~dcamper::test_idx_1');
      BUILD(oldIDX);
      
      3000:  assert(queryChild(2)->getOperator() == no_newtransform) failed - file: hqlexpr.cpp, line 4675
      

      However, I don't think this form of BUILD is documented correctly. Where will BUILD place the new file? There seems to be no provision for a new logical file path.

      Bottom line, something is wrong here, or multiple somethings.

        Attachments

          Activity

            People

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

              Dates

              • Due:
                Created:
                Updated:
                Resolved: