Open Phok7 opened 2 months ago
Sorry I forgot to say that this happens in mocked mode, in production is working fine. Sorry.
I see this happening in production if the first value saved is an integer even if the type is float.
Ex: first value saved to DynamoDB is 1, but in GraphQL schema it is declared as float. The OpenSearch mapping saves the index as having a type of Long for the field.
How did you install the Amplify CLI?
npm
If applicable, what version of Node.js are you using?
v18.13.0
Amplify CLI Version
12.12.4
What operating system are you using?
Ubuntu 22.04
Did you make any manual changes to the cloud resources managed by Amplify? Please describe the changes made.
No manual changes made.
Describe the bug
Hello!
I have a model in my schema.graphql with a property named Value of Float type.
When I try to make a aggregation query to get the sum or avg, for example, It returns a result with no float points.
Query:
Result:
If I do a GET measurementvalue/_mapping, this is the result:
The type of the generated index in OpenSearch is long, nor float or double.
Thanks.
Expected behavior
The type of the generated index in OpenSearch should be float, not long.
Reproduction steps
Project Identifier
No response
Log output
Additional information
No response
Before submitting, please confirm: