apache / apache/parquet-java

Investigate automatic not null checks via annotations in place of checkNotNull calls

未关闭
#1,446 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
Component: Java Component: Parquet Priority: Minor Type: enhancement
主要语言
Java
星标
3.1k
派生
1.6k
平均合并
3 天 12 小时
30 天内合并 PR
33

描述

We've discussed that it would be neat if we could replace a lot of the checkNotNull() calls in parquet-mr with an annotation like
```Java
@NotNull
```

or even make not null the default and annotate things that can be null with
```Java
@Nullable
```

and have this enforced by the compiler / annotation preprocessor.

**Reporter**: [Alex Levenson](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=alexlevenson) / @isnotinvain

**Note**: *This issue was originally created as [PARQUET-29](https://issues.apache.org/jira/browse/PARQUET-29). Please see the [migration documentation](https://issues.apache.org/jira/browse/PARQUET-2502) for further details.*

贡献指南

这个仓库没有索引到贡献指南

调研方向

Start by surveying checkNotNull() calls across parquet-mr and the project's current Java build configuration. Compare enforcing @NotNull by default versus annotating @Nullable values, including whether a compiler or annotation preprocessor is supported. Done means documenting a decided approach and its scope, or establishing why the change is not feasible.

由索引模型根据 Issue 内容生成。

评估

技术栈
java
领域
tooling
Issue 类型
重构
难度
5/5
预计耗时
一周以上
活跃度
停滞
描述清晰度
需要澄清
新手友好度
25/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。