parquet_tables_predefined Submodule

Binding the predefined columns a GENERATED table type declares: %bind_predefined.

A generated table type (doc/pages/utilities/generated-tables.md) is an extension of parquet_table carrying one accessor per column its schema declares. Those columns have to be checked against the file, converted to the declared kind and read, before any accessor is called -- and all of that lives HERE rather than in the generated text, deliberately:

  • a downstream project COMMITS its generated file, so a rule emitted into it is frozen at the version that generated it, whereas a rule living here is fixed by upgrading the library;
  • the rules become testable without running the generator at all -- test/test_table.f90 drives this procedure through a hand-written extension type;
  • the generated file stays short enough that a user can read the module they are expected to edit.

The generated %init therefore emits one call: a data table of names, kinds, widths and from_file flags, and nothing else.


Uses