public class RemoveUnexistingFilesProcedure extends ProcedureBase
RemoveUnexistingFilesAction for detailed use cases.
-- remove unexisting data files in table `mydb.myt`
CALL sys.remove_unexisting_files(`table` => 'mydb.myt')
-- only check what files will be removed, but not really remove them (dry run)
CALL sys.remove_unexisting_files(`table` => 'mydb.myt', `dry_run` = true)
Note that user is on his own risk using this procedure, which may cause data loss when used outside from the use cases above.
| Modifier and Type | Field and Description |
|---|---|
static String |
IDENTIFIER |
catalog| Constructor and Description |
|---|
RemoveUnexistingFilesProcedure() |
| Modifier and Type | Method and Description |
|---|---|
String[] |
call(org.apache.flink.table.procedure.ProcedureContext procedureContext,
String tableId,
Boolean dryRun,
Integer parallelism) |
String |
identifier()
Returns a unique identifier among same factory interfaces.
|
execute, execute, execute, notnull, nullable, optionalConfigMap, table, withCatalogpublic static final String IDENTIFIER
public String[] call(org.apache.flink.table.procedure.ProcedureContext procedureContext, String tableId, @Nullable Boolean dryRun, @Nullable Integer parallelism) throws Exception
Exceptionpublic String identifier()
FactoryFor consistency, an identifier should be declared as one lower case word (e.g. kafka). If multiple factories exist for different versions, a version should be appended
using "-" (e.g. elasticsearch-7).
Copyright © 2023–2025 The Apache Software Foundation. All rights reserved.