Skip to content

[pb 0.6.0, parseable 2.5.13] trying to run the query shown in README produces an error: "unknown flag: --from" #89

@lumiera

Description

@lumiera

Trying to run the query shown in the video:

pb query 'SELECT * FROM "my-stream" LIMIT 3' --from 1m --to now

produces an error and the usage text:

$ pb query 'SELECT * FROM "my-stream" LIMIT 3' --from 1m --to now
Error: unknown flag: --from
Usage:
  pb query [command]

Available Commands:
  list        List of saved queries
  run         Run SQL query on a log stream

Flags:
  -h, --help   help for query

Use "pb query [command] --help" for more information about a command.

$

EDIT:

Trying to run the same query using a different subcommand (pb query run) that is shown later in the text of the README produces a different error:

$ pb query run 'SELECT * FROM "my-stream" LIMIT 3' --from 1m --to now
Json deserialize error: expected `,` or `}` at line 2 column 28
Error: non-200 status code received: 400 Bad Request
Usage:
  pb query run [query] [flags]

Examples:
  pb query run "select * from frontend" --from=10m --to=now

Flags:
  -f, --from string     Start time for query. (default "1m")
  -h, --help            help for run
  -o, --output string   Output format (text|json)
  -t, --to string       End time for query. (default "now")

$

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions