Skip to content

orderBy with SUM return a wrong order if the type is BigInt. #2740

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

Open
HuberTRoy opened this issue Apr 14, 2025 · 1 comment
Open

orderBy with SUM return a wrong order if the type is BigInt. #2740

HuberTRoy opened this issue Apr 14, 2025 · 1 comment

Comments

@HuberTRoy
Copy link
Member

https://explorer.subquery.network/subquery/subquery/subquery-mainnet

{
  projects(orderBy: DEPLOYMENT_BOOSTER_SUMMARIES_SUM_TOTAL_AMOUNT_DESC) {
    nodes {
      id
      deploymentBoosterSummaries {
        aggregates {
          sum {
            totalAmount
          }
        }
      }
    }
  }
}

It compare with string rule:

'800' > '7000'

The type of totalAmount is BitInt in schema.

@stwiname
Copy link
Collaborator

This is a known bug without a concrete solution. #2703

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants