abandy commented on code in PR #35985:
URL: https://github.com/apache/arrow/pull/35985#discussion_r1225505263
##########
swift/Arrow/Tests/ArrowTests/IPCTests.swift:
##########
@@ -108,33 +108,34 @@ final class IPCFileReaderTests: XCTestCase {
let fileRBs = try checkBoolRecordBatch(arrowReader.fromFile(fileURL))
let arrowWriter = ArrowWriter()
//write data from file to a stream
- switch arrowWriter.toStream(fileRBs[0].schema, batches: fileRBs) {
+ let writerInfo = ArrowWriter.Info(.recordbatch, schema:
fileRBs[0].schema, batches: fileRBs)
+ switch arrowWriter.toStream(writerInfo) {
case .success(let writeData):
//read stream back into recordbatches
try checkBoolRecordBatch(arrowReader.fromStream(writeData))
case .failure(let error):
throw error
}
-
+
//write file record batches to another file
let outputUrl =
currentDirectory().appendingPathComponent("../../testfilewriter_bool.arrow")
- switch arrowWriter.toFile(outputUrl, schema: fileRBs[0].schema,
batches: fileRBs) {
+ switch arrowWriter.toFile(outputUrl, info: writerInfo) {
case .success(_):
try checkBoolRecordBatch(arrowReader.fromFile(outputUrl))
case .failure(let error):
throw error
}
}
-
+
Review Comment:
Will remove.
--
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]