Commit 415bd42
authored
chore: Remove duplicate imports in test code (#21061)
## Which issue does this PR close?
N/A
## Rationale for this change
`clippy` doesn't warn about `use` statements that re-import an item that
is already available via a glob import (`use super::*`), but in many
cases the `use` statement is redundant and can be safely removed. In
particular, there was a lot of test code that did both `use super::*`
and also imported items that were imported by the module under test; the
test-specific import can be safely removed.
## What changes are included in this PR?
* Mechanical removal of duplicate imports between test code and code
under test
## Are these changes tested?
Yes, via `cargo check` and `cargo clippy`
## Are there any user-facing changes?
No.1 parent d6cffd7 commit 415bd42
121 files changed
Lines changed: 76 additions & 239 deletions
File tree
- datafusion
- catalog-listing/src
- common/src
- scalar
- types
- core/src
- dataframe
- datasource
- datasource-arrow/src
- datasource-json/src
- datasource-parquet/src
- datasource/src
- execution/src/cache
- expr-common/src
- expr/src
- expr_rewriter
- logical_plan
- type_coercion
- ffi/src/session
- functions-aggregate-common/src
- functions-aggregate/src
- functions-window/src
- functions/src
- datetime
- math
- regex
- string
- optimizer/src
- simplify_expressions
- physical-expr-adapter/src
- physical-expr-common/src
- physical-expr/src
- equivalence
- properties
- expressions
- intervals
- simplifier
- utils
- physical-optimizer/src
- physical-plan/src
- aggregates
- order
- joins
- hash_join
- piecewise_merge_join
- repartition
- sorts
- spill
- topk
- proto/src/physical_plan
- spark/src/function
- aggregate
- bitwise
- datetime
- json
- map
- math
- string
- url
- substrait/src/logical_plan
- consumer
- producer
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
462 | 462 | | |
463 | 463 | | |
464 | 464 | | |
465 | | - | |
| 465 | + | |
466 | 466 | | |
467 | 467 | | |
468 | 468 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
920 | 920 | | |
921 | 921 | | |
922 | 922 | | |
923 | | - | |
924 | 923 | | |
925 | 924 | | |
926 | 925 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5336 | 5336 | | |
5337 | 5337 | | |
5338 | 5338 | | |
5339 | | - | |
5340 | 5339 | | |
5341 | 5340 | | |
5342 | 5341 | | |
| |||
5354 | 5353 | | |
5355 | 5354 | | |
5356 | 5355 | | |
5357 | | - | |
5358 | 5356 | | |
5359 | 5357 | | |
5360 | 5358 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
143 | 143 | | |
144 | 144 | | |
145 | 145 | | |
146 | | - | |
| 146 | + | |
147 | 147 | | |
148 | 148 | | |
149 | 149 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
565 | 565 | | |
566 | 566 | | |
567 | 567 | | |
568 | | - | |
569 | 568 | | |
570 | 569 | | |
571 | 570 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
110 | | - | |
111 | 110 | | |
112 | 111 | | |
113 | 112 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
557 | 557 | | |
558 | 558 | | |
559 | 559 | | |
560 | | - | |
561 | | - | |
562 | | - | |
563 | 560 | | |
564 | 561 | | |
565 | 562 | | |
566 | 563 | | |
567 | 564 | | |
568 | 565 | | |
569 | 566 | | |
570 | | - | |
571 | 567 | | |
572 | 568 | | |
573 | 569 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
557 | 557 | | |
558 | 558 | | |
559 | 559 | | |
560 | | - | |
| 560 | + | |
561 | 561 | | |
562 | 562 | | |
563 | 563 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
523 | 523 | | |
524 | 524 | | |
525 | 525 | | |
526 | | - | |
527 | 526 | | |
528 | 527 | | |
529 | 528 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1808 | 1808 | | |
1809 | 1809 | | |
1810 | 1810 | | |
1811 | | - | |
1812 | 1811 | | |
1813 | 1812 | | |
1814 | 1813 | | |
1815 | | - | |
1816 | 1814 | | |
1817 | 1815 | | |
1818 | 1816 | | |
| |||
0 commit comments