This is an automated email from the ASF dual-hosted git repository.

pitrou pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow.git


The following commit(s) were added to refs/heads/main by this push:
     new 2ae036fdb61 GH-50680: [C++][Dev] Extend type IDs in gdb_arrow.py 
(#50683)
2ae036fdb61 is described below

commit 2ae036fdb61149a969fc11c220ef1766cdf2a858
Author: fenfeng9 <[email protected]>
AuthorDate: Tue Jul 28 20:31:48 2026 +0800

    GH-50680: [C++][Dev] Extend type IDs in gdb_arrow.py (#50683)
    
    ### Rationale for this change
    `gdb_arrow.py` mirrors the C++ `arrow::Type::type` enum by position, but it 
is missing several newer type IDs.
    
    The upcoming pretty-printer 
sub-issues(https://github.com/apache/arrow/issues/50656) share this dependency.
    ### What changes are included in this PR?
    Adds the missing `RunEndEncoded, BinaryView, ListView, and Decimal32/64` 
type IDs in the same order as the C++ enum.
    
    Individual pretty-printer support will be implemented separately.
    ### Are these changes tested?
    
    ### Are there any user-facing changes?
    No.
    * GitHub Issue: #50680
    
    Authored-by: fenfeng9 <[email protected]>
    Signed-off-by: Antoine Pitrou <[email protected]>
---
 cpp/gdb_arrow.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/cpp/gdb_arrow.py b/cpp/gdb_arrow.py
index c3f5ab62981..7c95a7c72b1 100644
--- a/cpp/gdb_arrow.py
+++ b/cpp/gdb_arrow.py
@@ -45,7 +45,9 @@ _type_ids = [
     'INTERVAL_MONTHS', 'INTERVAL_DAY_TIME', 'DECIMAL128', 'DECIMAL256',
     'LIST', 'STRUCT', 'SPARSE_UNION', 'DENSE_UNION', 'DICTIONARY', 'MAP',
     'EXTENSION', 'FIXED_SIZE_LIST', 'DURATION', 'LARGE_STRING',
-    'LARGE_BINARY', 'LARGE_LIST', 'INTERVAL_MONTH_DAY_NANO']
+    'LARGE_BINARY', 'LARGE_LIST', 'INTERVAL_MONTH_DAY_NANO',
+    'RUN_END_ENCODED', 'STRING_VIEW', 'BINARY_VIEW',
+    'LIST_VIEW', 'LARGE_LIST_VIEW', 'DECIMAL32', 'DECIMAL64']
 
 # Mirror the C++ Type::type enum
 Type = enum.IntEnum('Type', _type_ids, start=0)

Reply via email to