I want to implement
alter table dos_sourcedata add partition (data = to_date (current_timestamp ()));
in hive
Run this statement at a specific time every day. but this is always wrong.
I want to implement
alter table dos_sourcedata add partition (data = to_date (current_timestamp ()));
in hive
Run this statement at a specific time every day. but this is always wrong.
Copyright © 2021 Jogjafile Inc.
If you want to create empty partition using alter table, use value, not expression, like this:
You can create partitions dynamically when loading data using insert overwrite table partition, in this case you can use expression in the query:
Use
current_date
instead ofto_date (current_timestamp ())
.