gabotechs commented on code in PR #142:
URL:
https://github.com/apache/datafusion-iceberg/pull/142#discussion_r4736493145
##########
crates/test-tools/src/taxi.rs:
##########
@@ -59,6 +59,13 @@ const SECONDS_PER_DAY: i64 = 86_400;
/// files until dropped. Each file is a single row group with column chunk
/// statistics but without page indexes.
pub async fn create_taxi_table() -> Result<FixtureTable> {
+ create_taxi_table_with_row_group_size(TAXI_TRIPS_PER_DAY).await
+}
+
+/// Creates the same taxi fixture with at most `rows_per_group` trips per
Parquet row group.
+pub async fn create_taxi_table_with_row_group_size(
Review Comment:
This is not going to scale well. The moment you need to add function
variants suffixed by `_with_x_and_y` it opens a can of worms that ends up in an
unmaintainable chain of functions calling each other.
We could start with a very simpler builder pattern with just 1 parameter, or
a `TaxiTableOptions` struct. Whatever prevents people from introducing one new
function for each configuration variant is fine.
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]