-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
[Bug]: Smart substitution and prepared statements need you to explicitly cast fields #8784
Comments
@Nikhil-Nandagopal can you please explain what the ask here is ? AFAIK, the reason explicit cast was introduced was because when a number is fed as input, it can be interpreted as both a string and a number, with either case being valid in different scenarios. Is the ask here to auto detect if the number should be casted to an integer or not ? |
@sumitsum yes the ask is the auto-detect types like JSON and number to automatically cast them |
Auto-detect of types like JSON and Numbers are happening.
This issue was raised on 25/10/2021 based on the earlier feedback of some users. Can this be moved to QA for testing. |
@subrata71 @btsgh can you please check if this issue is still valid? |
If the target column in the database is of type integer and the input comes from an input widget, then the input widget must be of Number type. The issue is not valid considering the above fact. |
@subrata71 APMU, the ask here could be to look at the column type that we already have and use that type instead of the inferred type. cc: @sribalajig |
This looks like a valid ask for the DB schema project where we are supposed to leverage the information of the underlying schema. @sumitsum |
Is there an existing issue for this?
Current Behavior
Users have reported that when working with data types in SQL, JSON and number are impossible to insert without an explicit cast.
Similarly in APIs if an input has a number, the value is always sent as a string.
Steps To Reproduce
The same can be reproduced for an API
Environment
Production
Version
Cloud
The text was updated successfully, but these errors were encountered: