XiaoHongbo-Hope commented on code in PR #7174:
URL: https://github.com/apache/paimon/pull/7174#discussion_r2753791915
##########
paimon-python/pypaimon/read/reader/data_file_batch_reader.py:
##########
@@ -135,7 +135,12 @@ def _assign_row_tracking(self, record_batch: RecordBatch)
-> RecordBatch:
# Create a new array that fills with max_sequence_number
arrays[idx] = pa.repeat(self.max_sequence_number,
record_batch.num_rows)
- return pa.RecordBatch.from_arrays(arrays,
names=record_batch.schema.names)
+ names = record_batch.schema.names
+ fields = [
+ pa.field(name, arrays[i].type,
nullable=record_batch.schema.field(name).nullable)
+ for i, name in enumerate(names)
+ ]
+ return pa.RecordBatch.from_arrays(arrays, schema=pa.schema(fields))
Review Comment:
> Can you use `append_column`?
Updated
--
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]