Title: Message Title
Austin Blatt updated an issue
PuppetDB / PDB-4493
Query function count() broken for JSON fields
Change By:
Austin Blatt
For a query like{code} facts[name, count(value)] { certname ~ "^pe.*" group by name}{code}The query engine currently constructs an SQL SELECT that looks like{code} SELECTfs.key AS name, count((value#>>'{}')::numeric)count{code} Which causes the error{code} javax.servlet.ServletException: org.postgresql.util.PSQLException: ERROR: invalid input syntax for type numeric: "root"{code} But the The argument to count is invalid and it should be closer to{code} SELECTfs.key AS name, count(value)count{code} *_NOTE_: The error will only happen if the table has data.*
Add Comment
This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93)
--
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails