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

Skip empty lines instead of erroring #208

Merged
merged 5 commits into from
Mar 15, 2024
Merged

Conversation

ThrawnCA
Copy link
Collaborator

@ThrawnCA ThrawnCA commented Feb 9, 2024

Configure Tabulator to ignore empty rows, #206

Add a unit test sample that has an extra empty line. This ideally should be handled gracefully (ie ignore the extra line)
Extra empty lines at the end of a file should be ignored.
Skip rows that are completely blank instead of erroring out
Can't provide range and single element in the same 'list' call, split them
@ThrawnCA ThrawnCA requested review from duttonw and a team February 9, 2024 05:38
Copy link
Collaborator

@duttonw duttonw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please add one more test to verify behaviour of a blank line of 'commas' i.e
"a","b","c"
"a",,
,,,
"b","d","d"
,,,
,,,

@ThrawnCA
Copy link
Collaborator Author

ThrawnCA commented Mar 15, 2024

please add one more test to verify behaviour of a blank line of 'commas' i.e "a","b","c" "a",, ,,, "b","d","d" ,,, ,,,

That's outside the scope of this PR; it's not really fixable as part of a direct COPY. Also, there could be some cases where a blank row is the intended result and other cases where it's not wanted.

@ThrawnCA ThrawnCA merged commit 8ad1ac9 into master Mar 15, 2024
6 checks passed
JVickery-TBS pushed a commit to open-data/ckanext-xloader that referenced this pull request May 8, 2024
Skip empty lines instead of erroring
# Conflicts:
#	ckanext/xloader/loader.py
### RESOLVED.
JVickery-TBS added a commit to open-data/ckanext-xloader that referenced this pull request May 8, 2024
…58953d3f7cc19f7df2b40

Merge pull request ckan#208 from ckan/github-206-empty-lines
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

Successfully merging this pull request may close these issues.

2 participants