Skip to content
This repository has been archived by the owner on Nov 19, 2023. It is now read-only.

pq "from a | select { b, c }" fails with syntax error #37

Open
SrslyJosh opened this issue Nov 15, 2023 · 0 comments
Open

pq "from a | select { b, c }" fails with syntax error #37

SrslyJosh opened this issue Nov 15, 2023 · 0 comments

Comments

@SrslyJosh
Copy link

The latest version of pq (0.0.15) doesn't seem to accept the same syntax for select that's documented on the PRQL website.

Example:

$ $ pq "from a | select { b, c }"
Error: Error:
   ╭─[:2:17]
   │
 2 │ from a | select { b, c }
   ·                 ┬
   ·                 ╰── unexpected {
───╯
Error:
   ╭─[:2:24]
   │
 2 │ from a | select { b, c }
   ·                        ┬
   ·                        ╰── unexpected }
───╯

I think this might be because pq is currently using an older version of prqlc:

$ pq "from a | select b"
SELECT
  b
FROM
  a

-- Generated by PRQL compiler version:0.6.1 (https://prql-lang.org)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant