Add TPC-H nation and region key-width options #432
Can this be covered by the CLI help text instead? This seems too specific for the README.
Is there a reason for making this configurable i.e. can we always use i32?
Please update related schemas in the presto/testing/common/schemas/tpch directory (using the generate_test_files.sh script).
Can we have the metadata describe the generated schema in a more generic way i.e. capture column types (and possibly other metadata) for all columns (grouped by table), rather than adding specific fields for these columns?
I didn't want to close off the tpchgen-cli default of i64, and technically, while Parquet will represent smaller integer values with i32 (and thus won't reduce file size anymore), when hydrated to Arrow, an i8 would reduce the amount of bytes designated to keys. So, for large scale factors, there could be a slightly more optimal value. Don't really have the inclination to prod this right now, yet could be a future thing. However, yes, if you want to hard code i32, that's fine with me.
Right, I can, just a note that those aren't consulted if the data is created via setup_benchmark_tables.sh path, we generate the DDL from the Parquet files, not using this DDL. However, I can fix in this PR, since it switches the default.
See e88b2d6
See e88b2d6
Switched default without the optionality in e88b2d6
Updated in e88b2d6
Is there a reason for limiting this to just tpcgen-cli?
Is this test suite still needed, given the recently added table_schemas_test test suite?
/ok to test e88b2d6c472f9ccbc17b015b0035f0b614dbcf61
paul-aiyedun
kjmph
Expose independent i32/i64 options through the data generator and Presto setup script, preserving i64 defaults. Record the choices in dataset metadata and reject unsupported overrides before replacing existing data.
Add focused coverage for argument forwarding, inferred DDL, and validation.