Helper for row count demuxer
(
base_output_path: &ListingTableUrl,
write_id: &str,
part_idx: usize,
file_extension: &str,
single_file_output: bool,
)
| 251 | |
| 252 | /// Helper for row count demuxer |
| 253 | fn generate_file_path( |
| 254 | base_output_path: &ListingTableUrl, |
| 255 | write_id: &str, |
| 256 | part_idx: usize, |
| 257 | file_extension: &str, |
| 258 | single_file_output: bool, |
| 259 | ) -> Path { |
| 260 | if !single_file_output { |
| 261 | base_output_path |
| 262 | .prefix() |
| 263 | .clone() |
| 264 | .join(format!("{write_id}_{part_idx}.{file_extension}")) |
| 265 | } else { |
| 266 | base_output_path.prefix().to_owned() |
| 267 | } |
| 268 | } |
| 269 | |
| 270 | /// Helper for row count demuxer |
| 271 | fn create_new_file_stream( |
no test coverage detected
searching dependent graphs…