Commit cfc038b
feat: Enable feature service serving for versioned feature views
When enable_online_feature_view_versioning is on and a FeatureService
references a versioned FV, set version_tag on the projection so that
online reads resolve to the correct versioned table. Previously the
FeatureService path never set version_tag, causing reads from the
wrong (unversioned) online store table.
Changes:
- _get_features(): version-qualify feature refs for FeatureService projections
- _get_feature_views_to_use(): capture current_version_number before
with_projection() discards it, then set version_tag on the projection
- feature_store.py: fix mypy type narrowing for the gate check
- Add integration tests for both code paths
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 66c280b commit cfc038b
File tree
3 files changed
+113
-11
lines changed- sdk/python
- feast
- tests/integration/registration
3 files changed
+113
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1162 | 1162 | | |
1163 | 1163 | | |
1164 | 1164 | | |
1165 | | - | |
1166 | | - | |
| 1165 | + | |
| 1166 | + | |
| 1167 | + | |
| 1168 | + | |
1167 | 1169 | | |
1168 | | - | |
| 1170 | + | |
1169 | 1171 | | |
1170 | 1172 | | |
1171 | 1173 | | |
1172 | 1174 | | |
1173 | | - | |
1174 | | - | |
1175 | | - | |
1176 | | - | |
| 1175 | + | |
| 1176 | + | |
| 1177 | + | |
| 1178 | + | |
1177 | 1179 | | |
1178 | 1180 | | |
1179 | | - | |
| 1181 | + | |
1180 | 1182 | | |
1181 | 1183 | | |
1182 | 1184 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1237 | 1237 | | |
1238 | 1238 | | |
1239 | 1239 | | |
| 1240 | + | |
| 1241 | + | |
| 1242 | + | |
| 1243 | + | |
| 1244 | + | |
| 1245 | + | |
| 1246 | + | |
| 1247 | + | |
| 1248 | + | |
| 1249 | + | |
| 1250 | + | |
1240 | 1251 | | |
1241 | 1252 | | |
1242 | 1253 | | |
| |||
1323 | 1334 | | |
1324 | 1335 | | |
1325 | 1336 | | |
| 1337 | + | |
1326 | 1338 | | |
1327 | 1339 | | |
1328 | | - | |
1329 | | - | |
| 1340 | + | |
| 1341 | + | |
1330 | 1342 | | |
1331 | 1343 | | |
1332 | 1344 | | |
1333 | 1345 | | |
1334 | | - | |
| 1346 | + | |
1335 | 1347 | | |
1336 | 1348 | | |
1337 | 1349 | | |
| 1350 | + | |
| 1351 | + | |
| 1352 | + | |
| 1353 | + | |
| 1354 | + | |
| 1355 | + | |
| 1356 | + | |
| 1357 | + | |
1338 | 1358 | | |
1339 | 1359 | | |
1340 | 1360 | | |
| |||
Lines changed: 80 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1084 | 1084 | | |
1085 | 1085 | | |
1086 | 1086 | | |
| 1087 | + | |
| 1088 | + | |
| 1089 | + | |
| 1090 | + | |
| 1091 | + | |
| 1092 | + | |
| 1093 | + | |
| 1094 | + | |
| 1095 | + | |
| 1096 | + | |
| 1097 | + | |
| 1098 | + | |
| 1099 | + | |
| 1100 | + | |
| 1101 | + | |
| 1102 | + | |
| 1103 | + | |
| 1104 | + | |
| 1105 | + | |
| 1106 | + | |
| 1107 | + | |
| 1108 | + | |
| 1109 | + | |
| 1110 | + | |
| 1111 | + | |
| 1112 | + | |
| 1113 | + | |
| 1114 | + | |
| 1115 | + | |
| 1116 | + | |
| 1117 | + | |
| 1118 | + | |
| 1119 | + | |
| 1120 | + | |
| 1121 | + | |
| 1122 | + | |
| 1123 | + | |
| 1124 | + | |
| 1125 | + | |
| 1126 | + | |
| 1127 | + | |
| 1128 | + | |
| 1129 | + | |
| 1130 | + | |
| 1131 | + | |
| 1132 | + | |
| 1133 | + | |
| 1134 | + | |
| 1135 | + | |
| 1136 | + | |
| 1137 | + | |
| 1138 | + | |
| 1139 | + | |
| 1140 | + | |
| 1141 | + | |
| 1142 | + | |
| 1143 | + | |
| 1144 | + | |
| 1145 | + | |
| 1146 | + | |
| 1147 | + | |
| 1148 | + | |
| 1149 | + | |
| 1150 | + | |
| 1151 | + | |
| 1152 | + | |
| 1153 | + | |
| 1154 | + | |
| 1155 | + | |
| 1156 | + | |
| 1157 | + | |
| 1158 | + | |
| 1159 | + | |
| 1160 | + | |
| 1161 | + | |
| 1162 | + | |
| 1163 | + | |
| 1164 | + | |
| 1165 | + | |
| 1166 | + | |
0 commit comments