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

CHOOSEN may not be short-circuited when inlined

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 6.2.0
    • 6.2.0
    • Code Generator
    • None

    Description

      In an example with embedded python returning a dataset that was passed to another embedded python function, I had

      choosen(myfunc(), 10) 
      

      which generated the following code:

      RtlLinkedDatasetBuilder crM(allocN, 10LL);
      Owned<IRowStream> vQ;
      vQ.setown(user2(ctx,allocN,"MNIST_data",""));
      for (;;) {
              rtlRowAttr vR;
              vR.setown(vQ.get()->nextRow());
              if (!vR.getbytes()) break;
              crM.append(vR.getbytes());
      }
      

      Attachments

        Issue Links

          Activity

            People

              richardkchapman Richard Chapman
              richardkchapman Richard Chapman
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: