Commit cd7c89f
docs: fix partition_pattern order preservation
The partition_pattern was not preserving the order of attributes specified
in the pattern because it was iterating over a set (unordered). This caused
paths like 'neuron_id=0/mouse_id=5/session_date=2017-01-05/...' instead of
the expected 'mouse_id=5/session_date=2017-01-05/neuron_id=0/...'.
Changes:
- Extract partition attributes as a list to preserve order
- Keep a set for efficient lookup when filtering remaining PK attributes
- Iterate over the ordered list when building partition path components
Co-Authored-By: Claude Sonnet 4.5 <[email protected]>1 parent c3e0163 commit cd7c89f
1 file changed
+6
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
234 | 234 | | |
235 | 235 | | |
236 | 236 | | |
| 237 | + | |
237 | 238 | | |
238 | 239 | | |
239 | 240 | | |
240 | 241 | | |
241 | 242 | | |
242 | | - | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
243 | 246 | | |
244 | | - | |
| 247 | + | |
245 | 248 | | |
246 | | - | |
| 249 | + | |
247 | 250 | | |
248 | 251 | | |
249 | 252 | | |
| |||
0 commit comments