public class RemoveOrphanFilesProcedure extends ProcedureBase
-- use the default file delete interval
CALL sys.remove_orphan_files('tableId')
-- use custom file delete interval
CALL sys.remove_orphan_files('tableId', '2023-12-31 23:59:59')
-- remove all tables' orphan files in db
CALL sys.remove_orphan_files('databaseName.*', '2023-12-31 23:59:59')
| Modifier and Type | Field and Description |
|---|---|
static String |
IDENTIFIER |
catalog| Constructor and Description |
|---|
RemoveOrphanFilesProcedure() |
| Modifier and Type | Method and Description |
|---|---|
String[] |
call(org.apache.flink.table.procedure.ProcedureContext procedureContext,
String tableId,
String nullableOlderThan,
Boolean dryRun,
String 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, String nullableOlderThan, Boolean dryRun, String 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–2024 The Apache Software Foundation. All rights reserved.