English
Open in Telegram

PostPostgreSQL (Source) -> TRUNCATE (old table) -> Load all rows → MS SQL (Target)

28 April 2025
S
Storytelling with Data
PostgreSQL (Source) -> TRUNCATE (old table) -> Load all rows → MS SQL (Target) from airflow import DAG from airflow.providers.postgres.operators.postgres import PostgresOperator from airflow.providers.microsoft.mssql.operators.mssql import MsSqlOperator from datetime import datetime with DAG(dag_id="full_load_customers", start_date=datetime(2024, 1, 1), schedule_interval="@daily", catchup=False) as dag: truncate_target_table = MsSqlOperator( task_id='truncate_target_table', mssql_conn_id='mssql_target', sql="TRUNCATE TABLE customers;" ) load_full_data = PostgresOperator( task_id='load_full_data', postgres_conn_id='postgres_source', sql=""" INSERT INTO mssql_target.dbo.customers SELECT * FROM postgres_source.public.customers; """ ) truncate_target_table >> load_full_data
2 · 1.5K ·

Nearby in the feed

SStorytelling with Datafrom airflow.providers.cncf.kubernetes.operators.kubernetes_pod import KubernetesPodOperator train = KubernetesPodOperator( task_id='train_model', name='train-mSStorytelling with DataLoading – bu malumotlarni source dan target (odatda data warehouse yoki operational database) ga yuklash jarayoni. 1.Full Load Har safar pipeline ishlaganda but
this message
SStorytelling with DataPythonic nima degani? Kop joylarda bu so'zni uchratamiz lekin kop e'tiborimizni qaratmaymiz shu haqida qisqacha gapirib bermoqchiman. "Pythonic" — bu Python tilSStorytelling with DataNoSQL so'zi qanday kelib chiqanini bilasizmi? NoSQL birinchi Marta twitterdagi hashtag sifatida 2010 yilda foydalanilgan #NoSQL yani u paytda SQL databaza sifat
SStorytelling with DataStorytelling with Data@DataStoryLab · channel
51posts in the index
Venue feed Open in Telegram

An open public feed from the search index ChatCrawler — “Google for public Telegram”; refreshed as the venue is crawled. Times are UTC.

Public content only, official Telegram API. About · FAQ · Index limits · Remove a page · Catalog · Search · How we count