Repository navigation
Remove standalone long-deprecated APIs - #11957
Rich-T-kid wants to merge 3 commits into
Conversation
c39ed9d to
6786552
Compare
Remove the fixed-size binary sparse iterator constructor deprecated in 28.0.0 and the generated IPC enum globals deprecated in 2.0.0. Their supported replacements remain available.
6786552 to
8a60084
Compare
There was a problem hiding this comment.
Thanks for the housekeeping @Rich-T-kid! 🧹
Just a couple of nits my agent brought up. Take with a grain of salt.
| #[deprecated( | ||
| since = "2.0.0", | ||
| note = "Use associated constants instead. This will no longer be generated in 2021." | ||
| )] | ||
| pub const ENUM_MIN_COMPRESSION_TYPE: i8 = 0; |
There was a problem hiding this comment.
My bot points out it seems these are produced by flatc, so if these files are regenerated the deprecated constants will reappear.
There was a problem hiding this comment.
will keep in mind
|
I think we are planning a 60.2 release So maybe we should only remove stuff that should be removed up to 60 |
|
Thank you for this housecleaning, @Rich-T-kid |
doesn't it need to be the next breaking release? I was planning to have this shipped in arrow 61.0.0 |
Got it -- makes sense. I also see you added the appropriate labels Thank you |
The supported sparse iterator constructor uses infallible buffer allocation. Document that allocation failure can panic now that the older fallible constructor is being removed.
Which issue does this PR close?
Rationale for this change
Arrow 61 is the next breaking release. This removes standalone APIs deprecated before the last three major releases (58 through 60) that already have supported replacements.
The deprecation policy keeps deprecated APIs for at least two major releases. The newest API removed here was deprecated in 57.0.0 and has remained available through Arrow 58, 59, and 60.
The older
dict_idAPIs and ParquetBIT_PACKEDremain: removingdict_idrequires the IPC schema work tracked by #5981, whileBIT_PACKEDis still needed to decode legacy Parquet data.What changes are included in this PR?
FixedSizeBinaryArray::try_from_sparse_iter, deprecated since 28.0.0.TryFrom<Vec<Option<&[u8]>>>now infers the width and delegates totry_from_sparse_iter_with_sizewhile preserving the existing empty-input error.NullArray::builder, documented as deprecated since 52.0.0.DictionaryTracker::insert, deprecated since 56.1.0 in favor ofinsert_column.IpcDataGenerator::encoded_batch, deprecated since 57.0.0 in favor ofencode.ENUM_MIN_*,ENUM_MAX_*, andENUM_VALUES_*globals generated for 15 IPC enum types, deprecated since 2.0.0:Message.rs:CompressionType,BodyCompressionMethod, andMessageHeader.Schema.rs:MetadataVersion,Feature,UnionMode,Precision,DateUnit,TimeUnit,IntervalUnit,Type,DictionaryKind, andEndianness.SparseTensor.rs:SparseMatrixCompressedAxisandSparseTensorIndex.The corresponding
Type::ENUM_MIN,Type::ENUM_MAX, andType::ENUM_VALUESassociated constants remain available.Are these changes tested?
The workspace tests and doctests pass. The Arrow Array and IPC all-feature suites and all-target/all-feature Clippy checks also pass.
Are there any significant user-facing changes?
This removes public compatibility APIs deprecated before Arrow 58.
NullArray::buildernow takes no capacity argument.