23 lines
674 B
Python
23 lines
674 B
Python
from airflow.hooks.postgres_hook import PostgresHook
|
|
from airflow.models import BaseOperator
|
|
from airflow.utils.decorators import apply_defaults
|
|
|
|
class LoadFactOperator(BaseOperator):
|
|
|
|
ui_color = '#F98866'
|
|
|
|
@apply_defaults
|
|
def __init__(self,
|
|
# Define your operators params (with defaults) here
|
|
# Example:
|
|
# conn_id = your-connection-name
|
|
*args, **kwargs):
|
|
|
|
super(LoadFactOperator, self).__init__(*args, **kwargs)
|
|
# Map params here
|
|
# Example:
|
|
# self.conn_id = conn_id
|
|
|
|
def execute(self, context):
|
|
self.log.info('LoadFactOperator not implemented yet')
|