Skip to content

Boolean collection functions (anyTrue, not, ...) fail on empty collections #2150

Open
@piotrszul

Description

@piotrszul

not(), anyTrue(), allTrue(), anyFalse(), allFalse() fail on explicit empty collections while they should produce a result.

(Existence exclusions)

Details

java.lang.IllegalArgumentException: argument type mismatch

  • Functions.attrempty.not() [** empty coll with not() is empty coll]
  • Functions.nothing.not() [** not nothing is empty coll]

Details

java.lang.IllegalArgumentException: argument type mismatch

  • Functions.attrempty.allTrue() [** allTrue for empty coll is true]
  • Functions.nothing.allTrue() [** allTrue for non exists coll is true]

Details

java.lang.IllegalArgumentException: argument type mismatch

  • Functions.attrempty.anyTrue() [** anyTrue for empty coll is false]
  • Functions.nothing.anyTrue() [** anyTrue for non-exists coll is false]

Details

java.lang.IllegalArgumentException: argument type mismatch

  • Functions.attrempty.allFalse() [** allFalse for empty coll is true]
  • Functions.nothing.allFalse() [** allFalse for non-exists coll is true]

Details

java.lang.IllegalArgumentException: argument type mismatch

  • Functions.attrempty.anyFalse() [** anyFalse for empty coll is false]
  • Functions.nothing.anyFalse() [** anyFalse for non-exists coll is false]

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingfhirpathRelated to fhirpath reference implementation

    Type

    Projects

    Status

    Planned

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions