cargo mutants: missed mutants in vortex-sparse
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
调研方向
Start with encodings/sparse/src/lib.rs at SparseData::encode, around line 520, and inspect the three surviving mutant reports linked in the issue. Identify or add tests that fail when the null-count threshold comparison or its multiplication changes; run cargo mutants -f encodings/sparse/src/lib.rs -F ':520:42:' and cargo mutants -f encodings/sparse/src/lib.rs -F ':520:49:' to check them. Done when tests kill the reported mutants.
由索引模型根据 Issue 内容生成。
描述
The nightly run at fdb9507c04e2939724aa39c298653a8ea3fd3b49 found 3 mutants in vortex-sparse that survive the tests. They are in code that changed during the last day.
Artifacts:
- mutants-0
- mutants-2
- mutants-13
- mutants-1
- mutants-3
- mutants-6
- mutants-10
- mutants-5
- mutants-4
- mutants-11
- mutants-9
- mutants-12
- mutants-15
- mutants-14
encodings/sparse/src/lib.rs:520:42
replace > with == in SparseData::encode
--- encodings/sparse/src/lib.rs
+++ replace > with == in SparseData::encode
@@ -512,17 +512,17 @@
let mask = array.validity()?.execute_mask(array.len(), ctx)?;
if mask.all_false() {
// Array is constant NULL
return Ok(
ConstantArray::new(Scalar::null(array.dtype().clone()), array.len()).into_array(),
);
} else if (fill_value.as_ref().is_some_and(Scalar::is_null) && !mask.all_true())
- || mask.false_count() as f64 > (0.9 * mask.len() as f64)
+ || mask.false_count() as f64 == /* ~ changed by cargo-mutants ~ */ (0.9 * mask.len() as f64)
{
// Array uses a null fill and has both nulls and non-null values.
// The values are stored as they are, so their validity must not stay a lazy filter
// over the input's bitmap, which may itself be compressed.
let non_null_values = array
.filter(mask.clone())?
.execute::<CanonicalValidity>(ctx)?
.0
cargo mutants -f encodings/sparse/src/lib.rs -F ':520:42:'
encodings/sparse/src/lib.rs:520:42
replace > with >= in SparseData::encode
--- encodings/sparse/src/lib.rs
+++ replace > with >= in SparseData::encode
@@ -512,17 +512,17 @@
let mask = array.validity()?.execute_mask(array.len(), ctx)?;
if mask.all_false() {
// Array is constant NULL
return Ok(
ConstantArray::new(Scalar::null(array.dtype().clone()), array.len()).into_array(),
);
} else if (fill_value.as_ref().is_some_and(Scalar::is_null) && !mask.all_true())
- || mask.false_count() as f64 > (0.9 * mask.len() as f64)
+ || mask.false_count() as f64 >= /* ~ changed by cargo-mutants ~ */ (0.9 * mask.len() as f64)
{
// Array uses a null fill and has both nulls and non-null values.
// The values are stored as they are, so their validity must not stay a lazy filter
// over the input's bitmap, which may itself be compressed.
let non_null_values = array
.filter(mask.clone())?
.execute::<CanonicalValidity>(ctx)?
.0
cargo mutants -f encodings/sparse/src/lib.rs -F ':520:42:'
encodings/sparse/src/lib.rs:520:49
replace * with + in SparseData::encode
--- encodings/sparse/src/lib.rs
+++ replace * with + in SparseData::encode
@@ -512,17 +512,17 @@
let mask = array.validity()?.execute_mask(array.len(), ctx)?;
if mask.all_false() {
// Array is constant NULL
return Ok(
ConstantArray::new(Scalar::null(array.dtype().clone()), array.len()).into_array(),
);
} else if (fill_value.as_ref().is_some_and(Scalar::is_null) && !mask.all_true())
- || mask.false_count() as f64 > (0.9 * mask.len() as f64)
+ || mask.false_count() as f64 > (0.9 + /* ~ changed by cargo-mutants ~ */ mask.len() as f64)
{
// Array uses a null fill and has both nulls and non-null values.
// The values are stored as they are, so their validity must not stay a lazy filter
// over the input's bitmap, which may itself be compressed.
let non_null_values = array
.filter(mask.clone())?
.execute::<CanonicalValidity>(ctx)?
.0
cargo mutants -f encodings/sparse/src/lib.rs -F ':520:49:'
- 主要语言
- Rust
- 星标
- 3.2k
- 派生
- 239
- 平均合并
- 1 天 4 小时
- 30 天内合并 PR
- 684
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
vortex-data/vortex 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 70/100
vortex-data/vortex#12633 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 77/100
vortex-data/vortex#12628 ·
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 88/100
vortex-data/vortex#12491 ·
维护者通常 1 天内回复
-
Fallible constructor for nested_case_when可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭
难度 2/5 1-3 小时 新手友好度 72/100
vortex-data/vortex#11425 ·
维护者通常 1 天内回复
-
难度 3/5 1-2 天 新手友好度 67/100
vortex-data/vortex#12635 ·
维护者通常 1 天内回复
查看 vortex-data/vortex 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 65/100
marklauter/tsong#110 ·
-
docs enhancement
难度 2/5 1-3 小时 新手友好度 78/100
wasm-bindgen/wasm-bindgen#5503 · 1 条评论 ·
维护者通常 1 天内回复
-
needs-triage
难度 2/5 1-3 小时 新手友好度 68/100
维护者通常 1 天内回复
-
marketing
难度 2/5 1-3 小时 新手友好度 85/100
维护者通常 1 天内回复
-
area: engine bug needs milestone
难度 2/5 1-3 小时 新手友好度 70/100
Mudcrab-Team/mudcrab#1197 · 1 条评论 ·
维护者通常 1 天内回复