和顺 / 衡律 返回所属 Agent
22.2

信息时间与合法可得性

原能力

统一发生、公开、取得及记录时间,按合法可得性支持双时态查询。(合同附件 R7 22.2)

首选项目

DuckDB(MIT(核心))。 DuckDB

匹配范围

按时点查询和来源链机制支持可得性检查。

源码

DuckDB · PhysicalAsOfJoin::

src/execution/operator/join/physical_asof_join.cpp · 18–31 行。 在 GitHub 查看源码 · 许可证与声明

源码片段
PhysicalAsOfJoin::PhysicalAsOfJoin(PhysicalPlan &physical_plan, LogicalComparisonJoin &op, PhysicalOperator &left,
                                   PhysicalOperator &right, vector<column_t> lhs_partition_cols,
                                   vector<column_t> rhs_partition_cols)
    : PhysicalComparisonJoin(physical_plan, op, PhysicalOperatorType::ASOF_JOIN, std::move(op.conditions), op.join_type,
                             op.estimated_cardinality),
      comparison_type(ExpressionType::INVALID) {
	// Convert the conditions partitions and sorts
	for (auto &cond : conditions) {
		D_ASSERT(cond.IsComparison());
		D_ASSERT(cond.GetLHS().GetReturnType() == cond.GetRHS().GetReturnType());
		join_key_types.push_back(cond.GetLHS().GetReturnType());
		const auto join_key_idx = join_key_types.size() - 1;

		auto left_cond = cond.LeftReference()->Copy();

OpenLineage · class RunEvent

client/python/src/openlineage/client/run.py · 102–115 行。 在 GitHub 查看源码 · 许可证与声明

源码片段
class RunEvent(RedactMixin):
    eventType: RunState = attr.ib(validator=attr.validators.in_(list(RunState)))  # noqa:  N815
    eventTime: str = attr.ib()  # noqa:  N815
    run: Run = attr.ib()
    job: Job = attr.ib()
    producer: str = attr.ib()
    inputs: list[Dataset] | None = attr.ib(factory=list)
    outputs: list[Dataset] | None = attr.ib(factory=list)
    schemaURL: str = attr.ib(default=SCHEMA_URL)  # noqa: N815

    _skip_redact: ClassVar[list[str]] = ["eventType", "eventTime", "producer", "schemaURL"]

    @eventTime.validator
    def check(self, attribute: str, value: str) -> None:  # noqa: ARG002
  • # Copyright 2018-2026 contributors to the OpenLineage project
  • # SPDX-License-Identifier: Apache-2.0

实现与验收要点

业务时点、取得时点、团队用途权限及防泄漏验收。