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

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

@SrslyJosh

Description

@SrslyJosh

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions