-
Notifications
You must be signed in to change notification settings - Fork 6
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
CSVSource references missing example file in readme #310
Comments
Let me take a look tomorrow or over the weekend. The original source person seems to be gone, but I'll see if I can conjure up something. I checked on my machine & didn't find it. |
Thanks, what wasn’t clear was how to structure the Schema in the configuration in terms of data type for each field. The example shows “value”, “flag” and “YScale” – though interested in other types that could be used.
I’ll also look in the code too 😊
Thanks,
Mark
|
Fred, I figured it out after looking at the code 😊. Creates all values as string and if using the schema, the key values must be field0, field1… and the value for this field index would be used as the property key/name for the value read.
Also, may be obvious for others but it took a few attempts to figure out if you want “|” as the delimiter you need to specify “\\|”.
Lastly, the configuration “processNullValues” the way it works today doesn’t make sense if you are reading in csv files – you will always want to count null fields otherwise everything would be messed up. Instead, I’m using it to return null string (“”) for this and returning the field in the json object. If false, it does not include the field in the json object.
May not be everyone’s use case but this way all fields are returned, and we are not wondering if the field was missed accidently.
Anywah, thanks again!
Mark
|
@sagizagagi, Do you have anything you can add here? |
@msilva123 If you have suggestions or improvement in the readme, please send them along. Thx |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In the ReadMe file there is a reference to a sample csv file (/src/test/resource/ejesmall.csv) that could be used with the CSVExample.
This file is missing in the repo.
The text was updated successfully, but these errors were encountered: