Skip to content

Commit b82914f

Browse files
committed
change the docstring
Signed-off-by: JustinRush80 <[email protected]>
1 parent fc9ac03 commit b82914f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

crates/core/src/operations/merge/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ use crate::operations::cdc::*;
8484
use crate::operations::merge::barrier::find_node;
8585
use crate::operations::write::execution::write_execution_plan_v2;
8686
use crate::operations::write::generated_columns::{
87-
add_generated_columns, add_missing_generated_columns, should_gc,
87+
able_to_gc, add_generated_columns, add_missing_generated_columns,
8888
};
8989
use crate::operations::write::WriterStatsConfig;
9090
use crate::protocol::{DeltaOperation, MergePredicate};
@@ -783,7 +783,7 @@ async fn execute(
783783
let mut missing_generated_col = None;
784784
let mut source_with_gc = None;
785785

786-
if should_gc(&snapshot)? {
786+
if able_to_gc(&snapshot)? {
787787
let generated_col_expressions = snapshot
788788
.schema()
789789
.get_generated_columns()

crates/core/src/operations/write/generated_columns.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ use tracing::debug;
66

77
use crate::{kernel::DataCheck, table::GeneratedColumn, DeltaResult};
88

9-
/// check whether not the g
10-
pub fn should_gc(snapshot: &DeltaTableState) -> DeltaResult<bool> {
9+
/// check if the writer version is able to write generated columns
10+
pub fn able_to_gc(snapshot: &DeltaTableState) -> DeltaResult<bool> {
1111
if let Some(features) = &snapshot.protocol().writer_features {
1212
if snapshot.protocol().min_writer_version < 4 {
1313
return Ok(false);

0 commit comments

Comments
 (0)