Commit b274d44
authored
fix: Write batching does not include multiple partitions (#245)
* fix: Write one row per batch, validate non-negative ttl, refactor logic to remove duplicate code
* deprecate key_batch_size for a split read and write key batch size config. Write multiple batches defined by write_key_batch_size
* set default batch size to 100, fix normal feature views to batch per key not row
* adjust write batching to only batch the same entity key rows together to avoid batching across partitions
* skip inserting sorted fv row when ttl is negative
* batch everything when batch size is none or 0
* refactor _get_ttl
* fix formatting
* address all none case
* _get_ttl only uses feature view ttl
* fix tests
* fix linting1 parent 97e6b17 commit b274d44
5 files changed
Lines changed: 184 additions & 152 deletions
File tree
- go/internal/feast
- onlinestore
- registry
- sdk/python
- feast
- infra/online_stores/contrib/cassandra_online_store
- tests/expediagroup
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | | - | |
| 59 | + | |
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
| |||
199 | 199 | | |
200 | 200 | | |
201 | 201 | | |
202 | | - | |
| 202 | + | |
203 | 203 | | |
204 | | - | |
205 | | - | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
206 | 211 | | |
207 | | - | |
| 212 | + | |
208 | 213 | | |
209 | 214 | | |
210 | 215 | | |
| |||
255 | 260 | | |
256 | 261 | | |
257 | 262 | | |
258 | | - | |
259 | | - | |
260 | | - | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
261 | 266 | | |
262 | 267 | | |
263 | | - | |
| 268 | + | |
264 | 269 | | |
265 | | - | |
| 270 | + | |
266 | 271 | | |
267 | 272 | | |
268 | 273 | | |
| |||
867 | 872 | | |
868 | 873 | | |
869 | 874 | | |
870 | | - | |
| 875 | + | |
871 | 876 | | |
872 | 877 | | |
873 | 878 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
356 | 356 | | |
357 | 357 | | |
358 | 358 | | |
359 | | - | |
| 359 | + | |
360 | 360 | | |
361 | 361 | | |
362 | 362 | | |
| |||
378 | 378 | | |
379 | 379 | | |
380 | 380 | | |
381 | | - | |
| 381 | + | |
382 | 382 | | |
383 | | - | |
| 383 | + | |
384 | 384 | | |
385 | 385 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
291 | 291 | | |
292 | 292 | | |
293 | 293 | | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
294 | 299 | | |
295 | 300 | | |
296 | 301 | | |
| |||
0 commit comments