<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Smartchart开发手册</title>
    <link>https://help.smartchart.cn/en/docs/12.DataPlatform/smartpip/CustomTasks/</link>
    <description>Recent content on Smartchart开发手册</description>
    <generator>Hugo -- gohugo.io</generator><atom:link href="https://help.smartchart.cn/en/docs/12.DataPlatform/smartpip/CustomTasks/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title></title>
      <link>https://help.smartchart.cn/en/docs/12.DataPlatform/smartpip/CustomTasks/CommonFunctions/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://help.smartchart.cn/en/docs/12.DataPlatform/smartpip/CustomTasks/CommonFunctions/</guid>
      <description>Introduction # SmartPip provides rich built-in functions supporting file upload, data retrieval, email sending, shell execution, SQL execution, Kettle tasks, and more. Call custom functions via the #diy driver for flexible task logic.
Built-in Functions Quick Reference # Function Description Notes File upload smart_upload(csvfilepath) Get data get_dataset(id, param={}) Send email dash_mail(title, content, maillist) Execute shell run_bash(cmdStr) Execute datax run_datax(&#39;DAG_name/task_name&#39;, para_dict) Execute SQL run_sql_file(&#39;DAG_name/task_name&#39;, db_connect=&#39;starrocks&#39;, para_dict=None) Execute Kettle run_kettle(&#39;DAG_name/task_name.ktr&#39;, para_str=&#39;&#39;) Execute SP run_sp(sp_name, sp_para=None, dev=&#39;&#39;, db_connect=&#39;oracle&#39;) Note:</description>
    </item>
    
    <item>
      <title></title>
      <link>https://help.smartchart.cn/en/docs/12.DataPlatform/smartpip/CustomTasks/CustomLoopExtract/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://help.smartchart.cn/en/docs/12.DataPlatform/smartpip/CustomTasks/CustomLoopExtract/</guid>
      <description>Introduction # When a database contains time-suffixed partitioned tables (e.g., order_202001, order_202002) that need to be consolidated into a single target table, use the custom loop extraction feature. Combine the #diy driver with run_datax() for flexible multi-table loop sync.
Implementation Steps # Step Action 1 Create a DataX extraction task with parameter placeholders 2 Create a DIY task with loop logic 3 Orchestrate task dependencies in DAG Usage # SmartPip&amp;rsquo;s built-in datax component only supports single-table extraction without custom logic.</description>
    </item>
    
    <item>
      <title></title>
      <link>https://help.smartchart.cn/en/docs/12.DataPlatform/smartpip/CustomTasks/GetExecParams/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://help.smartchart.cn/en/docs/12.DataPlatform/smartpip/CustomTasks/GetExecParams/</guid>
      <description>Introduction # SmartPip is built on Airflow and supports time-based task backfilling. Through built-in parameters like execution_date, you can obtain task execution time information for time-dimensional data processing.
Common Time Parameters # Parameter Format Description ds YYYY-MM-DD Task execution date ds_nodash YYYYMMDD Date without separators yesterday_ds YYYY-MM-DD Yesterday&amp;rsquo;s date tomorrow_ds YYYY-MM-DD Tomorrow&amp;rsquo;s date prev_ds YYYY-MM-DD Previous execution date Usage # Airflow passes the following parameters to tasks:
{&amp;#39;ds&amp;#39;: &amp;#39;2022-07-13&amp;#39;, &amp;#39;ds_nodash&amp;#39;: &amp;#39;20220713&amp;#39;, &amp;#39;execution_date&amp;#39;: DateTime(2022, 7, 13, 2, 4, 33, 244294, tzinfo=Timezone(&amp;#39;+00:00&amp;#39;)), &amp;#39;next_ds&amp;#39;: &amp;#39;2022-07-13&amp;#39;, &amp;#39;tomorrow_ds&amp;#39;: &amp;#39;2022-07-14&amp;#39;, &amp;#39;yesterday_ds&amp;#39;: &amp;#39;2022-07-12&amp;#39;, &amp;#39;ts&amp;#39;: &amp;#39;2022-07-13T02:04:33.</description>
    </item>
    
  </channel>
</rss>
