-
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.
- Loading branch information
1 parent
3f120b4
commit 4465369
Showing
25 changed files
with
769 additions
and
1,615 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -117,4 +117,6 @@ pip-selfcheck.json | |
.envrc | ||
.direnv | ||
|
||
.pylintrc | ||
.pylintrc | ||
|
||
airflow-ssh-secret.yaml |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,28 @@ | ||
class BigqueryToGcsOperator: | ||
pass | ||
from typing import Any | ||
from airflow.models import BaseOperator | ||
from airflow.utils.context import Context | ||
|
||
class BigqueryToGcsOperator(BaseOperator): | ||
template_fields = ( | ||
"source_project_dataset_table", | ||
"destination_cloud_storage_uris", | ||
"gcs_bucket", | ||
"gcs_prefix", | ||
"gcp_conn_id", | ||
"labels", | ||
) | ||
def __init__( | ||
self, | ||
source_project_dataset_table: str = None, | ||
destination_cloud_storage_uris: str = None, | ||
compression: str = "", | ||
export_format: str = "CSV", | ||
): | ||
super(BigqueryToGcsOperator, self).__init__() | ||
self.source_project_dataset_table = source_project_dataset_table | ||
self.destination_cloud_storage_uris = destination_cloud_storage_uris | ||
self.compression = compression | ||
self.export_format = export_format | ||
|
||
def execute(self, context: Context) -> Any: | ||
return super().execute(context) |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,27 @@ | ||
class BigqueryToSheetOperator: | ||
pass | ||
from typing import Any | ||
from airflow.models import BaseOperator | ||
from airflow.utils.context import Context | ||
|
||
class BigqueryToSheetOperator(BaseOperator): | ||
template_fields = ( | ||
"source_project_dataset_table", | ||
"destination_cloud_storage_uris", | ||
"gcs_bucket", | ||
"gcs_prefix", | ||
"gcp_conn_id", | ||
"labels", | ||
) | ||
def __init__( | ||
self, | ||
source_project_dataset_table: str = None, | ||
destination_cloud_storage_uris: str = None, | ||
compression: str = "", | ||
export_format: str = "CSV", | ||
): | ||
self.source_project_dataset_table = source_project_dataset_table | ||
self.destination_cloud_storage_uris = destination_cloud_storage_uris | ||
self.compression = compression | ||
self.export_format = export_format | ||
|
||
def execute(self, context: Context) -> Any: | ||
return super().execute(context) |
Oops, something went wrong.