Skip to content

terrencestella/analiza-duckdb-mieszkania

 
 

Repository files navigation

Flat analyzes

This code imports data from NBP website and creates a report using Airflow, GCP and DuckDB

Airflow configuration and installation

git clone https://github.com/MariuszKu/analiza-duckdb-mieszkania.git
cd analiza-duckdb-mieszkania
chmod +x deploy.sh
./deploy.sh

If you want to work with GCP you need to upload your secrete key and change the working path in env.py file

Location for key dags/key.json

LINK = "gs://mk-dev-gcs/data/" # for GCP
LINK = 'data/' #for local
LINK = "/opt/airflow/dags/data/" # for airflow local

create table in BigQuery

create or replace EXTERNAL table mk.flats_report
OPTIONS(
  format = "PARQUET",
  uris = ['gs://mk-dev-gcs/data/data/*.parquet']
);

1 XOfSnDfvgKyfNadFgwtfiw

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 93.2%
  • Shell 6.2%
  • Dockerfile 0.6%