Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

count() function no longer works on v0.19.0 #101

Closed
SadMachinesP86 opened this issue May 18, 2024 · 1 comment
Closed

count() function no longer works on v0.19.0 #101

SadMachinesP86 opened this issue May 18, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@SadMachinesP86
Copy link

Describe the bug
Any usage of count() results in an error Function 'count' argument number 0 with type '(some type)' don't match expected type 'Integer'.

To Reproduce
Steps to reproduce the behavior:

  1. Upgrade to v0.19.0
  2. Enter GQL console in any repo
  3. Try any count(), query, i.e. select count(commit_id) from commits
gql > select count(commit_id) from commits
[Error]: Function `count` argument number 0 with type `Text` don't match expected type `Integer`
=> Column 12 to 12,
  |
1 | select count(commit_id) from commits
  | ------------^
  |

Expected behavior
On v0.18.0, this returns the following:

gql > select count(commit_id) from commits
╭──────────╮
│ column_2 │
╞══════════╡
│ 27       │
╰──────────╯

Screenshots
N/A (output provided)

GQL (please complete the following information):

  • v0.19.0
@AmrDeveloper
Copy link
Owner

Hello @SadMachinesP86,

Thank you so much for fast reporting, it fixed now on 0.19.1

Thank you,
Amr

@AmrDeveloper AmrDeveloper added the bug Something isn't working label May 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants