emecii commented on issue #50382: URL: https://github.com/apache/arrow/issues/50382#issuecomment-5596555254
I mapped the current `ArrowFormat` type families. I suggest one explicit-type path for every represented type: ```ruby ArrowFormat::ArrayBuilder.build(values, type: nil) ArrowFormat::Array.build(values, type: nil) # delegate ``` Inference would stay conservative; empty/all-null values and ambiguous `Hash` values would require `type:`. Dictionary arrays also need a stateful `ArrayBuilder.new(type:)` API so memo/delta state can survive multiple `finish` calls. Two scope questions before I implement: does “all types” mean the existing `ArrowFormat::Type` subclasses, or also currently missing IPC types such as run-end encoded and view arrays? And should the stateful dictionary API ship together with the batch API? -- 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]
