daemonslayer/tests-airflow

View on GitHub
src/gcp/dags/support/schemas.py

Summary

Maintainability
A
0 mins
Test Coverage
def gsob():
    return [
        {'name': 'partition_date', 'type': 'STRING', 'mode': 'NULLABLE'},
        {'name': 'temperature_mean', 'type': 'FLOAT', 'mode': 'NULLABLE'},
        {'name': 'temperature_min', 'type': 'FLOAT', 'mode': 'NULLABLE'},
        {'name': 'temperature_max', 'type': 'FLOAT', 'mode': 'NULLABLE'},
        {'name': 'dew_point_mean', 'type': 'FLOAT', 'mode': 'NULLABLE'},
        {'name': 'pressure_sea_level_mean', 'type': 'FLOAT', 'mode': 'NULLABLE'},
        {'name': 'pressure_station_level_mean', 'type': 'FLOAT', 'mode': 'NULLABLE'},
        {'name': 'visibility_mean', 'type': 'FLOAT', 'mode': 'NULLABLE'},
        {'name': 'wind_speed_mean', 'type': 'FLOAT', 'mode': 'NULLABLE'},
        {'name': 'wind_speed_sustained_max', 'type': 'FLOAT', 'mode': 'NULLABLE'},
        {'name': 'precipitation', 'type': 'FLOAT', 'mode': 'NULLABLE'},
        {'name': 'snow_depth', 'type': 'FLOAT', 'mode': 'NULLABLE'},
        {'name': 'fog', 'type': 'BOOLEAN', 'mode': 'NULLABLE'},
        {'name': 'rain_drizzle', 'type': 'BOOLEAN', 'mode': 'NULLABLE'},
        {'name': 'snow_ice_pellets', 'type': 'BOOLEAN', 'mode': 'NULLABLE'},
        {'name': 'hail', 'type': 'BOOLEAN', 'mode': 'NULLABLE'},
        {'name': 'thunder', 'type': 'BOOLEAN', 'mode': 'NULLABLE'},
        {'name': 'tornado_funnel_cloud', 'type': 'BOOLEAN', 'mode': 'NULLABLE'},
        {'name': 'usaf', 'type': 'INTEGER', 'mode': 'NULLABLE'},
        {'name': 'wban', 'type': 'INTEGER', 'mode': 'NULLABLE'},
        {'name': 'station_name', 'type': 'STRING', 'mode': 'NULLABLE'},
        {'name': 'station_country', 'type': 'STRING', 'mode': 'NULLABLE'},
        {'name': 'station_state', 'type': 'STRING', 'mode': 'NULLABLE'},
        {'name': 'station_latitude', 'type': 'FLOAT', 'mode': 'NULLABLE'},
        {'name': 'station_longitude', 'type': 'FLOAT', 'mode': 'NULLABLE'}

    ]