Skip to content

Commit

Permalink
MINOR: [Python] Fix name of new keyword in the concat_tables future w…
Browse files Browse the repository at this point in the history
…arning (#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 <jorisvandenbossche@gmail.com>
Signed-off-by: Joris Van den Bossche <jorisvandenbossche@gmail.com>
  • Loading branch information
jorisvandenbossche authored Nov 14, 2023
1 parent bb7ffaf commit cd0d7f5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion python/pyarrow/table.pxi
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down

0 comments on commit cd0d7f5

Please sign in to comment.