Reservoir Sampling's sample size accepts a value below 1
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 75/100
Línea de trabajo
Encuentra la declaración del esquema de Reservoir Sampling y localiza la propiedad k. Lee cómo declaran su valor mínimo las propiedades Limit y Offset de los escaneos de archivos en el cambio referenciado como #8514 y aplica el mismo límite de esquema a k. Revisa la página de referencia del operador y confirma que el formulario rechaza valores inferiores a 1 y que el valor predeterminado aparece como no especificado.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Task Summary
Reservoir Sampling's one property, the sample size k ("Number of item sampled in reservoir sampling"), has no lower bound in its schema. So the property editor accepts 0 or a negative number and enables Run.
A sample size below 1 is never valid. The engine refuses it at the first row, but a refused row pauses the worker rather than failing the run, so Reservoir Sampling stays Running until the run is killed. A new operator starts with k empty, and the required check already blocks Run; it is a typed 0 or a negative number that gets through.
Declaring minimum: 1 on k (@JsonSchemaInject(json = """{"minimum": 1}"""), as #8514 did for the file scans' Limit and Offset) makes the form refuse the value. The editor then shows "Invalid Workflow" instead of starting a run that hangs. A k from the API, an imported workflow or a loop variable still reaches the engine, whose refusal covers it. The operator's reference page lists the default as 0, which the schema doesn't declare; it becomes "-" with "(min: 1)".
This is a bound on the form; no operator's behaviour changes.
Found while verifying the fix for #9503.
Task Type
- Refactor / Cleanup
- DevOps / Deployment / CI
- Testing / QA
- Documentation
- Performance
- Other
- Lenguaje dominante
- Scala
- Estrellas
- 333
- Forks
- 202
- Merge medio
- 3 d 11 h
- PR fusionados (30 d)
- 185
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/texera
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
Los mantenedores suelen responder en 1 día
-
addOperator returns an error but still adds the operatorPosiblemente ocupada @sunny-kavixo la tomó hace 5 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
apache/texera#9121 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Failed tool calls are marked as succeeded (isError is always false)Posiblemente ocupada @oliarmak-web la tomó hace 14 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 80/100
apache/texera#9120 · 8 comentarios · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
apache/texera#8682 · 5 comentarios ·
Los mantenedores suelen responder en 1 día
-
JSONL File Scan reads a JSON null as the text "null"Posiblemente ocupada @CaroFernando la tomó hace 48 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 86/100
apache/texera#8674 · 1 comentario · 1 asignado ·
Los mantenedores suelen responder en 1 día
Todos los issues de apache/texera
Issues similares
-
? - Needs Triage bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
NVIDIA/cudf-spark#16937 ·
Los mantenedores suelen responder en 1 día
-
LFST not-issued-store count truncation can incorrectly clear strictShouldWaitPosiblemente ocupada @weidingliu la tomó hoy. Abiertomodule: memory type: bug/reported
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
OpenXiangShan/XiangShan#6974 · 1 comentario · 1 asignado ·
Los mantenedores suelen responder en 3 días
-
bug indigo
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
PurpleKingdomGames/indigoengine#300 · 1 comentario ·
-
JavaReservoirSampleOperator returns the whole input when the dataset size is unknownPosiblemente ocupada @sasmith-14 la tomó hace 2 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
apache/wayang#884 · 3 comentarios ·
Los mantenedores suelen responder en 2 días
-
AI Generated CI/CD ⚒️ Flaky-tests 🐦 python 🐍
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
valkey-io/valkey-glide#7722 ·
Los mantenedores suelen responder en 1 día