Reservoir Sampling's sample size accepts a value below 1
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
Reservoir Sampling のスキーマ宣言を見つけ、k プロパティを特定してください。#8514 で参照されている変更で、ファイルスキャンの Limit プロパティと Offset プロパティが最小値をどのように宣言しているかを読み、同じスキーマ上の制約を k に適用してください。オペレーターのリファレンスページを確認し、フォームが 1 未満の値を拒否し、デフォルトが未指定として表示されることを確かめてください。
索引モデルが issue の本文から書いたものです。
説明
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
- 主要言語
- Scala
- スター
- 333
- フォーク
- 202
- 平均マージ
- 3日 11時間
- マージ済み PR(30日)
- 185
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
apache/texera のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
メンテナーはふだん 1 日以内に返信
-
addOperator returns an error but still adds the operator対応中かも @sunny-kavixo が 5 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
apache/texera#9121 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
Failed tool calls are marked as succeeded (isError is always false)対応中かも @oliarmak-web が 14 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 80/100
apache/texera#9120 · コメント 8 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
apache/texera#8682 · コメント 5 件 ·
メンテナーはふだん 1 日以内に返信
-
JSONL File Scan reads a JSON null as the text "null"対応中かも @CaroFernando が 48 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
apache/texera#8674 · コメント 1 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
似ている issue
-
? - Needs Triage bug
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
NVIDIA/cudf-spark#16937 ·
メンテナーはふだん 1 日以内に返信
-
LFST not-issued-store count truncation can incorrectly clear strictShouldWait対応中かも @weidingliu が今日担当しました。 オープンmodule: memory type: bug/reported
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
OpenXiangShan/XiangShan#6974 · コメント 1 件 · 担当者 1 名 ·
メンテナーはふだん 3 日以内に返信
-
bug indigo
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
PurpleKingdomGames/indigoengine#300 · コメント 1 件 ·
-
JavaReservoirSampleOperator returns the whole input when the dataset size is unknown対応中かも @sasmith-14 が 2 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
apache/wayang#884 · コメント 3 件 ·
メンテナーはふだん 2 日以内に返信
-
AI Generated CI/CD ⚒️ Flaky-tests 🐦 python 🐍
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
valkey-io/valkey-glide#7722 ·
メンテナーはふだん 1 日以内に返信