结果成熟度与完整性
原能力
记录结果成熟度和完整性,未到观察期或缺少结果时不得评价为成功。(合同附件 R7 19.2)
首选项目
Pandera(MIT)。 Pandera
匹配范围
完整性规则及时间窗口检查已取得标签。
源码
Pandera · def validate(
pandera/api/pandas/container.py · 127–140 行。 在 GitHub 查看源码 · 许可证与声明
源码片段
def validate(
self,
check_obj: pd.DataFrame,
head: int | None = None,
tail: int | None = None,
sample: int | None = None,
random_state: int | None = None,
lazy: bool = False,
inplace: bool = False,
) -> pd.DataFrame:
"""Validate a DataFrame based on the schema specification.
:param pd.DataFrame check_obj: the dataframe to be validated.
:param head: validate the first n rows. Rows overlapping with `tail` or
DuckDB · SinkResultType PhysicalHashAggregate::Sink(
src/execution/operator/aggregate/physical_hash_aggregate.cpp · 396–409 行。 在 GitHub 查看源码 · 许可证与声明
源码片段
SinkResultType PhysicalHashAggregate::Sink(ExecutionContext &context, DataChunk &chunk,
OperatorSinkInput &input) const {
auto &local_state = input.local_state.Cast<HashAggregateLocalSinkState>();
auto &global_state = input.global_state.Cast<HashAggregateGlobalSinkState>();
if (distinct_collection_info) {
SinkDistinct(context, chunk, input);
}
if (CanSkipRegularSink()) {
return SinkResultType::NEED_MORE_INPUT;
}
DataChunk &aggregate_input_chunk = local_state.aggregate_input_chunk;
实现与验收要点
用实际兑现期限判定成熟、右删失、未到期与缺失。