-
Notifications
You must be signed in to change notification settings - Fork 525
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
fix: support null value for gremlin test #2061
Changes from 2 commits
2cf8981
e68b4d1
ef0c949
deefd9d
2987c12
87108b4
dcd846b
ebaa542
cba6559
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,11 +39,10 @@ public abstract class HugeProperty<V> implements Property<V>, GraphType { | |
public HugeProperty(HugeElement owner, PropertyKey pkey, V value) { | ||
E.checkArgument(owner != null, "Property owner can't be null"); | ||
E.checkArgument(pkey != null, "Property key can't be null"); | ||
E.checkArgument(value != null, "Property value can't be null"); | ||
|
||
this.owner = owner; | ||
this.pkey = pkey; | ||
this.value = pkey.validValueOrThrow(value); | ||
this.value = pkey.validValue(value); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. we can keep the origin code if the null value is skipped? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. note also need to update if (value == null) {
this.removeProperty(propertyKey.id());
return EmptyProperty.instance();
} |
||
} | ||
|
||
public PropertyKey propertyKey() { | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
seems need to skip the null value here with
continue
, also add the comment for why