From 8ab65e11947f435dfe8608ccb5d3e7a4dfe90c38 Mon Sep 17 00:00:00 2001 From: Matthew Roeschke <10647082+mroeschke@users.noreply.github.com> Date: Thu, 9 Jan 2025 13:39:50 -0800 Subject: [PATCH] Ensure pyarrow.Scalar to pylibcudf.Scalar is cached --- python/cudf/cudf/core/scalar.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/cudf/cudf/core/scalar.py b/python/cudf/cudf/core/scalar.py index 65262f33f30..6630433c9a3 100644 --- a/python/cudf/cudf/core/scalar.py +++ b/python/cudf/cudf/core/scalar.py @@ -37,7 +37,7 @@ def pa_scalar_to_plc_scalar(pa_scalar: pa.Scalar) -> plc.Scalar: ------- plc.Scalar """ - return plc.interop.to_arrow(pa_scalar) + return plc.interop.from_arrow(pa_scalar) # Note that the metaclass below can easily be generalized for use with