fresh-borzoni commented on code in PR #544:
URL: https://github.com/apache/fluss-rust/pull/544#discussion_r3233889068
##########
crates/fluss/src/row/column.rs:
##########
@@ -433,6 +627,40 @@ impl InternalRow for ColumnarRow {
write_arrow_values_to_fluss_array(&*values, &element_fluss_type, &mut
writer)?;
writer.complete()
}
+
+ fn get_row(&self, pos: usize) -> Result<&GenericRow<'_>> {
+ let cache_idx = self
+ .row_column_indices
+ .iter()
+ .position(|&i| i == pos)
+ .ok_or_else(|| IllegalArgument {
+ message: format!("get_row called on non-ROW column at position
{pos}"),
+ })?;
+ let column = self.record_batch.column(pos);
+ // Children of a null parent may carry stale bytes; caller must
+ // check is_null_at first rather than rely on what we'd read.
+ if column.is_null(self.row_id) {
Review Comment:
it will dissappear after https://github.com/apache/fluss-rust/issues/543
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]