Skip to content

Add | Default to null if val is null#1122

Merged
rene-ye merged 1 commit intomicrosoft:devfrom
rene-ye:setRowToNull
Aug 2, 2019
Merged

Add | Default to null if val is null#1122
rene-ye merged 1 commit intomicrosoft:devfrom
rene-ye:setRowToNull

Conversation

@rene-ye
Copy link
Copy Markdown
Member

@rene-ye rene-ye commented Aug 2, 2019

Compensating for a change meant to be pushed into a later PR but was reverted with the hotfix.

@rene-ye rene-ye merged commit ae05c4e into microsoft:dev Aug 2, 2019
@cogman
Copy link
Copy Markdown
Contributor

cogman commented Aug 2, 2019

I'm not sure this change is necessary.

Java specifies that all values in an array of Object are set to null by default. This value couldn't be set to anything else. Because rowValues isn't shared/copied/etc. The value would be null if nothing sets it.

@rene-ye
Copy link
Copy Markdown
Member Author

rene-ye commented Aug 2, 2019

Was kept to keep code aligned. This line was added in a later PR, but was removed after changing the buffer to an arraylist.

@cheenamalhotra
Copy link
Copy Markdown
Member

This is needed change as there is no "default" value on that index. The change comes from the PR #990 where null value assignment was separated from the original block.

@rene-ye rene-ye deleted the setRowToNull branch October 10, 2019 23:05
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.

4 participants