8584: Add support for run-end encoded (REE) arrays in arrow-avro#3
8584: Add support for run-end encoded (REE) arrays in arrow-avro#3martin-augment wants to merge 9 commits intomainfrom
Conversation
Co-authored-by: Matthijs Brobbel <[email protected]>
Co-authored-by: Matthijs Brobbel <[email protected]>
Co-authored-by: Matthijs Brobbel <[email protected]>
WalkthroughA new import statement for Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes Poem
Pre-merge checks and finishing touches❌ Failed checks (3 warnings)
✨ Finishing touches
🧪 Generate unit tests (beta)
Comment |
Pull Request Review: Add Support for Run-End Encoded (REE) ArraysSummaryThis PR adds a single import statement for Code Quality & Best Practices ✅Positive:
Observations:
Potential Issues
|
There was a problem hiding this comment.
Actionable comments posted: 1
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
arrow-avro/src/writer/encoder.rs(1 hunks)
🧰 Additional context used
🪛 GitHub Actions: arrow
arrow-avro/src/writer/encoder.rs
[error] 32-32: the name RunEndIndexType is defined multiple times; remove the duplicate import.
[error] 32-32: unused import: RunEndIndexType; remove or use the imported symbol.
🪛 GitHub Actions: docs
arrow-avro/src/writer/encoder.rs
[error] 32-32: the name RunEndIndexType is defined multiple times. RunEndIndexType reimported here; remove unnecessary import. E0252: the name must be defined only once in the type namespace of this module.
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (3)
- GitHub Check: Verify MSRV (Minimum Supported Rust Version)
- GitHub Check: Archery test With other arrows
- GitHub Check: MIRI
| use crate::codec::{AvroDataType, AvroField, Codec}; | ||
| use crate::schema::{Fingerprint, Nullability, Prefix}; | ||
| use arrow_array::cast::AsArray; | ||
| use arrow_array::types::RunEndIndexType; |
There was a problem hiding this comment.
Remove duplicate RunEndIndexType import—blocking compilation error E0252.
RunEndIndexType is imported on line 23 as a standalone import and again on line 32 within the grouped import block. This creates a duplicate definition in the module namespace, which violates Rust's name uniqueness requirement (E0252) and prevents compilation.
Remove the standalone import on line 23 and retain the grouped import on line 32:
use crate::codec::{AvroDataType, AvroField, Codec};
use crate::schema::{Fingerprint, Nullability, Prefix};
use arrow_array::cast::AsArray;
-use arrow_array::types::RunEndIndexType;
use arrow_array::types::{
ArrowPrimitiveType, Date32Type, DurationMicrosecondType, DurationMillisecondType,
DurationNanosecondType, DurationSecondType, Float32Type, Float64Type, Int16Type, Int32Type,
Int64Type, IntervalDayTimeType, IntervalMonthDayNanoType, IntervalYearMonthType,
Time32MillisecondType, Time64MicrosecondType, TimestampMicrosecondType,
TimestampMillisecondType,
};
use arrow_array::types::{
RunEndIndexType, Time32SecondType, TimestampNanosecondType, TimestampSecondType,
};Also applies to: 31-33
🤖 Prompt for AI Agents
In arrow-avro/src/writer/encoder.rs lines 23 and 31-33, there is a duplicate
import of RunEndIndexType causing Rust E0252; remove the standalone import on
line 23 and keep the grouped import block (line ~32) instead, and scan the
import block to ensure RunEndIndexType appears only once (remove any other
duplicates if present).
8584: To review by AI
Summary by CodeRabbit