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

Extension of index_field[1..n]=field to IN

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 6.2.0
    • Component/s: Code Generator
    • Labels:
      None

      Description

      We presently have an optimization allowing the leading component of a string to be matched in a KEYED expression. eg

      I := myindex( field[1..LENGTH(S)] = S );

      I am using this in our geohashing logic.

      Usually I have four strings of the same length - all of which I need to match to in this manner.

      I := myindex( KEYED(field[1..4] IN myset) );

      fails. I can obviously fake this with 4 index fetches and a concat - but it would be nice for the platform to support it

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                shamser Shamser Ahmed
                Reporter:
                dabayliss David Bayliss
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: