Skip to content

Allow append rows in Streaming workbook#528

Closed
jlolling wants to merge 1 commit intoapache:trunkfrom
jlolling:20230913_allow_append_for_streaming
Closed

Allow append rows in Streaming workbook#528
jlolling wants to merge 1 commit intoapache:trunkfrom
jlolling:20230913_allow_append_for_streaming

Conversation

@jlolling
Copy link

@jlolling jlolling commented Oct 9, 2023

According to the ticket: https://bz.apache.org/bugzilla/show_bug.cgi?id=67646
Here the pull request to solve the issue.

@jlolling jlolling closed this Oct 9, 2023
Copy link
Member

@pjfanning pjfanning left a comment

Choose a reason for hiding this comment

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

Can you add a test case?

*
* For example, {@code sheet.setColumnBreak(2);} breaks the sheet into two parts
* with columns A,B,C in the first and D,E,... in the second. Similar, {@code sheet.setRowBreak(2);}
* with columns A,B,C in the first and D,E,... in the second. Simuilar, {@code sheet.setRowBreak(2);}
Copy link
Member

Choose a reason for hiding this comment

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

Can you fix the typo here?


/**
* Ungroup a range of columns that were previously grouped
* Ungroup a range of columns that were previously groupped
Copy link
Member

Choose a reason for hiding this comment

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

another typo - please do not give us PRs where you randomly change code unrelated to your fix

*/
@Override
public void groupColumn(int fromColumn, int toColumn) {
_sh.groupColumn(fromColumn, toColumn);
Copy link
Member

Choose a reason for hiding this comment

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

why are you reformatting this code?

} else {
//expandRow(rowIndex);
throw new IllegalStateException("Unable to expand row: Not Implemented");
throw new RuntimeException("Unable to expand row: Not Implemented");
Copy link
Member

Choose a reason for hiding this comment

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

please do not change the exception type

} catch (UnsatisfiedLinkError | InternalError e) {
LOG.atWarn().log("Failed to create AutoSizeColumnTracker, possibly due to fonts not being installed in your OS", e);
}
_autoSizeColumnTracker = new AutoSizeColumnTracker(this);
Copy link
Member

Choose a reason for hiding this comment

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

please do not randomly change code like this- undo this change or the PR is rejected

@jlolling
Copy link
Author

jlolling commented Oct 9, 2023 via email

@jlolling
Copy link
Author

jlolling commented Oct 9, 2023 via email

return _rows.get(rownum);
public Row getRow(int rownum) {
Row row = _rows.get(rownum);
// jlolling: allow reading all the content
Copy link
Member

Choose a reason for hiding this comment

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

In the ASF, we believe in shared ownership of the code. Please do not annotate code with your name.

@jlolling
Copy link
Author

jlolling commented Oct 9, 2023 via email

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