历史发布与主体可得性核验
原能力
核验历史公开时间、实际取得时间及主体权限,阻止未来资料进入历史判断。(合同附件 R7 4.5)
首选项目
EdgarTools(MIT)。 EdgarTools
匹配范围
EDGAR 披露时点与 ASOF 查询更正记录。
源码
EdgarTools · def xbrl(
edgar/_filings.py · 1874–1887 行。 在 GitHub 查看源码 · 许可证与声明
源码片段
def xbrl(self) -> Optional[XBRL]:
"""
Get the XBRL document for the filing, parsed and as a FilingXbrl object
:return: The parsed XBRL, or `None` when the filing carries no XBRL
attachments — a property of the filing, not a failure to read it,
and one this keeps answering quietly in 6.0 (docs/upgrade/6.0.md).
"""
# The `except XBRLFilingWithNoXbrlData` that used to sit here was dead:
# nothing in the library raised that error, and `from_filing` signals
# the no-XBRL case by returning None. Removed rather than left as
# decoration, so this function's None has one visible source.
try:
return XBRL.from_filing(self)
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();
实现与验收要点
实际取得、主体权限和不得使用未来信息的测试。