Added functionality to Datasource, to add an empty extract, and to filter the extract #74
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.
Summary
Our Astronomer / Airflow workers running updates on our datasources have been failing.
We discovered this was because the size of our datasources exceeded the 10GB storage limit for the Astronomer workers.
So, to help adjust the size of our Datasources while making updates, I am adding functionality to allow for manipulating the Datasource extract (
.hyper
file).Changes
Datasource
classempty_extract
: To create an empty extract for the Datasource connection.filter_extract
: To delete data from the extract, based on a provided condition string.--empty_extract
(-E
) and--filter_extract
(-F
) to thedatasource
CLI command argsTests
tableau_utilities -l online -n Datasource -pn Project -f Datasource.tdsx --include_extract datasource -F "\"CREATED_AT\" < '1/1/2024'" tableau_utilities -n Datasource -pn Project -f Datasource.tdsx server_operate --publish datasource