Skip to content

[BEAM-5884] Move the nullable attribute onto FieldType.#7175

Merged
reuvenlax merged 8 commits intoapache:masterfrom
reuvenlax:fix_nullable
Dec 1, 2018
Merged

[BEAM-5884] Move the nullable attribute onto FieldType.#7175
reuvenlax merged 8 commits intoapache:masterfrom
reuvenlax:fix_nullable

Conversation

@reuvenlax
Copy link
Contributor

No description provided.

Copy link
Contributor

@akedin akedin left a comment

Choose a reason for hiding this comment

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

LGTM

public abstract TypeName getTypeName();

// Whether this type is nullable.
public abstract Boolean getNullable();
Copy link
Contributor

Choose a reason for hiding this comment

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

I wonder if a convenience method FieldType nullable() { return toBuilder().setNullable(true).build(); } would make sense

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@akedin in fact there is such a method, but it's called withNullable

@reuvenlax reuvenlax changed the title Move the nullable attribute onto FieldType. [BEAM-5884] Move the nullable attribute onto FieldType. Dec 1, 2018
@reuvenlax reuvenlax merged commit a9dff65 into apache:master Dec 1, 2018
@udim
Copy link
Member

udim commented Dec 4, 2018

This may have caused precommit to time out: https://issues.apache.org/jira/browse/BEAM-6171

@reuvenlax
Copy link
Contributor Author

reuvenlax commented Dec 4, 2018 via email

@reuvenlax
Copy link
Contributor Author

reuvenlax commented Dec 4, 2018 via email

@reuvenlax
Copy link
Contributor Author

reuvenlax commented Dec 4, 2018 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.

3 participants