[Enhencement](Export) add property for outfile/export and add test (#18997)

This pr does three things:
1. add `delete_existing_files` property for outfile/export. If `delete_existing_files = true`, export/outfile will delete all files under file_path first.
2. add p2 test for export
3. modify docs
This commit is contained in:
Tiewei Fang
2023-05-08 14:02:20 +08:00
committed by GitHub
parent 8c4f3d4126
commit e78149cb65
20 changed files with 2045 additions and 227 deletions

View File

@ -1923,5 +1923,13 @@ public class Config extends ConfigBase {
@ConfField(mutable = true)
public static boolean disable_datev1 = true;
/**
* This config used for export/outfile.
* Whether delete all files in the directory specified by export/outfile.
* It is a very dangerous operation, should only be used in test env.
*/
@ConfField(mutable = false)
public static boolean enable_delete_existing_files = false;
}