diff --git a/docs/source/developers/python/building.rst b/docs/source/developers/python/building.rst index 1d40d78f0ab..73a2482ecbf 100644 --- a/docs/source/developers/python/building.rst +++ b/docs/source/developers/python/building.rst @@ -621,7 +621,7 @@ certain components to be built): * - ``ARROW_ORC`` - ``PYARROW_WITH_ORC`` * - ``ARROW_GANDIVA`` - - ``PYARROW_WITH_GANDIVA`` + - ``PYARROW_WITH_GANDIVA`` (deprecated since version 24.0.0) Installing Nightly Packages =========================== diff --git a/docs/source/developers/python/development.rst b/docs/source/developers/python/development.rst index e70fb443075..91f98cab060 100644 --- a/docs/source/developers/python/development.rst +++ b/docs/source/developers/python/development.rst @@ -90,7 +90,7 @@ The test groups currently include: * ``dataset``: Apache Arrow Dataset tests * ``flight``: Flight RPC tests -* ``gandiva``: tests for Gandiva expression compiler (uses LLVM) +* ``gandiva``: tests for Gandiva expression compiler (uses LLVM, deprecated since version 24.0.0) * ``hdfs``: tests that use libhdfs to access the Hadoop filesystem * ``hypothesis``: tests that use the ``hypothesis`` module for generating random test cases. Note that ``--hypothesis`` doesn't work due to a quirk diff --git a/python/pyarrow/gandiva.pyx b/python/pyarrow/gandiva.pyx index eb764df7358..0a6e8f786e5 100644 --- a/python/pyarrow/gandiva.pyx +++ b/python/pyarrow/gandiva.pyx @@ -75,6 +75,14 @@ from pyarrow.includes.libgandiva cimport ( GetRegisteredFunctionSignatures) +import warnings +warnings.warn( + "pyarrow.gandiva is deprecated as of 24.0.0 and will be removed in a future version.", + FutureWarning, + stacklevel=2, +) + + cdef class Node(_Weakrefable): cdef: shared_ptr[CNode] node diff --git a/python/setup.cfg b/python/setup.cfg index b0c3edfa8be..2d6558009b1 100644 --- a/python/setup.cfg +++ b/python/setup.cfg @@ -22,6 +22,8 @@ build-dir = doc/_build [tool:pytest] addopts = --ignore=scripts filterwarnings = + # https://github.com/apache/arrow/issues/49227 + ignore:pyarrow.gandiva is deprecated:FutureWarning error:The SparseDataFrame:FutureWarning # https://github.com/apache/arrow/issues/38239 ignore:Setting custom ClientSession:DeprecationWarning