SupportsTruncate¶
SupportsTruncate is an extension of the WriteBuilder abstraction for tables that support truncation.
Contract¶
Truncation¶
WriteBuilder truncate()
WriteBuilder that can replace all existing data with data committed in the write
Used when:
- OverwriteByExpressionExec and 
OverwriteByExpressionExecV1physical operators are executed StreamExecutionstream execution engine (Spark Structured Streaming) is requested tocreateStreamingWrite
Implementations¶
- ConsoleTable (Spark Structured Streaming)
 - ForeachWriterTable (Spark Structured Streaming)
 - KafkaTable
 - MemorySink (Spark Structured Streaming)
 - NoopWriteBuilder
 - SupportsOverwrite