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 PM9/15/22
to puppe...@googlegroups.com
Austin Blatt created an issue
 
PuppetDB / Bug PDB-5538
PQL subquery generating AST rejected as invalid
Issue Type: Bug Bug
Assignee: Unassigned
Created: 2022/09/15 2:33 PM
Priority: Normal Normal
Reporter: Austin Blatt
Add Comment Add Comment
 
This message was sent by Atlassian Jira (v8.20.11#820011-sha1:0629dd8)
Atlassian logo

Austin Blatt (Jira)

unread,
Sep 15, 2022, 5:36:03 PM9/15/22
to puppe...@googlegroups.com
Austin Blatt updated an issue
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}
Reply all
Reply to author
Forward
0 new messages