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

"Internal Server Error" If the first doc in collection has a number field with a 0 decimal value (integer) #22

Open
Voxar opened this issue Jan 24, 2024 · 1 comment

Comments

@Voxar
Copy link

Voxar commented Jan 24, 2024

Describe the bug
Trying out Grafana and I get error when trying the queries with the grafana firebase plugin.

Figured out that it only happens when a number field in the first document in the collection contains an integer but any other document contains decimals.

internal server error
(Trace ID: 1a0337d32504d4ba2a14299ab0a6492d)

To Reproduce
Steps to reproduce the behavior:

  1. Go to firestore and create a new test_collection
  2. Add a document with a number field and set an integer value
  3. Add a document with a number field and set a value with a decimal (float/double)
  4. select * from test_collection

Expected behavior
Should reevaluate its choice of type from int to float or double. Or add type specifier to the syntax ("select temp: float from temperatures")

Screenshots
If applicable, add screenshots to help explain your problem.

@Voxar
Copy link
Author

Voxar commented Jan 24, 2024

It actually gives the same error of you put a decimal number in the first document and an integer in the second as well.

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

1 participant