...
3: TruncateTableOperation
should implement ExecutableOperation, and in method
get the #execute(Context ctx), it will
DynamicTableSink
of the table which should implement SupportsTruncate
and then call method SupportsTruncate#executeTruncation
directly to truncate the table.
If the DynamicTableSink
doesn't implemente this interface, it should throw TableException('The truncate statement for the table is not supported as it hasn't implemented the interface SupportsTruncate')
.
For some sinks that doesn't support deleting data, it can also implements this interface but throw more concrete exception like "xxx donesn't support to truncate a table as delete is impossible for xxx".
Compatibility, Deprecation, and Migration Plan
...