...
2: Convert SqlTruncateTable
to TruncateTableOperation in SqlToOperationConverter, the TruncateTableOperation will wrap the corresponding
in DynamicTableSink
which implements SupportsTruncate
SqlToOperationConverter
3: In method TableEnvironmentImpl#executeInternal,
if the operation is instance of TruncateTableOperation
, get the DynamicTableSink
of the table which should implement SupportsTruncate
and then call method SupportsTruncate#truncateTable
directly to truncate the table.
...