-
Notifications
You must be signed in to change notification settings - Fork 15
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] Cannot read properties of undefined (reading 'length') #641
Comments
The above jayvee/libs/language-server/src/lib/ast/wrappers/value-type/primitive/decimal-value-type.ts Line 10 in 186dcb7
@joluj What would you say is the intended behavior here? |
AFAIK leading whitespaces are part of the cell in CSV. Therefore it's the problem with the CSV. However, that does not remove the real-world problem of having leading (and also trailing) whitespaces. I'd suggest adding an attribute @rhazn @georg-schwarz Opinions? |
I'd consider parsing ' 5' as the number 5 correct, so I'd just silently strip leading and trailing whitespace from number values honestly. I think that's pretty intuitive and I'm struggling to come up with edge cases that would make it incorrect. |
Me neither, however, I'm not too big of a fan of silently parsing the number. I'd prefer setting |
Or we need a transform function (and a nicer Syntax to apply those) :) |
@ozalieg When using #648, I'm able to execute the following pipeline without crashes/errors.
it results in this table: | "Name" | "Sex" | "Age" | "Height (in)" | "Weight (lbs)" |
|--------|------------|--------|----------------|-----------------|
| "Alex" | "M" | 41 | 74 | 170 |
| "Bert" | "M" | 42 | 68 | 166 |
| "Carl" | "M" | 32 | 70 | 155 |
| "Dave" | "M" | 39 | 72 | 167 |
| "Elly" | "F" | 30 | 66 | 124 |
| "Fran" | "F" | 33 | 66 | 115 |
| "Gwen" | "F" | 26 | 64 | 121 |
| "Hank" | "M" | 30 | 71 | 158 |
| "Ivan" | "M" | 53 | 72 | 175 |
| "Jake" | "M" | 32 | 69 | 143 |
| "Kate" | "F" | 47 | 69 | 139 |
| "Luke" | "M" | 34 | 72 | 163 |
| "Myra" | "F" | 23 | 62 | 98 |
| "Neil" | "M" | 36 | 75 | 160 |
| "Omar" | "M" | 38 | 70 | 145 |
| "Page" | "F" | 31 | 67 | 135 |
| "Quin" | "M" | 29 | 71 | 176 |
| "Ruth" | "F" | 28 | 65 | 131 | |
Steps to reproduce
Description
Example Pipeline where the error occurs
The text was updated successfully, but these errors were encountered: