Skip to content

Load OMOP data using parquet partitioned datasets #516

@stefpiatek

Description

@stefpiatek

Definition of Done / Acceptance Criteria

OMOP ES now outputs partitioned parquet datasets. Arrow has a nice way of making sure that it partitions the data and has an easy way to deal with recombining these datasets as well.

Testing

@stefpiatek to add in an example dataset here so that we can use it for testing. If it works on one partition then that should be fine, all of our parquet tests should be moved over to use this

Documentation

Update documentation in the CLI and its README

Dependencies

No response

Details and Comments

I think it should be as simple as this. if the partitioned_dataset_directory has two partitions it would have a 1 and a 2 directory. (e.g. 1/PERSON.parquet..., 2/PERSON.parquet...)

dataset = pq.ParquetDataset(partitioned_dataset_directory)
table = dataset.read()
df = table.to_pandas() 

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