[CQLPG-24] CQL translator: support Array=String Created: 30/Mar/17 Updated: 03/Apr/19 Resolved: 03/Apr/19 |
|
| Status: | Closed |
| Project: | cql2pgjson |
| Components: | None |
| Affects versions: | None |
| Fix versions: | None |
| Type: | Task | Priority: | P3 |
| Reporter: | Julian Ladisch | Assignee: | Unassigned |
| Resolution: | Won't Do | Votes: | 0 |
| Labels: | sprint29 | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original estimate: | Not Specified | ||
| Issue links: |
|
||||||||||||||||||||||||||||
| Sprint: | |||||||||||||||||||||||||||||
| Description |
|
Array=String should match if the Array element exists and the Array contains the element String. |
| Comments |
| Comment by Kurt Nordstrom [ 25/May/17 ] |
|
This seems to already be the current behavior. Has this not been explicitly implemented? |
| Comment by Julian Ladisch [ 29/May/17 ] |
|
The readme says: "For matching the elements of an array use these queries (assuming that lang is either an array or not defined, and assuming an array element value does not contain double quotes)". So the current behavior can fail if the field can contain double quotes, or if the fields are not strings (e.g. integers). Instead of "Array = String" there should be some new cql operator, for example "Array arrayelement String". |
| Comment by Jakub Skoczen [ 13/Dec/17 ] |
|
Let's discuss the syntax before any implementation happens. |
| Comment by Julian Ladisch [ 13/Dec/17 ] |
|
See https://folio-org.atlassian.net/browse/FOLIO-922 for an example where we need to match two properties of the array element (typeId of ISBN): ]'; |
| Comment by Jakub Skoczen [ 03/Apr/19 ] |
|
Closing this in favour of
|