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.
3 small fixes:
Saving tables locally
In spark client or cluster mode, saving a table as parquet won't work because of permission error: executors and driver aren't the same user.
How its solved:
Tables are first collected, and then saved locally by the driver only.
Incorrect timestamp error
When collecting tables,
pyarrow
throws an error when stumbling upon incorrect timestamps (smaller thanpd.Timestamp.min
or bigger thanpd.Timestamp.max
).How it's solved
A filtering is done in
HiveData
, which remplace incorrect timestampsBiology configuration file
When creating a configuration file via
create_config_from_stats
, one row per code AND care site is created, along with a line aggregating all care sites. We only want to keep this row (identified bydf.care_site_short_name == "ALL"
)How it's solved
Filtering, when necessary, on the
care_site_short_name
column