-
Notifications
You must be signed in to change notification settings - Fork 30
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 deserialize bug for nebula NULL data #74
Conversation
Codecov ReportBase: 61.54% // Head: 61.54% // No change to project coverage 👍
Additional details and impacted files@@ Coverage Diff @@
## master #74 +/- ##
=========================================
Coverage 61.54% 61.54%
Complexity 291 291
=========================================
Files 52 52
Lines 1784 1784
Branches 166 166
=========================================
Hits 1098 1098
Misses 596 596
Partials 90 90
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
This link shows that the code just convert nebula data value to Long, when nebula data value is NULL, that indeed a question, but it should not be catched here because every field in insert edge is not null. for (int pos = 0; pos < rowType.getFieldCount(); pos++) {
ValueWrapper valueWrapper = values.get(pos);
if (valueWrapper != null) {
try {
genericRowData.setField(pos,
toInternalConverters[pos].deserialize(valueWrapper));
} catch (SQLException e) {
e.printStackTrace();
}
} else {
genericRowData.setField(pos, null);
}
} we should use After modify the error, the job results shows:
But insert statement are as follows:
relative edge:
So why only the int8 field is Although now it seems right after to differ graph space name(use The most recently job result, and no extra null. |
Hi, I have one question that what's the meaning of 1 after 61 and 62 in
it looks like the rank value ,but according to the relative edge data, the rank is 0 and there's no property value is 1. |
Sorry, I may not have been clear. In newest implementation, it shows: the rank id is for (List<String> friend : friends) {
edges.add(new NebulaEdge(
friend.get(0), friend.get(1), 0L, friend.subList(2, friend.size())));
} The previous problem was because But why is it possible to insert an edge where the vertex does not exist? In this test file insert into person values ('89', 'aba', 'abcdefgh', '1', '1111',"
+ " '22222', '6412233', '2019-01-01', '2019-01-01T12:12:12',"
+ " '435463424', 'false', '1.2', '1.0', '11:12:12', 'POINT(1 3)')")
insert into friend values ('61', '62', 'aba', 'abcdefgh',"
+ " '1', '1111', '22222', '6412233', '2019-01-01',"
+ " '2019-01-01T12:12:12',"
+ " '435463424', 'false', '1.2', '1.0', '11:12:12', 'POINT(1 3)')")
insert into friend values ('61', '89', 'aba', 'abcdefgh',"
+ " '1', '1111', '22222', '6412233', '2019-01-01',"
+ " '2019-01-01T12:12:12', '435463424', 'false', '1.2', '1.0',"
+ " '11:12:12', 'POINT(1 3)')") |
I see, thanks for your explanation.
|
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.
LGTM, thanks for your work~
try to fix #73