Comments (6)
Just saw RowDecoder.either[A,B]
... is there a way of co-opting that to get what I want?
from kantan.csv.
Short answer: no.
Long answer: v0.1.9 has exactly what you want, an error type that's actually useful. If you were to attempt to parse abcd
as an Int
cell, for instance, you'd get a Failure(TypeError(e))
, where e
is the NumberFormatException
that was thrown.
I'm not entirely sure when v0.1.9 will be ready to release, but that's what I'm working on at the moment. Let me know if this is a blocking issue for you and I'll see if I can speed things up or release an intermediate version.
from kantan.csv.
Not a blocking issue, but would be nice long term.
Sorry I didn't say this before: This is a fantastic library.... CSV for Scala, done right. I've used product-collections
and shapeless
to do this before, and your architecture is superior.
from kantan.csv.
I agree that it'd be nice - so much so, in fact, that it's already implemented.
Glad that you enjoy kantan.csv, I'm quite happy with the direction it's headed mysef :)
Do join the gitter channel if you have questions that you're not sure qualify as issues - I'm usually around and happy to help.
from kantan.csv.
v0.1.9 (available as a SNAPSHOT) reworks error handling and should fix this. Could you check whether the new implementation matches what you had in mind and, if so, close this issue?
from kantan.csv.
I'll consider this closed for now, feel free to reopen if I'm wrong.
from kantan.csv.
Related Issues (20)
- Optional header field HOT 2
- CellDecoder[LocalDate] not allow white space. HOT 5
- [feat request] Publishing for Scala.js 1.0.0 HOT 4
- Separator detection
- Help with a case
- could not find implicit value for evidence parameter of type kantan.csv.HeaderDecoder HOT 8
- RowEncoder for more than 22 fields
- Overriding codecs HOT 2
- Enabling `quoteAll` breaks double quote escaping
- Configurable line separator (write CSV with \n line separator)
- Consuming a pipe-delimited file becomes erratic when is set to CsvConfiguration('|', '"', QuotePolicy.Always, Header.None)
- Intellij red flag Ambiguous implicit complain still sbt compilation works fine HOT 2
- Can we use this to read csv from S3 bucket and how? HOT 1
- Scala 3 support HOT 3
- my readCsv fails on corrupted file without means to inspect it
- Help with identifying separator HOT 1
- Case insensitive headers HOT 2
- Parsing a cell as a NonEmptyList
- Single columns optional with CSV containing headers
- Why case class has implicits issue ? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kantan.csv.