alamb commented on issue #4570: URL: https://github.com/apache/arrow-datafusion/issues/4570#issuecomment-1345252492
Her is my solution sketch: 1. Add `impl Display for Record` to sqlogictests (that is the opposite of `parse`) 2. Create an `update_record` based on the code in https://github.com/risinglightdb/sqllogictest-rs/blob/d753e4c77fbf00cdaab69477df2e9c3dba3f5fcc/sqllogictest-bin/src/lib.rs#L620 that updates a `Record` with the output of `RecordOutput` ```rust /// Update record using output. If this record is then /// fn update_output(record: output: RecordOutput) -> Result<Record> { ... ``` Then it will be possible to write code like ```rust for record in input_records { let record_output = runner.apply_record(record.clone()).await?; let new_record = update_record(record, record_output) write!(output_file, "{}", new_record) } ``` To write out the new file cc @xxchan and @xudong963 -- 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]
