Skip to content

could configure-generators --spec spec.csv cope with entire missing source tables ? #61

@andysouth

Description

@andysouth

configure-generators --spec spec.csv is intended to allow us to set the generator options for columns and then apply to multiple projects.

Currently some of our OMOP projects don't have all tables in the source data. This causes configure-generators to fail when using the specification csv. We can get around this by editing spec.csv on a project by project basis, but that rather defeats the object of it.

One option could be to get datafaker not to generate tables that don't have any data in the source.

Tim points out that this makes config.yaml less shareable to other projects. Ideally you want to have row_generators set even for your empty tables. But for those tables you want to be empty in your specific destination database you want num_rows_per_pass: 0 to make it empty. But you don't want num_rows_per_pass to be 0 for other databases that do want generation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions