pub fn write_partition_file(
lake: &DataLakeConnection,
view_metadata: ViewMetadata,
file_schema: Arc<Schema>,
insert_range: TimeRange,
source_data_hash: Vec<u8>,
sort_order: Option<Vec<String>>,
rb_stream: Receiver<Result<PartitionRowSet, Error>>,
logger: Arc<dyn Logger>,
) -> impl Future<Output = Result<Partition, Error>>Expand description
Writes the rows of rb_stream to a new parquet file and returns the Partition describing
it, without registering it in lakehouse_partitions. The caller owns the file until it is
registered: if it never is, it must delete the file (see delete_if_orphan).