Commit 3b6e2fb
authored
fix: deprecate data_type_and_nullable and simplify API usage (#18869)
## Which issue does this PR close?
- Closes #18844
## What changes are included in this PR?
Instead of using `data_type_and_nullable`, this patch removes the
indirection and calls `to_field` directly. The deprecated helper added
no additional logic, so the PR encourages callers to use the field
returned by to_field to access both the data type and the nullability.
## Are these changes tested?
Yes1 parent 0f1133e commit 3b6e2fb
File tree
4 files changed
+42
-29
lines changed- datafusion
- expr/src
- sql/src
- expr
- substrait/src/logical_plan/consumer/expr
4 files changed
+42
-29
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
61 | 65 | | |
62 | 66 | | |
63 | 67 | | |
| |||
150 | 154 | | |
151 | 155 | | |
152 | 156 | | |
153 | | - | |
| 157 | + | |
154 | 158 | | |
155 | 159 | | |
156 | 160 | | |
| |||
350 | 354 | | |
351 | 355 | | |
352 | 356 | | |
353 | | - | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
354 | 360 | | |
355 | 361 | | |
356 | 362 | | |
| |||
530 | 536 | | |
531 | 537 | | |
532 | 538 | | |
533 | | - | |
534 | | - | |
535 | | - | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
536 | 547 | | |
537 | 548 | | |
538 | 549 | | |
| |||
1125 | 1136 | | |
1126 | 1137 | | |
1127 | 1138 | | |
| 1139 | + | |
1128 | 1140 | | |
1129 | | - | |
1130 | | - | |
| 1141 | + | |
| 1142 | + | |
1131 | 1143 | | |
1132 | 1144 | | |
1133 | 1145 | | |
1134 | 1146 | | |
| 1147 | + | |
1135 | 1148 | | |
1136 | | - | |
1137 | | - | |
| 1149 | + | |
| 1150 | + | |
1138 | 1151 | | |
1139 | 1152 | | |
1140 | 1153 | | |
| |||
1143 | 1156 | | |
1144 | 1157 | | |
1145 | 1158 | | |
| 1159 | + | |
1146 | 1160 | | |
1147 | | - | |
1148 | | - | |
| 1161 | + | |
| 1162 | + | |
1149 | 1163 | | |
| 1164 | + | |
1150 | 1165 | | |
| 1166 | + | |
1151 | 1167 | | |
1152 | | - | |
1153 | | - | |
| 1168 | + | |
| 1169 | + | |
1154 | 1170 | | |
1155 | 1171 | | |
1156 | 1172 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
| 41 | + | |
| 42 | + | |
42 | 43 | | |
43 | | - | |
44 | | - | |
| 44 | + | |
| 45 | + | |
45 | 46 | | |
46 | 47 | | |
47 | 48 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
421 | 421 | | |
422 | 422 | | |
423 | 423 | | |
424 | | - | |
425 | | - | |
| 424 | + | |
| 425 | + | |
426 | 426 | | |
427 | 427 | | |
428 | 428 | | |
| |||
436 | 436 | | |
437 | 437 | | |
438 | 438 | | |
439 | | - | |
440 | | - | |
441 | | - | |
442 | | - | |
443 | | - | |
444 | | - | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
445 | 443 | | |
446 | 444 | | |
447 | 445 | | |
| |||
482 | 480 | | |
483 | 481 | | |
484 | 482 | | |
485 | | - | |
486 | | - | |
| 483 | + | |
| 484 | + | |
487 | 485 | | |
488 | 486 | | |
489 | 487 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
143 | 143 | | |
144 | 144 | | |
145 | 145 | | |
146 | | - | |
147 | | - | |
148 | | - | |
| 146 | + | |
149 | 147 | | |
150 | 148 | | |
151 | 149 | | |
| |||
0 commit comments