This file contains hidden or 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
""" | |
Exports metadata information for all columns in a BigQuery table to a CSV file. | |
This function retrieves the schema of the specified BigQuery table and computes the following | |
details for each column: | |
- Column name | |
- Data type | |
- Count of NOT NULL values | |
- Count of NULL values | |
- Sample of up to 10 distinct values |
This file contains hidden or 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
""" | |
Airflow Hook for Notion API: https://developers.notion.com/reference/intro | |
author: Aman Ranjan Verma(https://www.linkedin.com/in/ar-verma/) | |
""" | |
import json | |
from airflow.providers.http.hooks.http import HttpHook | |
from airflow.exceptions import AirflowException | |
import logging |
This file contains hidden or 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
""" | |
Airflow Hook for Amplitude API: https://www.docs.developers.amplitude.com/analytics/apis/taxonomy-api/ | |
author: Aman Ranjan Verma(https://www.linkedin.com/in/ar-verma/) | |
""" | |
from airflow.providers.http.hooks.http import HttpHook | |
from airflow.exceptions import AirflowException | |
from urllib.parse import quote | |
AMPLITUDE_EVENT_ENDPOINT = "amplitude.com/api/2/taxonomy/event" |
This file contains hidden or 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
Customer Schema Names | Constraints | |
---|---|---|
customer_id | PRIMARY KEY | |
customer_name | NOT NULL | |
mob_num | CHECK | |
email_id | CHECK | |
active_from | DEFAULT CURRENT_DATE_TIME | |
active_to |