drop table handoverTask;
CREATE TABLE handoverTask (
task_id   text,
task_no   text,
task_type  integer,
task_state  integer,
f_plant   text,
plant   text,
customer_id  integer,
customer_name  text,
kunnr   text,
actual_handover_num numeric(9,2),
receipt_state  integer,
receipt_time  timestamp,
cost_state  integer,
cost_handle_time timestamp,
handover_print_state integer,
last_print_time  timestamp,
appearance_state integer,
appearance_time  timestamp,
company_id  integer,
company_no  text,
company_name  text,
netweight_count  numeric(9,2),
weight_count  numeric(9,2),
handover_direct_count integer,
transport_type  integer,
vehicle_type  integer,
delivery_cost  numeric(9,2),
delivery_date  timestamp,
sign_time  timestamp,
area_name  text,
area_id   integer,
port   integer,
delivery_type  integer,
dispatch_type  integer,
piece_count  integer,
remark   text,
is_valid  integer,
created_user_id  integer,
created_time  timestamp,
modified_user_id integer,
modified_time  timestamp,
receipt_remark  text,
PRIMARY KEY (task_id)
)
Distributed by (task_id);

alter table handoverTask add column s12 timestamp;
alter table handoverTask add column s21 timestamp;
alter table handoverTask add column s24 timestamp;
alter table handoverTask add column hashResult text;
alter table handoverTask add column rowNum serial;
