Repository navigation
Commit 67cbcd5
fix: Refresh pre-computed vectors for pushes with source field mappings (#7076)
* feat: Refresh pre-computed vectors for pushed entities only
precompute_feature_service accepts entity_keys and skips the keyspace scan
when they are given. The push hook now passes the distinct entity keys from
the pushed DataFrame instead of rebuilding every entity in the store.
Signed-off-by: Chandler King <chandler.king@findheadway.com>
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
* fix: Match pre-computed vector names when full_feature_names is False
Stored vectors carry "<fv>__<feature>" names while the default request
expects bare feature names, so the fast path always reported a schema
mismatch unless full_feature_names=True. Compare on the caller's naming and
derive the per-feature view name from the stored names for TTL checks.
Signed-off-by: Chandler King <chandler.king@findheadway.com>
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
* chore: Retrigger CI
Signed-off-by: Chandler King <chandler.king@findheadway.com>
* fix: Preserve vector refreshes for pushes with field mappings
push() hands _precompute_for_push the frame as the caller sent it, but
ingestion renames columns through batch_source.field_mapping before it
builds entity keys. A pushed raw_driver_id column mapped to driver_id
therefore found no join keys and skipped the refresh, leaving the
pre-computed vector stale (or missing for a new entity).
Map the columns before extracting the join keys, as ingestion does, and
add a push-then-read regression that pushes one entity twice under its
source column name and asserts the vector follows the second push.
Signed-off-by: chandlerok <chandleroking@gmail.com>
* chore: Retrigger CI
Signed-off-by: chandlerok <chandleroking@gmail.com>
* chore: Retrigger CI
Signed-off-by: chandlerok <chandleroking@gmail.com>
---------
Signed-off-by: Chandler King <chandler.king@findheadway.com>
Signed-off-by: chandlerok <chandleroking@gmail.com>
Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
Co-authored-by: Nikhil Kathole <nikhilkathole2683@gmail.com>1 parent 2a312cc commit 67cbcd5
2 files changed
Lines changed: 161 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5254 | 5254 | | |
5255 | 5255 | | |
5256 | 5256 | | |
5257 | | - | |
| 5257 | + | |
| 5258 | + | |
| 5259 | + | |
| 5260 | + | |
| 5261 | + | |
| 5262 | + | |
| 5263 | + | |
| 5264 | + | |
| 5265 | + | |
| 5266 | + | |
| 5267 | + | |
| 5268 | + | |
| 5269 | + | |
5258 | 5270 | | |
5259 | 5271 | | |
5260 | 5272 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
| 15 | + | |
14 | 16 | | |
15 | 17 | | |
16 | 18 | | |
| |||
657 | 659 | | |
658 | 660 | | |
659 | 661 | | |
| 662 | + | |
| 663 | + | |
| 664 | + | |
| 665 | + | |
| 666 | + | |
| 667 | + | |
| 668 | + | |
| 669 | + | |
| 670 | + | |
| 671 | + | |
| 672 | + | |
| 673 | + | |
| 674 | + | |
| 675 | + | |
| 676 | + | |
| 677 | + | |
| 678 | + | |
| 679 | + | |
| 680 | + | |
| 681 | + | |
| 682 | + | |
| 683 | + | |
| 684 | + | |
| 685 | + | |
| 686 | + | |
| 687 | + | |
| 688 | + | |
| 689 | + | |
| 690 | + | |
| 691 | + | |
| 692 | + | |
| 693 | + | |
| 694 | + | |
| 695 | + | |
| 696 | + | |
| 697 | + | |
| 698 | + | |
| 699 | + | |
| 700 | + | |
| 701 | + | |
| 702 | + | |
| 703 | + | |
| 704 | + | |
| 705 | + | |
| 706 | + | |
| 707 | + | |
| 708 | + | |
| 709 | + | |
| 710 | + | |
| 711 | + | |
| 712 | + | |
| 713 | + | |
| 714 | + | |
| 715 | + | |
| 716 | + | |
| 717 | + | |
| 718 | + | |
| 719 | + | |
| 720 | + | |
| 721 | + | |
| 722 | + | |
| 723 | + | |
| 724 | + | |
| 725 | + | |
| 726 | + | |
| 727 | + | |
| 728 | + | |
| 729 | + | |
| 730 | + | |
| 731 | + | |
| 732 | + | |
| 733 | + | |
| 734 | + | |
| 735 | + | |
| 736 | + | |
| 737 | + | |
| 738 | + | |
| 739 | + | |
| 740 | + | |
| 741 | + | |
| 742 | + | |
| 743 | + | |
| 744 | + | |
| 745 | + | |
| 746 | + | |
| 747 | + | |
| 748 | + | |
| 749 | + | |
| 750 | + | |
| 751 | + | |
| 752 | + | |
| 753 | + | |
| 754 | + | |
| 755 | + | |
| 756 | + | |
| 757 | + | |
| 758 | + | |
| 759 | + | |
| 760 | + | |
| 761 | + | |
| 762 | + | |
| 763 | + | |
| 764 | + | |
| 765 | + | |
| 766 | + | |
| 767 | + | |
| 768 | + | |
| 769 | + | |
| 770 | + | |
| 771 | + | |
| 772 | + | |
| 773 | + | |
| 774 | + | |
| 775 | + | |
| 776 | + | |
| 777 | + | |
| 778 | + | |
| 779 | + | |
| 780 | + | |
| 781 | + | |
| 782 | + | |
| 783 | + | |
660 | 784 | | |
661 | 785 | | |
662 | 786 | | |
| |||
1102 | 1226 | | |
1103 | 1227 | | |
1104 | 1228 | | |
| 1229 | + | |
1105 | 1230 | | |
1106 | 1231 | | |
1107 | 1232 | | |
| |||
1128 | 1253 | | |
1129 | 1254 | | |
1130 | 1255 | | |
| 1256 | + | |
| 1257 | + | |
| 1258 | + | |
| 1259 | + | |
| 1260 | + | |
| 1261 | + | |
| 1262 | + | |
| 1263 | + | |
| 1264 | + | |
| 1265 | + | |
| 1266 | + | |
| 1267 | + | |
| 1268 | + | |
| 1269 | + | |
| 1270 | + | |
| 1271 | + | |
| 1272 | + | |
| 1273 | + | |
| 1274 | + | |
| 1275 | + | |
| 1276 | + | |
| 1277 | + | |
| 1278 | + | |
1131 | 1279 | | |
1132 | 1280 | | |
1133 | 1281 | | |
| |||
0 commit comments