Groups
Groups
Sign in
Groups
Groups
Puppet Bugs
Conversations
About
Send feedback
Help
Jira (PDB-5538) PQL subquery generating AST rejected as invalid
2 views
Skip to first unread message
Austin Blatt (Jira)
unread,
Sep 15, 2022, 5:34:03 PM
9/15/22
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to puppe...@googlegroups.com
Austin Blatt
created
an issue
PuppetDB
/
PDB-5538
PQL subquery generating AST rejected as invalid
Issue Type:
Bug
Assignee:
Unassigned
Created:
2022/09/15 2:33 PM
Priority:
Normal
Reporter:
Austin Blatt
Add Comment
This message was sent by Atlassian Jira
(v8.20.11#820011-
sha1:0629dd8
)
Austin Blatt (Jira)
unread,
Sep 15, 2022, 5:36:03 PM
9/15/22
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to puppe...@googlegroups.com
Austin Blatt
updated
an issue
PuppetDB
/
PDB-5538
PQL subquery generating AST rejected as invalid
Change By:
Austin Blatt
I believe the following PQL should work, but it does not (as of PuppetDB 6.x be2e6b468).
{code}
curl -X POST
http://localhost:8080/pdb/query/v4
2>/dev/null \
-H 'Content-Type:application/json' \
-d '{"query": "catalogs[certname] { certname in resources { type = \"Class\" and title = \"Profile::OS::Base\" } }" }'
{code}
{code}
AST validation failed, but was successfully converted to SQL. Please file a PuppetDB ticket at
https://tickets.puppetlabs.com
Unrecognized ast clause ["in" "certname" ["from" "resources" ["and" ["=" "type" "Class"] ["=" "title" "Profile::OS::Base"]]]] in ast query ["extract" ["certname"] ["and" ["in" "certname" ["from" "resources" ["and" ["=" "type" "Class"] ["=" "title" "Profile::OS::Base"]]]] ["=" "node_state" "active"]]]
{code}
Add Comment
Reply all
Reply to author
Forward
0 new messages