`<=`, `>=` and `>` give wrong results for missing values and for booleans
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 68/100
Línea de trabajo
Start by reading the comparison handling for <=, >=, and > and the tests for JSONPath filters; the issue does not name file paths, so locate those entry points in the Go repository. Check the missing-value and boolean cases against the RFC and jsonpath-rfc9535 results described here. Done means the two examples return [{}] and [] respectively, with regression tests covering both.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Two comparison cases come out wrong:
$[[email protected] <= @.b]on[{}]returns[]. Both sides are missing, and missing equals missing, so<=should hold and
it should return[{}].>=has the same problem.$[?true > false]on[1]returns[1]. Booleans aren't ordered by<, andtrueisn't equal tofalse, so>
should be false and it should return[].
The RFC defines <= as "less-than or equal", with < defined only for two numbers or two strings, and equality of two
missing values being true. jsonpath-rfc9535 gives the expected results on both.
- Lenguaje dominante
- Go
- Estrellas
- 41
- Forks
- 4
- Merge medio
- 2 d 8 h
- PR fusionados (30 d)
- 3
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
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 theory/jsonpath
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 73/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
-
Dificultad 4/5 3-5 días Aptitud para principiantes 55/100
Todos los issues de theory/jsonpath
Issues similares
-
--auto-tier: hashing, dedup, resume validation and DVC/git reads still update atime on LinuxAbiertoarea: pipeline priority: low type: bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
prime-radiant-inc/evener#8335 ·
Los mantenedores suelen responder en 1 día
-
ui: OnTextKey on SearchField never sees keys (it does not reach the inner input)Posiblemente ocupada @szluyu99 la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
router-for-me/CLIProxyAPI#8815 ·
Los mantenedores suelen responder en 7 días