Closed WilliamTan778 closed 1 year ago
PTAL: @TyrantLucifer
+1 Delete a partition will put all the files under the partition into the recycle bin. This action is really heavy and there is a risk of data loss.
+1 Delete a partition will put all the files under the partition into the recycle bin. This action is really heavy and there is a risk of data loss.
Currently, the underlying data information is not deleted, only the metadata information of the partition is deleted, but I do not understand why only the metadata is deleted, what is the purpose of it? PATL: @TyrantLucifer
+1 Delete a partition will put all the files under the partition into the recycle bin. This action is really heavy and there is a risk of data loss.
Currently, the underlying data information is not deleted, only the metadata information of the partition is deleted, but I do not understand why only the metadata is deleted, what is the purpose of it? PATL: @TyrantLucifer
The dropPartition method will move data to the trash, not just metadata.
Yeah, Drop partition is not a good way. Some times people may only append data to exists partitions. If we drop the partition, may delete the data file not write by this job.
Can you update the code and fix it?
Yeah, Drop partition is not a good way. Some times people may only append data to exists partitions. If we drop the partition, may delete the data file not write by this job.
ok, I try to fix it.
IMO,when user write new partitions this action is useful,2pc has all the lifecycle,add a parameter to control it is better,not remove it.
This issue has been automatically marked as stale because it has not had recent activity for 30 days. It will be closed in next 7 days if no further activity occurs.
This issue has been closed because it has not received response for too long time. You could reopen it if you encountered similar problems in the future.
Search before asking
What happened
dropPartitions Although the data has not been deleted, it may cause the previous partition to no longer exist and the business cannot use it. Should the partition not be deleted
SeaTunnel Version
2.3.1
SeaTunnel Config
Running Command
Error Exception
Flink or Spark Version
spark-3.3.0-bin-hadoop2
Java or Scala Version
Corretto-11.0.19.7.1
Screenshots
No response
Are you willing to submit PR?
Code of Conduct