Repository navigation
Conversation
Remove Python APIs whose deprecation period has long expired: Schema.field_by_name, Schema.add_metadata, ChunkedArray.data, ChunkedArray.format, UnionArray.child, Table.from_arrays(names=Schema), concat_tables(promote=), CumulativeSumOptions, Flight write_table(chunksize=), FlightClient.connect, FlightServer.run, orc.write_table swapped arguments, parquet._filters_to_expression, and the FutureWarning for pandas Categorical conversion with a mismatched value_type, which now raises.
The promote= handling was deleted but the signature still swallowed unknown keywords, so promote=True was silently ignored.
Member
Author
Member
Author
|
@jorisvandenbossche - does this look approximately right? |
|
|
||
| _filters_to_expression = _deprecate_api( | ||
| "_filters_to_expression", "filters_to_expression", | ||
| filters_to_expression, "10.0.0", DeprecationWarning) |
Member
There was a problem hiding this comment.
This one is still using DeprecationWarning, we might want to leave this one in place but using FutureWarning for a few more releases before removing.
All the others looks good!
Per review, retain the alias for a few more releases but upgrade the warning from DeprecationWarning to FutureWarning so users see it before removal. Add a test covering the alias and warning type.
rok
force-pushed
the
python-remove-old-deprecations
branch
from
October 13, 2026 14:38
784670f to
87b2431
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Rationale for this change
We have many deprecated APIs in Python we should slowly remove.
What changes are included in this PR?
Several deprecation messages are acted on.
Are these changes tested?
By the existing test suite.
Are there any user-facing changes?
Yes, some deprecated user-facing APIs are.removed.
Was AI used for this PR?
In accordance to the AI generation guidelines, please disclose below whether and how AI was used in this PR.
PR code and description written by:
Reviewed before submission by: