BI-1900 - Exp error message improvement: unrecognized column header#296
Merged
mlm483 merged 5 commits intorelease/0.8.1from Oct 6, 2023
Merged
BI-1900 - Exp error message improvement: unrecognized column header#296mlm483 merged 5 commits intorelease/0.8.1from
mlm483 merged 5 commits intorelease/0.8.1from
Conversation
mlm483
commented
Oct 5, 2023
nickpalladino
approved these changes
Oct 6, 2023
Contributor
Author
|
The TAF scenarios that failed were all due to the fact that the changes made to the "Test (T) or Check (C)" column name that have been merged into the develop branch of bi-web, bi-api, and TAF are not present in the |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Story: https://breedinginsight.atlassian.net/browse/BI-1900
We parse Excel and CSV files into tablesaw
Tables. For Excel files, we use Apache POI to parse, do some validation, and then build aTable. For CSV files, we were using tablesaw to read the CSV into aTabledirectly. While tablesaw does return descriptive error messages, it doesn't give us as fine-grained control over parsing and exception handling as we want. To solve this, I made changes toFileUtil::parseTableFromCsvtoInputStreaminto aString,apache.commons.CSVParserand do validation, which enables us to return descriptive error messages that we control to the user, andTablefrom theString.Testing
New feature:
Try uploading Excel and CSV files with duplicate column names, make sure the error message shown to the user is descriptive.
Regression
Try uploading Excel and CSV files with required column names missing, any other data issues you can think of, and make sure the error message shown to the user is descriptive.
Checklist: