-
Notifications
You must be signed in to change notification settings - Fork 4.3k
GH-50657: [C++][Dev] Implement BinaryView support in gdb_arrow.py - #50662
GH-50657: [C++][Dev] Implement BinaryView support in gdb_arrow.py #50662KHARSHAVARDHAN-eng wants to merge 2 commits into
Conversation
fenfeng9
commented
Aug 2, 2026
@KHARSHAVARDHAN-eng Hi! Are you still planning to continue this PR? It overlaps with GH-50680, which was merged into main and already added STRING_VIEW and BINARY_VIEW to _type_ids in gdb_arrow.py
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why is this necessary?
KHARSHAVARDHAN-eng
commented
Aug 3, 2026
Hi @raulcd,
Thanks for the review.
Originally, this PR included the manual _type_id_tuples extension because STRING_VIEW and BINARY_VIEW were not yet present in gdb_arrow.py.
Since GH-50680 has now been merged, I've rebased this PR onto the latest main and removed that redundant workaround.
This PR now focuses only on adding the pretty-printer support and corresponding tests for StringView and BinaryView.
Please let me know if you see anything else that should be adjusted. Thanks!
KHARSHAVARDHAN-eng
commented
Aug 3, 2026
Hi @fenfeng9,
Thanks for pointing that out.
I've now rebased this PR onto the latest main and removed the duplicated enum registration that was added by GH-50680.
The remaining changes are limited to the pretty-printer implementation and its associated tests for StringView and BinaryView.
Thanks for the review!
26f0842 to
23a7ed4
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this doesn't seem correct. This will use the BinaryArrayDataPrinter for Binary View layout Arrays. You should add tests for arrays:
arrow/python/pyarrow/tests/test_gdb.py
Lines 1044 to 1077 in 88c8094
KHARSHAVARDHAN-eng
commented
Aug 16, 2026
@raulcd , in process of correcting my old pull request..
Thanks for the review! I’ve updated the implementation to use a dedicated BinaryViewArrayDataPrinter and added array coverage for StringView/BinaryView, including sliced arrays.
KHARSHAVARDHAN-eng
commented
Aug 24, 2026
1 similar comment
KHARSHAVARDHAN-eng
commented
Aug 29, 2026
KHARSHAVARDHAN-eng
commented
Aug 31, 2026
KHARSHAVARDHAN-eng
commented
Sep 7, 2026
pitrou
commented
Sep 10, 2026
The failures in Conda-based builds will be fixed by #51266
pitrou
commented
Sep 10, 2026
Actually, @KHARSHAVARDHAN-eng , can you rebase / merge from git main?
Uh oh!
There was an error while loading. Please reload this page.
Why are these changes needed?
gdb_arrow.pycurrently does not support pretty-printing forBinaryViewandStringViewdata types.This PR adds debugger support for these types while reusing the existing pretty-printer infrastructure.
What changes are included?
BinaryViewandStringViewtype registration.Are these changes tested?
Yes.
Are there any user-facing changes?
No.
This change only improves the developer debugging experience.
gdb_arrow.py#50657