insert overwrite into edw_dwi.dwi_pub_eps_itsm_work_order_history_da
select 
    historyid	as	history_id	,
    workorderid	as	work_order_id	,
    operationownerid	as	operation_owner_id	,
    operationtime	as	operation_time	,
    description	as	description	,
    operation	as	operation
from smart_sdi.sdi_itsm_public_workorderhistory_da
where dt = '${deal_date}'
--------------------
INSERT OVERWRITE INTO edw_dwi.dwi_pub_eps_itsm_work_order_history_da
SELECT historyid AS history_id, workorderid AS work_order_id, operationownerid AS operation_owner_id, operationtime AS operation_time, description AS description
	, operation AS operation
FROM smart_sdi.sdi_itsm_public_workorderhistory_da
WHERE dt = '${deal_date}'
------------------------------------------------------------------------------------------------------------------------
insert overwrite into edw_dwi.dwi_pub_eps_itsm_work_order_history_da
(col1,col2)
default values
--------------------
INSERT OVERWRITE INTO edw_dwi.dwi_pub_eps_itsm_work_order_history_da (col1, col2)
DEFAULT VALUES
------------------------------------------------------------------------------------------------------------------------
INSERT INTO db1.testOnConflict
SELECT 
longitude,
latitude
from vdpadmin.ads_longlati_pois_d WHERE report_date > '${dt}' ON CONFLICT(id) DO NOTHING; 
--------------------
INSERT INTO db1.testOnConflict
SELECT longitude, latitude
FROM vdpadmin.ads_longlati_pois_d
WHERE report_date > '${dt}'
ON CONFLICT (id) DO NOTHING;
------------------------------------------------------------------------------------------------------------------------
INSERT INTO db1.testOnDuplicate
SELECT 
longitude,
latitude
from db1.testOnDuplicate2 WHERE report_date > '${dt}'
ON DUPLICATE KEY UPDATE longitude = DEFAULT,latitude = 1 returning *
--------------------
INSERT INTO db1.testOnDuplicate
SELECT longitude, latitude
FROM db1.testOnDuplicate2
WHERE report_date > '${dt}'
ON DUPLICATE KEY UPDATE longitude = DEFAULT, latitude = 1
RETURNING *
------------------------------------------------------------------------------------------------------------------------
vacuum deltamerge vhms.fs_dwd_m241_online_10s_newenergy_dws_di
--------------------
VACUUM DELTAMERGE vhms.fs_dwd_m241_online_10s_newenergy_dws_di