imbajin commented on code in PR #1937:
URL:
https://github.com/apache/incubator-hugegraph/pull/1937#discussion_r930672064
##########
hugegraph-api/src/main/java/com/baidu/hugegraph/define/UpdateStrategy.java:
##########
@@ -60,15 +65,20 @@ Object updatePropertyValue(Object oldProperty, Object
newProperty) {
@Override
void checkPropertyType(Object oldProperty, Object newProperty) {
- E.checkArgument((oldProperty instanceof Date ||
- oldProperty instanceof Number) &&
- (newProperty instanceof Date ||
+ E.checkArgument((oldProperty instanceof Date &&
+ newProperty instanceof String) ||
Review Comment:
why we support string here? could u add some case for it?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]