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

loadCSV, parse and autoType=false #184

Closed
ericemc3 opened this issue May 20, 2021 · 3 comments · Fixed by #186
Closed

loadCSV, parse and autoType=false #184

ericemc3 opened this issue May 20, 2021 · 3 comments · Fixed by #186
Labels
bug Something isn't working

Comments

@ericemc3
Copy link

This with autoType: false does not change c values:

aq.fromCSV(`a,b,c\r
            00152,2,01/01/2021\r
            30219,4,01/01/2021`, 
           { autoType: false,
             parse: { a: v => v,
                      c: v => v.split('/').reverse().join('-')
                   } })

But this with autoType: true works as expected:

aq.fromCSV(`a,b,c\r
            00152,2,01/01/2021\r
            30219,4,01/01/2021`, 
           { autoType: true,
             parse: { a: v => v,
                      c: v => v.split('/').reverse().join('-')
                   } })

I don't see why first block behaves differently

@jheer jheer added the bug Something isn't working label May 20, 2021
@jheer
Copy link
Member

jheer commented May 20, 2021

Thanks for reporting! This is certainly a bug. Will fix shortly.

@jheer
Copy link
Member

jheer commented May 20, 2021

Fix released in 4.7.1.

@ericemc3
Copy link
Author

Thanks a lot!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants