[Bug] groupCount().by(missingProperty) creates an unserializable null map key
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 45/100
Línea de trabajo
Reproduce by creating a vertex with no d1 property on the memory backend, then sending g.V('v1').groupCount().by('d1') to the Gremlin REST endpoint. The failure is in JSON serialization of a HashMap with a null key, so start from where the server converts the traversal result for the response. Done when the request either returns valid JSON or fails with a stable validation error, and a test covers the missing-property case.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Bug Type (问题类型)
other exception / error (其他异常报错)
Before submit
- 我已经确认现有的 Issues 与 FAQ 中没有相同 / 重复问题 (I have confirmed and searched that there are no similar problems in the historical issue and documents)
Environment (环境信息)
- Server Version: Apache HugeGraph 1.7.0
- Gremlin Version: 3.5.1
- Backend: memory
- Data Size: 1 vertex and 0 edges
Expected & Actual behavior (期望与实际表现)
Create a vertex without property d1, then execute a grouping traversal
through the Gremlin REST endpoint:
g.V('v1').groupCount().by('d1')
Expected: the endpoint should return a valid traversal result or a stable
validation error explaining that the grouping property is absent.
Actual: response serialization fails with:
org.apache.hugegraph.HugeException: Can't write json: Null key for a Map not allowed in JSON
The error identifies a HashMap["null"] in the response value. The server
therefore constructs an intermediate result that its REST serializer cannot
encode.
Vertex/Edge example (问题点 / 边数据举例)
Setup and failing traversal:
schema.vertexLabel('DocVertex').useCustomizeStringId().ifNotExist().create()
g.addV('DocVertex').property(T.id, 'v1').iterate()
g.V('v1').groupCount().by('d1')
The vertex is equivalent to:
{
"id": "v1",
"label": "DocVertex",
"properties": {}
}
Schema [VertexLabel, EdgeLabel, IndexLabel] (元数据结构)
{
"vertex_label": {
"name": "DocVertex",
"id_strategy": "CUSTOMIZE_STRING",
"properties": []
},
"edge_labels": [],
"index_labels": []
}
Reference behavior:
https://hugegraph.apache.org/docs/clients/restful-api/gremlin/
https://tinkerpop.apache.org/docs/3.5.1/reference/#groupcount-step
- Lenguaje dominante
- Java
- Estrellas
- 3.2k
- Forks
- 645
- Merge medio
- 1 d 2 h
- PR fusionados (30 d)
- 123
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de apache/hugegraph
-
[Store] LIMIT_DEDUP on NO_SCAN with loadPropertyFromIndex compares BaseVertex by referencePosiblemente ocupada @ShryukGrandhi la tomó hace 1 día. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
Los mantenedores suelen responder en 1 día
-
[Bug] PD task REST: balanceLeaders throws a bare HTTP 500 during the balance-shard window, and task responses cannot be told apart from a no-op or a follower answerPosiblemente ocupada @pallavithegod la tomó hace 16 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
apache/hugegraph#3231 · 2 comentarios · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
[Bug] Gremlin sandbox blocks HStore gRPC allocator configuration readsPosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abierto
Dificultad 4/5 3-5 días Aptitud para principiantes 25/100
Los mantenedores suelen responder en 1 día
-
Dificultad 4/5 3-5 días Aptitud para principiantes 55/100
Los mantenedores suelen responder en 1 día
-
Dificultad 4/5 3-5 días Aptitud para principiantes 35/100
Los mantenedores suelen responder en 1 día
Todos los issues de apache/hugegraph
Issues similares
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
apache/maven-enforcer#1074 ·
Los mantenedores suelen responder en 1 día
-
Gradle liquibaseDiffChangelog drops jhi_date_time_wrapperPosiblemente ocupada @mraible la tomó hoy. Abiertoarea: triage theme: undefined
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
jhipster/generator-jhipster#35998 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
openai/openai-java#1337 ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
checkstyle/checkstyle#22447 ·
Los mantenedores suelen responder en 1 día