Skip to content

Commit

Permalink
add apply default sql_to_gcs operator
Browse files Browse the repository at this point in the history
  • Loading branch information
yimingl17 committed Sep 18, 2019
1 parent fa8e18a commit 06aa3d4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion airflow/operators/sql_to_gcs.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@

from airflow.gcp.hooks.gcs import GoogleCloudStorageHook
from airflow.models import BaseOperator
from airflow.utils.decorators import apply_defaults


class BaseSQLToGoogleCloudStorageOperator(BaseOperator, metaclass=abc.ABCMeta):
Expand Down Expand Up @@ -77,7 +78,7 @@ class BaseSQLToGoogleCloudStorageOperator(BaseOperator, metaclass=abc.ABCMeta):
template_fields = ('sql', 'bucket', 'filename', 'schema_filename', 'schema', 'parameters')
template_ext = ('.sql',)
ui_color = '#a0e08c'

@apply_defaults
def __init__(self, # pylint: disable=too-many-arguments
sql,
bucket,
Expand Down

0 comments on commit 06aa3d4

Please sign in to comment.