Parquet data system implementation#434
Open
mcuadera wants to merge 29 commits into
Open
Conversation
for building the parquet raw data from EDAV
ctry + year creates too much sharding
also include new helper function
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## dev #434 +/- ##
=====================================
Coverage ? 1.93%
=====================================
Files ? 41
Lines ? 15614
Branches ? 0
=====================================
Hits ? 302
Misses ? 15312
Partials ? 0 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Collaborator
Author
|
I added an example of get_all_polio_data() using the parquet system calling it Examples: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #264
There are several functions that were built to implement a "raw_data" parquet system. These are:
create_raw_data_parquet(): transforms theraw_dataoutput ofget_all_polio_data()into the parquet folder hierarchal system.upload_parquet_to_edav(): uploads the folder produced bycreate_raw_data_parquet()to EDAV.build_parquet_raw_data(): compiles the folder into araw_dataparquet connection.from_wkb_to_sf(): convertssfdatasets that are loaded as parquet connections into regular shapefile objects. These are theraw_data$global.ctry/prov/dist,raw_data$citiesandraw_data$roadsdatasets. Use this function after doing adplyr::collect().Most of the end users will be using build_parquet_raw_data(). However, my vision is that these functions are used within
get_all_polio_data(). For example, whenrecreate.static.files = TRUE, after compiling the bigraw_dataand just before the splitting step, runcreate_raw_data_parquet()using a temporary directory, then upload the directory to the analytics folder on EDAV.build_parquet_raw_data()can be run when pulling data in a regular way, whererecreate.static.files = FALSE. Then, the filtering and the specification of the datasets can be added intoget_all_polio_data().How to test: