Skip to content

Conversation

@Xuanwo
Copy link
Member

@Xuanwo Xuanwo commented Aug 15, 2025

Which issue does this PR close?

Rationale for this change

Code Cleanup

What changes are included in this PR?

Use tempfile to replace hand-written utils functions

Are these changes tested?

tested in CI.

Are there any user-facing changes?

No

Signed-off-by: Xuanwo <github@xuanwo.io>
@github-actions github-actions bot added arrow Changes to the arrow crate arrow-avro arrow-avro crate labels Aug 15, 2025
Copy link
Contributor

@alamb alamb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @Xuanwo

cc @jecsand838

arrow::compute::concat_batches(&schema, &input_batches).expect("concat input");
let out_path = unique_temp_path("arrow_avro_roundtrip");
let tmp = NamedTempFile::new().expect("create temp file");
let out_path = tmp.into_temp_path();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@alamb alamb merged commit e4f74d8 into apache:main Aug 15, 2025
24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

arrow Changes to the arrow crate arrow-avro arrow-avro crate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[avro] Use tempfile crate rather than custom temporary file generator in tests

2 participants