Commit 7e4b43b
Fix sortby descending order placing NaNs at beginning instead of end (#11118)
Use duck_array_ops.notnull as additional sort keys to ensure null values
sort to the end in descending order. This is cleaner than the previous
approach of manually tracking NaN positions.
Fixes #7358
Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: Julia Signell <jsignell@gmail.com>1 parent e993e1c commit 7e4b43b
3 files changed
+59
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
49 | 52 | | |
50 | 53 | | |
51 | 54 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8129 | 8129 | | |
8130 | 8130 | | |
8131 | 8131 | | |
8132 | | - | |
8133 | | - | |
| 8132 | + | |
| 8133 | + | |
| 8134 | + | |
| 8135 | + | |
| 8136 | + | |
| 8137 | + | |
| 8138 | + | |
| 8139 | + | |
| 8140 | + | |
| 8141 | + | |
| 8142 | + | |
| 8143 | + | |
| 8144 | + | |
| 8145 | + | |
| 8146 | + | |
8134 | 8147 | | |
8135 | 8148 | | |
8136 | 8149 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7232 | 7232 | | |
7233 | 7233 | | |
7234 | 7234 | | |
| 7235 | + | |
| 7236 | + | |
| 7237 | + | |
| 7238 | + | |
| 7239 | + | |
| 7240 | + | |
| 7241 | + | |
| 7242 | + | |
| 7243 | + | |
| 7244 | + | |
| 7245 | + | |
| 7246 | + | |
| 7247 | + | |
| 7248 | + | |
| 7249 | + | |
| 7250 | + | |
| 7251 | + | |
| 7252 | + | |
| 7253 | + | |
| 7254 | + | |
| 7255 | + | |
| 7256 | + | |
| 7257 | + | |
| 7258 | + | |
| 7259 | + | |
| 7260 | + | |
| 7261 | + | |
| 7262 | + | |
| 7263 | + | |
| 7264 | + | |
| 7265 | + | |
| 7266 | + | |
| 7267 | + | |
| 7268 | + | |
| 7269 | + | |
| 7270 | + | |
| 7271 | + | |
| 7272 | + | |
| 7273 | + | |
| 7274 | + | |
| 7275 | + | |
7235 | 7276 | | |
7236 | 7277 | | |
7237 | 7278 | | |
| |||
0 commit comments