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

CHOOSEN may not be short-circuited when inlined

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 6.2.0
    • Fix Version/s: 6.2.0
    • Component/s: Code Generator
    • Labels:
      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

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

                Dates

                • Created:
                  Updated:
                  Resolved: