Commit 6601959
authored
Adds prefix filtering for table URLs (apache#18780)
## Which issue does this PR close?
This is a follow-on PR spurred by this comment chain:
- apache#18146 (comment)
This work is associated with:
- apache#17211
## Rationale for this change
The implementation prior to merging
apache#18146 was capable of only
listing files under a specific prefix when the known prefixes could be
matched to filters. This PR re-introduces that capability, alleviating
the need to list and filter every file for a table when the filters
match.
## What changes are included in this PR?
- Adds the ability to list files backing a table URL optionally filtered
by a path prefix
- Reintroduces the ability for partitioned listing tables to only list
prefixes that match an input filter
- Adds tests for new functionality
## Are these changes tested?
Yes. There is existing coverage on many of the changes, new tests have
been added, and existing integration tests have been updated to show the
change in behavior.
## Are there any user-facing changes?
no
##
cc @alamb1 parent 45e9352 commit 6601959
File tree
3 files changed
+83
-14
lines changed- datafusion
- catalog-listing/src
- core/tests/datasource
- datasource/src
3 files changed
+83
-14
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
381 | 381 | | |
382 | 382 | | |
383 | 383 | | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
384 | 390 | | |
385 | | - | |
| 391 | + | |
386 | 392 | | |
387 | 393 | | |
388 | 394 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
166 | 166 | | |
167 | 167 | | |
168 | 168 | | |
169 | | - | |
| 169 | + | |
170 | 170 | | |
171 | 171 | | |
172 | 172 | | |
| |||
220 | 220 | | |
221 | 221 | | |
222 | 222 | | |
223 | | - | |
| 223 | + | |
224 | 224 | | |
225 | 225 | | |
226 | 226 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
233 | 233 | | |
234 | 234 | | |
235 | 235 | | |
236 | | - | |
237 | | - | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
238 | 239 | | |
239 | 240 | | |
240 | 241 | | |
| 242 | + | |
241 | 243 | | |
242 | 244 | | |
243 | 245 | | |
244 | 246 | | |
245 | 247 | | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
246 | 256 | | |
247 | | - | |
| 257 | + | |
248 | 258 | | |
249 | | - | |
| 259 | + | |
250 | 260 | | |
251 | 261 | | |
252 | 262 | | |
253 | 263 | | |
254 | 264 | | |
255 | 265 | | |
256 | | - | |
| 266 | + | |
257 | 267 | | |
258 | 268 | | |
259 | 269 | | |
| |||
269 | 279 | | |
270 | 280 | | |
271 | 281 | | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
272 | 293 | | |
273 | 294 | | |
274 | 295 | | |
| |||
306 | 327 | | |
307 | 328 | | |
308 | 329 | | |
309 | | - | |
| 330 | + | |
310 | 331 | | |
311 | 332 | | |
312 | 333 | | |
| |||
701 | 722 | | |
702 | 723 | | |
703 | 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 | + | |
704 | 754 | | |
705 | 755 | | |
706 | 756 | | |
| |||
712 | 762 | | |
713 | 763 | | |
714 | 764 | | |
715 | | - | |
| 765 | + | |
716 | 766 | | |
717 | 767 | | |
718 | 768 | | |
719 | 769 | | |
720 | 770 | | |
721 | 771 | | |
722 | 772 | | |
723 | | - | |
| 773 | + | |
| 774 | + | |
| 775 | + | |
| 776 | + | |
| 777 | + | |
| 778 | + | |
| 779 | + | |
| 780 | + | |
| 781 | + | |
| 782 | + | |
| 783 | + | |
| 784 | + | |
| 785 | + | |
724 | 786 | | |
725 | 787 | | |
726 | | - | |
727 | | - | |
| 788 | + | |
| 789 | + | |
728 | 790 | | |
729 | 791 | | |
| 792 | + | |
730 | 793 | | |
731 | 794 | | |
732 | 795 | | |
733 | 796 | | |
734 | 797 | | |
735 | | - | |
| 798 | + | |
736 | 799 | | |
737 | 800 | | |
738 | 801 | | |
| |||
0 commit comments