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

How to exclude specific row? #104

Open
bayraktugrul opened this issue Jan 9, 2020 · 4 comments
Open

How to exclude specific row? #104

bayraktugrul opened this issue Jan 9, 2020 · 4 comments

Comments

@bayraktugrul
Copy link

I want to exclude first and last rows from my CSV file before I start to process. Is there any options method for it? There are exclude and include column methods. I could not find for rows. Any idea about it?

@Zavster
Copy link
Contributor

Zavster commented Jan 9, 2020

You can set a row predicate on the CsvSourceOptions that receives a String[] with the contents of each row - not sure if that would work. It might be worth augmenting the predicate to receive the row number as well as the String[] contents...

@bayraktugrul
Copy link
Author

Contents of first and last rows are different for each CSV file. Files will be uploaded by clients. I guess that does not work for this situation. Actually skipping some specific rows are an expected feature. Looks like solution is removing rows before giving as an input to Morpheus.

@Zavster
Copy link
Contributor

Zavster commented Jan 9, 2020

I'll look to add an enhancement to facilitate this

@bayraktugrul
Copy link
Author

That would be great. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants