Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -386,10 +386,9 @@ where F: SnapshotGenerator + Send + Sync + 'static
.is_some()
}

/// Append-only inserts (e.g. `INSERT INTO t SELECT ...`) may skip committing if
/// nothing was written. Overwrite/CTAS (`CREATE OR REPLACE TABLE t AS SELECT ...`
/// or `INSERT OVERWRITE ...`) still need a snapshot even when nothing was written,
/// so we disable skipping when `AppendGenerator` is in overwrite mode.
/// Append-only inserts (e.g. `INSERT INTO t SELECT ...`) may skip committing if nothing was
/// written. `INSERT OVERWRITE ...` still need a snapshot even when nothing was written, so we
/// disable skipping when `AppendGenerator` is in overwrite mode.
fn allow_append_only_skip(&self) -> bool {
self.snapshot_gen
.as_any()
Expand Down
Loading