Skip to content

Commit

Permalink
[add] hooks and operator base
Browse files Browse the repository at this point in the history
  • Loading branch information
tuancamtbtx committed Jul 1, 2024
1 parent faa9246 commit 98bc14e
Show file tree
Hide file tree
Showing 8 changed files with 7 additions and 205 deletions.
1 change: 0 additions & 1 deletion airlake/hooks/kafka_hook.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
from __future__ import print_function
import logging

import time
from typing import Any
from confluent_kafka import Producer
from airflow.hooks.base import BaseHook
Expand Down
79 changes: 0 additions & 79 deletions airlake/hooks/mongo_hook.py

This file was deleted.

2 changes: 0 additions & 2 deletions airlake/hooks/redis_hook.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import json
import pandas

from airflow.exceptions import AirflowException
from airflow.providers.redis.hooks.redis import RedisHook as BaseRedisHook


Expand Down
122 changes: 0 additions & 122 deletions airlake/hooks/smtp_hook.py

This file was deleted.

2 changes: 1 addition & 1 deletion airlake/operators/bq_to_elasticsearch.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from airflow.models import BaseOperator
from airflow.hooks.base_hook import BaseHook
from airflow.hooks.base import BaseHook
from airflow.utils.decorators import apply_defaults
from airflow.providers.google.cloud.hooks.gcs import GCSHook as GoogleCloudStorageHook
from airflow.providers.google.cloud.hooks.bigquery import BigQueryHook
Expand Down
2 changes: 2 additions & 0 deletions airlake/operators/bq_to_gcs.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
class BigqueryToGcsOperator:
pass
2 changes: 2 additions & 0 deletions airlake/operators/bq_to_sheet.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
class BigqueryToSheetOperator:
pass
2 changes: 2 additions & 0 deletions airlake/sensors/bq_sensor.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
class BigquerySensor:
pass

0 comments on commit 98bc14e

Please sign in to comment.