jecsand838 commented on code in PR #8349: URL: https://github.com/apache/arrow-rs/pull/8349#discussion_r2369133185
########## arrow-avro/src/reader/record.rs: ########## @@ -1518,19 +1104,340 @@ impl Decoder { .map_err(|e| ArrowError::ParseError(e.to_string()))?; Arc::new(vals) } - Self::Union(fields, type_ids, offsets, encodings, _, None) => { - flush_union!(fields, type_ids, offsets, encodings) - } - Self::Union(fields, type_ids, offsets, encodings, _, Some(union_resolution)) => { - match &mut union_resolution.kind { - UnionResolvedKind::Both { .. } | UnionResolvedKind::FromSingle { .. } => { - flush_union!(fields, type_ids, offsets, encodings) - } - UnionResolvedKind::ToSingle { target } => target.flush(nulls)?, + Self::Union(u) => u.flush(nulls)?, + }) + } +} + +#[derive(Debug)] +struct DispatchLut { Review Comment: 100% `DispatchLookupTable` is a better name for it. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: github-unsubscr...@arrow.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org