-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[GH-1221] import snapshots into a workspace (#347)
RR: https://broadinstitute.atlassian.net/browse/GH-1221 In this PR, I'm adding test demonstration code for how to import data from a TDR snapshot into a Terra Workspace. This includes: Querying all the rows in the specified table in the snapshot Selecting and renaming the columns of the table to match those of the target entity Importing the rows as new entities into the workspace. The renaming works by viewing the rows of the table as a list of maps, mapping those names onto workspace names, then reconstructing the table. Added dataset/snapshot querying utilities to the datarepo namespace. Bug fixes: "flattening" the big-query rows didn't flatten rows of arrays
- Loading branch information
Showing
17 changed files
with
429 additions
and
281 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.