Commit 21b93da
authored
perf(chainlink_polygon_vrf_request_fulfilled_daily): push incremental time bounds below the aggregation (#9766)
* perf(chainlink_polygon_vrf_request_fulfilled_daily): push incremental time bounds below the aggregation
* materialize v1 request logs; drop the 7-day lookback assumption
* Address review: align schema tests with vrf_v1_random_request_logs merge key
unique_combination_of_columns was on (blockchain, block_number, tx_hash, index)
but the model's incremental unique_key is [tx_hash, index]. Drop the extra
columns and add not_null tests on tx_hash and index.1 parent 5819978 commit 21b93da
3 files changed
Lines changed: 74 additions & 9 deletions
File tree
- dbt_subprojects/daily_spellbook/models/chainlink/polygon
Lines changed: 8 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
918 | 918 | | |
919 | 919 | | |
920 | 920 | | |
921 | | - | |
922 | | - | |
923 | 921 | | |
924 | 922 | | |
925 | 923 | | |
| |||
931 | 929 | | |
932 | 930 | | |
933 | 931 | | |
934 | | - | |
| 932 | + | |
| 933 | + | |
| 934 | + | |
| 935 | + | |
935 | 936 | | |
936 | 937 | | |
937 | | - | |
| 938 | + | |
| 939 | + | |
| 940 | + | |
| 941 | + | |
938 | 942 | | |
939 | 943 | | |
940 | 944 | | |
| |||
Lines changed: 52 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
14 | 64 | | |
15 | 65 | | |
16 | 66 | | |
| |||
19 | 69 | | |
20 | 70 | | |
21 | 71 | | |
22 | | - | |
| 72 | + | |
23 | 73 | | |
24 | 74 | | |
25 | 75 | | |
26 | 76 | | |
27 | 77 | | |
28 | 78 | | |
29 | | - | |
| 79 | + | |
Lines changed: 14 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
6 | 10 | | |
7 | 11 | | |
8 | 12 | | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
9 | 17 | | |
10 | 18 | | |
11 | 19 | | |
| |||
23 | 31 | | |
24 | 32 | | |
25 | 33 | | |
26 | | - | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
0 commit comments