Fix stale num_rows argument breaking mypy in cudf-polars duplicated-output path - #23303
Merged
rapids-bot[bot] merged 1 commit intoJul 17, 2026
Conversation
📝 WalkthroughWalkthrough
ChangesReplicated output handling
Estimated code review effort: 1 (Trivial) | ~3 minutes Possibly related PRs
Suggested labels: Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
Contributor
Author
|
/okay to test f900238 |
mroeschke
approved these changes
Jul 16, 2026
Merged
Contributor
Author
|
/okay to test b4053f6 |
galipremsagar
requested review from
KyleFromNVIDIA,
PointKernel,
brandon-b-miller and
vyasr
July 17, 2026 01:01
Contributor
Author
|
/okay to test b4053f6 |
…ction DataFrame.from_table lost its num_rows parameter in NVIDIA#23234 (row counts are now inferred from the pylibcudf table, which carries them even for zero-column tables), but the duplicated-output path added in NVIDIA#23114 still passed num_rows=0, breaking mypy on every PR and raising TypeError at runtime on that path. empty_like already produces a 0-row table (including for zero-column inputs), so the argument was redundant.
galipremsagar
removed request for
a team,
KyleFromNVIDIA,
PointKernel,
brandon-b-miller and
vyasr
July 17, 2026 01:09
Contributor
Author
|
/okay to test 3a35541 |
Contributor
Author
|
/merge |
wence-
approved these changes
Jul 17, 2026
Contributor
|
/merge |
2 similar comments
Contributor
Author
|
/merge |
Contributor
Author
|
/merge |
Contributor
Author
|
/merge |
Contributor
Author
|
/merge |
1 similar comment
Contributor
Author
|
/merge |
rapids-bot
Bot
merged commit Jul 17, 2026
7b13484
into
NVIDIA:release/26.08
404 of 414 checks passed
davidwendt
pushed a commit
to wjxiz1992/cudf
that referenced
this pull request
Jul 21, 2026
…utput path (NVIDIA#23303) `DataFrame.from_table` lost its `num_rows` parameter in NVIDIA#23234 (row counts are now inferred from the pylibcudf table, which carries them even for zero-column tables), but the duplicated-output path added in NVIDIA#23114 still passes `num_rows=0`. The two PRs merged around the same time, so this surfaced only after both landed: mypy now fails on every PR's `check-style` job (`engine/core.py:840: Unexpected keyword argument "num_rows"`), and the path would raise `TypeError` at runtime. `plc.copying.empty_like` already produces a 0-row table (including for zero-column inputs, verified), so dropping the argument preserves the intended "freshly-allocated empty same-schema frame" semantics exactly. Authors: - GALI PREM SAGAR (https://github.com/galipremsagar) Approvers: - Matthew Roeschke (https://github.com/mroeschke) - Lawrence Mitchell (https://github.com/wence-) URL: NVIDIA#23303
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
DataFrame.from_tablelost itsnum_rowsparameter in #23234 (row counts are now inferred from the pylibcudf table, which carries them even for zero-column tables), but the duplicated-output path added in #23114 still passesnum_rows=0. The two PRs merged around the same time, so this surfaced only after both landed: mypy now fails on every PR'scheck-stylejob (engine/core.py:840: Unexpected keyword argument "num_rows"), and the path would raiseTypeErrorat runtime.plc.copying.empty_likealready produces a 0-row table (including for zero-column inputs, verified), so dropping the argument preserves the intended "freshly-allocated empty same-schema frame" semantics exactly.Checklist