odpi / egeria-connector-xtdb

Pluggable repository for Egeria, using XTDB (formerly "Crux") as the back-end to natively support historical metadata.
https://odpi.github.io/egeria-docs/connectors/repository/xtdb/
Apache License 2.0
15 stars 7 forks source link

Edge case in searching produces `xtdb.IllegalArgumentException` #310

Closed cmgrote closed 2 years ago

cmgrote commented 2 years ago

If running a search that includes all of these characteristics:

(For example: searching for Referenceables with a displayName property -- which doesn't exist on Referenceable itself but does exist on many of its child typedefs -- and using the match criteria NONE.)

... then currently the connector will throw an OMRS-REPOSITORY-400-062 An unexpected xtdb.IllegalArgumentException exception was caught by findEntitiesByProperty; error message was Clause refers to unknown variable error.

(Note that running such a query is likely to be very costly anyway given the breadth of what you're asking the system to calculate, and you may therefore want to consider some alternative way to arrive at your desired results; but it should nonetheless run without producing an error.)

cmgrote commented 2 years ago

The same could occur for searches with all of these characteristics:

(For example: searching for Referenceables with a displayName property -- which doesn't exist on Referenceable itself but does exist on many of its child typedefs -- and using the search operator NEQ for that property.)

... then currently the connector will throw an OMRS-REPOSITORY-400-062 An unexpected xtdb.IllegalArgumentException exception was caught by findEntitiesByProperty; error message was Clause refers to unknown variable error.