Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Load OMOP data using parquet partitioned datasets #516

Open
stefpiatek opened this issue Oct 22, 2024 · 0 comments
Open

Load OMOP data using parquet partitioned datasets #516

stefpiatek opened this issue Oct 22, 2024 · 0 comments

Comments

@stefpiatek
Copy link
Contributor

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() 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant