Skip to content

Bug Fix #127

Merged
pdowler merged 5 commits intoopencadc:mainfrom
aratikakadiya:bugfix
Nov 21, 2025
Merged

Bug Fix #127
pdowler merged 5 commits intoopencadc:mainfrom
aratikakadiya:bugfix

Conversation

@aratikakadiya
Copy link
Contributor

Stop iterating if writing a row in TableData or Binary format failed.

…ting failed in tabledata format.

Replaced hasFailure var to be a local var instead of class var.
Updated row-count calculation logic.
rowCount ++;
List<Object> row = rowIter.next();
writeRow(out, row);
success = writeRow(out, row);
Copy link
Member

Choose a reason for hiding this comment

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

I think the structure used in the BinaryElementWriter, where writeRow(...) just throws whatever exception occurs and the try/catch (set trailer and break) is in the while loop is simpler and works for all failures.

Please update the TableDataElementWriter to the same structure.

pdowler
pdowler previously approved these changes Nov 21, 2025
@pdowler pdowler dismissed their stale review November 21, 2025 19:42

checkstyle failure to address

@pdowler pdowler merged commit 324c683 into opencadc:main Nov 21, 2025
1 check passed
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