diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml index 8c62a81ae99e..31205cde5d55 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 ebc730614d8f..ab24b96fc8bc 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: