ZhangZhihui's Blog  

2025年12月10日

摘要: dag3 = DAG( dag_id="example_branch_datetime_operator_3", start_date=pendulum.datetime(2021, 1, 1, tz="UTC"), catchup=False, tags=["example"], schedule 阅读全文
posted @ 2025-12-10 21:50 ZhangZhihuiAAA 阅读(2) 评论(0) 推荐(0)
 
摘要: Short answer: ✔ from airflow.sdk import DAG is better for Airflow 3 (and later). ✔ from airflow import DAG is the old import style for Airflow 2.x. ✅ 阅读全文
posted @ 2025-12-10 21:02 ZhangZhihuiAAA 阅读(2) 评论(0) 推荐(0)
 
摘要: # # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this w 阅读全文
posted @ 2025-12-10 16:54 ZhangZhihuiAAA 阅读(2) 评论(0) 推荐(0)
 
摘要: str.split() and str.partition() both split strings, but they behave very differently and are used for different purposes. Here’s the clearest comparis 阅读全文
posted @ 2025-12-10 10:36 ZhangZhihuiAAA 阅读(8) 评论(0) 推荐(0)
 
摘要: 📌 Most Useful Airflow Template Variables 🧩 Task Instance Context VariableMeaning ti The TaskInstance object. Commonly used. task_instance Same as ti 阅读全文
posted @ 2025-12-10 09:59 ZhangZhihuiAAA 阅读(3) 评论(0) 推荐(0)
 
摘要: ✅ Why Airflow Needs an EmptyOperator 1. To define branching / joins cleanly When you branch or fan out tasks, you often need a join task that doesn’t 阅读全文
posted @ 2025-12-10 09:30 ZhangZhihuiAAA 阅读(4) 评论(0) 推荐(0)