| 1.
["=", ["fact", "id"], <value>] |
works on the nodes endpoint because the array `["fact", "id"]` gets parsed along the way and when it's translated into sql plan it's the string `fact.id`. 2. 3. 4.
["null?", ["fact", "id"], false]
|
doesn't work on any endpoint, I tried on: catalogs, edges, environments, event-counts, events, fact-names, facts, fact-contents, fact-paths, nodes, producers, query, reports, resources On all endpoints the error is:
Value does not match schema: (not (map? nil))
|
This error message is seen after applying the fix in https://tickets.puppetlabs.com/browse/PDB-4305?focusedCommentId=821546&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-821546 . --------------------------------------------------------------------------------------------------------- The `null?` operator works fine on the queryable fields of the endpoints, so the query
["null?", certname, false] |
on nodes (`certname` is a direct field of the nodes endpoint) works as expected. If I force the field on which the `null?` operator is applied to be an array
["null?", [certname], false] |
the query result is the same error message:
Value does not match schema: (not (map? nil)) |
|