IiCEight commented on issue #3446:
URL: https://github.com/apache/hugegraph/issues/3446#issuecomment-6736438960

   Hi @choeoe, I tested an equivalent setup—a vertex with no properties—on a 
locally source-built HugeGraph 1.8.0 runtime using TinkerPop 3.8.1.
   
   Through the /gremlin REST endpoint with RocksDB, the traversal:
   ```
   g.V(id).groupCount().by('d1')
   ```
   returned HTTP 200 with result.data equal to `[{}]`. I also verified this 
behavior with the memory backend.
   
   This appears to be explained by a TinkerPop behavior change. In 3.5.x, a 
missing grouping property could produce a Java map such as `{null=1}`. 
HugeGraph’s JSON serializer rejects that null map key, causing the reported 
exception.
   
   Starting in TinkerPop 3.6.0, `groupCount().by(...)` skips vertices whose 
grouping property is absent, producing an empty map in this example. See the 
upstream Consistent by() Behavior explanation. HugeGraph upgraded TinkerPop 
from 3.5.1 to 3.8.1 in 
https://github.com/apache/hugegraph/commit/ba1c6ab73a4316bb5fcf531a3528831ed3c50051.
   
   The reported case therefore appears resolved on the tested development 
runtime. I have not retested HugeGraph 1.7.0. A


-- 
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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to