#! /bin/env bash
source /mnt/run_shell/sqoop_shell/templates.sh

# 导入数据
import_table=date_20_to_30
hive_table=dim_date_20_to_30
db_type=mysql
hdfs_path=/home/big_data_selection/dim/${hive_table}/
cols="id,date,year,quarter,month,week,day,week_day,year_quarter,\`year_month\`,year_week,year_day,created_at,updated_at"
query="select ${cols} from ${import_table} where 1=1 and \$CONDITIONS"
import_data


