turbot / steampipe-plugin-github

Use SQL to instantly query repositories, users, gists and more from GitHub. Open source CLI. No DB required.
https://hub.steampipe.io/plugins/turbot/github
Apache License 2.0
74 stars 29 forks source link

Variable definition error in github_branch table #386

Closed misraved closed 11 months ago

misraved commented 11 months ago

Describe the bug On running the the following query, I get Error: Variable $includeRLRemaining is used by anonymous query but not declared (SQLSTATE HV000) error.

select
  name,
  commit ->> 'sha' as commit_sha,
  commit ->> 'message' as commit_message,
  commit ->> 'url' as commit_url,
  commit -> 'author' -> 'user' ->> 'login' as author,
  commit ->> 'authored_date' as authored_date,
  commit -> 'committer' -> 'user' ->> 'login' as committer,
  commit ->> 'committed_date' as committed_date,
  commit ->> 'additions' as additions,
  commit ->> 'deletions' as deletions,
  commit ->> 'changed_files' as changed_files
from
  github_branch
where
  repository_full_name = 'turbot/steampipe';

Steampipe version (steampipe -v) Example: v0.21.1

Plugin version (steampipe plugin list) Example: latest main

To reproduce Build the latest main and run the above mentioned query, Steampipe instantly returns the error.

Expected behavior A clear and concise description of what you expected to happen.

Additional context Add any other context about the problem here.