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

jorisvandenbossche 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 cd0d7f53b3 MINOR: [Python] Fix name of new keyword in the 
concat_tables future warning (#38710)
cd0d7f53b3 is described below

commit cd0d7f53b3ab7dfac7a3477751a87586d4da3782
Author: Joris Van den Bossche <[email protected]>
AuthorDate: Tue Nov 14 17:31:08 2023 +0100

    MINOR: [Python] Fix name of new keyword in the concat_tables future warning 
(#38710)
    
    We renamed the new keyword in a final iteration of the PR, but apparently 
forgot to update the warning message.
    
    Authored-by: Joris Van den Bossche <[email protected]>
    Signed-off-by: Joris Van den Bossche <[email protected]>
---
 python/pyarrow/table.pxi | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/python/pyarrow/table.pxi b/python/pyarrow/table.pxi
index bbf60416de..e55a0d1dd5 100644
--- a/python/pyarrow/table.pxi
+++ b/python/pyarrow/table.pxi
@@ -5226,7 +5226,8 @@ def concat_tables(tables, MemoryPool memory_pool=None, 
str promote_options="none
 
     if "promote" in kwargs:
         warnings.warn(
-            "promote has been superseded by mode='default'.", FutureWarning, 
stacklevel=2)
+            "promote has been superseded by promote_options='default'.",
+            FutureWarning, stacklevel=2)
         if kwargs['promote'] is True:
             promote_options = "default"
 

Reply via email to