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

Constant folding in the optimizer can duplicate code

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Not specified
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.0, 4.2.4
    • Component/s: Code Generator
    • Labels:
      None

      Description

      If the constant folder (or any other transformer) is called from the optimizer, and that transformer creates new version of a dataset, it can cause that dataset code to be evaluated twice.

      In practice it seems to be very rare - but there are a few examples which show the issue.

      Found when experimenting with turning off globalAutoHoist.

        Attachments

          Activity

            People

            • Assignee:
              ghalliday Gavin Halliday
              Reporter:
              ghalliday Gavin Halliday
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: