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

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

Conclusion

None

relates to

Activity

Show:

Shamser Ahmed April 18, 2016 at 12:58 PM

Fails when myset is a stored variable

SET OF STRING myset := ['abc','def' ] : stored('x');

(It does seem to work if myset is not stored.)

Gavin Halliday April 14, 2016 at 2:22 PM

we'll do this as a worked example together. The change should be relatively simple, but there is quite a lot of background knowledge.

Fixed
Pinned fields
Click on the next to a field label to start pinning.

Details

Components

Assignee

Reporter

Priority

Fix versions

Created June 26, 2015 at 2:45 PM
Updated August 24, 2016 at 12:24 PM
Resolved June 8, 2016 at 8:42 AM

Flag notifications