-
Notifications
You must be signed in to change notification settings - Fork 11
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] Scientific mathematical notations are being read as text #488
Comments
Just to be clear on wording @kreuz1995 , the values are not being read as text or decimal datatype by Jayvee. You define the datatype of a column and if you define it to be decimal, these values (that should be valid) are considered invalid by Jayvee. That is a subtle difference (but the bug exists). For anyone solving this: The reason for this will be the scientific notation failing the regex check in https://github.com/jvalue/jayvee/blob/main/libs/execution/src/lib/types/valuetypes/internal-representation-parsing.ts#L51 , the actual parsing works fine. |
I'll play the devil's advocate: Do we really want to support that notation per default? Not sure which design is better. How much of the logic should we move into the language vs. how much should be modeled by the user explicitly? In this specific case, I wouldn't mind either way. But we should establish some rule-of-thumb if we can. |
Interesting, I thought this would be a no-brainer but I can see how it might not be. However, in general I think we should try to be as wide with parsing as possible, e.g., if it is possible to clearly parse a value correctly, we should do so. I think we should parse |
Steps to reproduce
Steps:
Description
The text was updated successfully, but these errors were encountered: