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

raulcd 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 720dcbe419 GH-49745: [Docs][Python] Fix doctests failure in 
substrait.rst (#49754)
720dcbe419 is described below

commit 720dcbe4196b6ebd7b58f38ed3c6e527f1703290
Author: Alenka Frim <[email protected]>
AuthorDate: Wed Apr 15 12:12:19 2026 +0200

    GH-49745: [Docs][Python] Fix doctests failure in substrait.rst (#49754)
    
    ### Rationale for this change
    
    The [Python / AMD64 Conda Python 3.11 Sphinx & 
Numpydoc](https://github.com/apache/arrow/actions/runs/24404394331/job/71295731710?pr=49742)
 job is failing due to the version number change.
    
    ### What changes are included in this PR?
    
    - Use ellipsis so that all version-dependent bytes are covered.
    - Add `docs/source/python/**` to the python workflow path triggers to run 
Sphinx & Numpydoc CI on documentation changes.
    
    ### Are these changes tested?
    
    Yes, with Conda Python 3.11 Sphinx & Numpydoc job.
    
    ### Are there any user-facing changes?
    
    No.
    
    * GitHub Issue: #49745
    
    Authored-by: AlenkaF <[email protected]>
    Signed-off-by: Raúl Cumplido <[email protected]>
---
 .github/workflows/python.yml                 | 2 ++
 docs/source/python/integration/substrait.rst | 4 ++--
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml
index 9146047122..722a546db2 100644
--- a/.github/workflows/python.yml
+++ b/.github/workflows/python.yml
@@ -30,6 +30,7 @@ on:
       - 'ci/**'
       - 'cpp/**'
       - 'compose.yaml'
+      - 'docs/source/python/**'
       - 'python/**'
   pull_request:
     paths:
@@ -38,6 +39,7 @@ on:
       - 'ci/**'
       - 'cpp/**'
       - 'compose.yaml'
+      - 'docs/source/python/**'
       - 'python/**'
 
 concurrency:
diff --git a/docs/source/python/integration/substrait.rst 
b/docs/source/python/integration/substrait.rst
index ebc730614d..ab24b96fc8 100644
--- a/docs/source/python/integration/substrait.rst
+++ b/docs/source/python/integration/substrait.rst
@@ -59,7 +59,7 @@ all the extensions types:
 .. code-block:: python
 
     >>> print(bytes(substrait_schema.expression))
-    
b'"\x14\n\x01x\n\x01y\x12\x0c\n\x04*\x02\x10\x01\n\x04b\x02\x10\x01:\x19\x10,*\x15Acero
 ...'
+    b'"\x14\n\x01x\n\x01y\x12\x0c\n\x04*\x02\x10\x01\n\x04b\x02\x10\x01:...'
 
 If ``Substrait Python`` is installed, the schema can also be converted to
 a ``substrait-python`` object:
@@ -114,7 +114,7 @@ protobuf ``ExtendedExpression`` message data itself:
 .. code-block:: python
 
     >>> print(bytes(substrait_expr))
-    
b'\nZ\x12Xhttps://github.com/substrait-io/substrait/blob/main/extensions/functions_arithmetic.yaml\x12\x07\x1a\x05\x1a\x03add\x1a>\n5\x1a3\x1a\x04*\x02\x10\x01"\n\x1a\x08\x12\x06\n\x02\x12\x00"\x00"\x0c\x1a\n\x12\x08\n\x04\x12\x02\x08\x01"\x00*\x11\n\x08overflow\x12\x05ERROR\x1a\x05total"\x14\n\x01x\n\x01y\x12\x0c\n\x04*\x02\x10\x01\n\x04*\x02\x10\x01:\x19\x10,*\x15Acero
 ...'
+    
b'\nZ\x12Xhttps://github.com/substrait-io/substrait/blob/main/extensions/functions_arithmetic.yaml\x12\x07\x1a\x05\x1a\x03add\x1a>\n5\x1a3\x1a\x04*\x02\x10\x01"\n\x1a\x08\x12\x06\n\x02\x12\x00"\x00"\x0c\x1a\n\x12\x08\n\x04\x12\x02\x08\x01"\x00*\x11\n\x08overflow\x12\x05ERROR\x1a\x05total"\x14\n\x01x\n\x01y\x12\x0c\n\x04*\x02\x10\x01\n\x04*\x02\x10\x01:...'
 
 So in case a ``Substrait Python`` object is required, the expression
 has to be decoded from ``substrait-python`` itself:

Reply via email to