Skip to content

Conversation

@prha
Copy link
Member

@prha prha commented Nov 22, 2025

Summary & Motivation

How I Tested These Changes

Changelog

Insert changelog entry or delete this section.

Copy link
Member Author

prha commented Nov 22, 2025

@prha prha marked this pull request as ready for review November 22, 2025 04:02
@prha prha force-pushed the prha/asset-checks-01-storage branch from ad1ad53 to d40db50 Compare November 22, 2025 06:25
@prha prha force-pushed the prha/asset-checks-02-definitions branch 2 times, most recently from 1b1f86d to ae24dca Compare November 22, 2025 19:50
@prha prha force-pushed the prha/asset-checks-01-storage branch 2 times, most recently from 29cfe1c to fa787f5 Compare November 22, 2025 20:26
@prha prha force-pushed the prha/asset-checks-02-definitions branch 2 times, most recently from 4258d4d to 0e1644c Compare November 22, 2025 20:31
@prha prha force-pushed the prha/asset-checks-01-storage branch from 4fcf31d to 7e13c5c Compare November 22, 2025 20:49
@prha prha force-pushed the prha/asset-checks-02-definitions branch 3 times, most recently from eba7469 to 5a33220 Compare November 22, 2025 22:51
This PR adds the core API layer for partitioned asset checks:

- Add partitions_def field to AssetCheckSpec
- Update asset_check decorator to support partitions_def parameter
- Add partition_key property to AssetCheckExecutionContext
- Update AssetCheckEvaluation and AssetCheckResult to include partition info
- Add event definitions for partitioned check evaluations
- Update external data representation for remote execution

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
@prha prha force-pushed the prha/asset-checks-02-definitions branch from 5a33220 to 33ba92c Compare November 22, 2025 23:06
…onsDefinition and MultiPartitionsDefinition

Fixed issue where DynamicPartitionsDefinition.has_partition_key was being
called without the required dynamic_partitions_store parameter, causing
tests to fail with "The instance is not available to load partitions" error.

Changes:
1. Updated MultiPartitionsDefinition.has_partition_key to accept current_time
   and dynamic_partitions_store parameters, passing them through to
   DynamicPartitionsDefinition dimensions

2. Updated run_domain._get_planned_partitions to pass dynamic_partitions_store
   when checking has_partition_key for both DynamicPartitionsDefinition and
   MultiPartitionsDefinition

This ensures dynamic partitions can access the instance to load partition keys,
whether they're used directly or as dimensions in multi-partitions.

Fixes: test_dynamic_partitioned_run, test_unfetched_partitioned_events_are_unconsumed,
       test_assets (dynamic_asset_partitions)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants