Skip to content

Commit

Permalink
fix: refine crc regex to only catch valid files
Browse files Browse the repository at this point in the history
Signed-off-by: Julien Guillot <[email protected]>
  • Loading branch information
guillotjulien authored and ion-elgreco committed Jan 12, 2025
1 parent be3e82b commit 27b0151
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/core/src/kernel/snapshot/log_segment.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ lazy_static! {
static ref CHECKPOINT_FILE_PATTERN: Regex =
Regex::new(r"\d+\.checkpoint(\.\d+\.\d+)?\.parquet").unwrap();
static ref DELTA_FILE_PATTERN: Regex = Regex::new(r"^\d+\.json$").unwrap();
static ref CRC_FILE_PATTERN: Regex = Regex::new(r"^(\.)?\d+(\.crc|\.json)?\.crc$").unwrap();
static ref CRC_FILE_PATTERN: Regex = Regex::new(r"^(\.\d+(\.crc|\.json)|\d+)\.crc$").unwrap();
pub(super) static ref TOMBSTONE_SCHEMA: StructType =
StructType::new(vec![ActionType::Remove.schema_field().clone(),]);
}
Expand Down

0 comments on commit 27b0151

Please sign in to comment.