Skip to content

Commit

Permalink
Clarify that only gzip is supported at this time
Browse files Browse the repository at this point in the history
  • Loading branch information
roykim98 committed Dec 19, 2024
1 parent 522a290 commit 7ebae1b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 4 additions & 2 deletions src/sources/file.rs
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,8 @@ pub enum FingerprintConfig {
bytes: Option<usize>,

/// The number of bytes to skip ahead (or ignore) when reading the data used for generating the checksum.
/// If the file is compressed, the number of bytes refer to the header in the uncompressed content.
/// If the file is compressed, the number of bytes refer to the header in the uncompressed content. Only
/// gzip is supported at this time.
///
/// This can be helpful if all files share a common header that should be skipped.
#[serde(default = "default_ignored_header_bytes")]
Expand All @@ -307,7 +308,8 @@ pub enum FingerprintConfig {

/// The number of lines to read for generating the checksum.
///
/// The number of lines are determined from the uncompressed content if the file is compressed.
/// The number of lines are determined from the uncompressed content if the file is compressed. Only
/// gzip is supported at this time.
///
/// If the file has less than this amount of lines, it won’t be read at all.
#[serde(default = "default_lines")]
Expand Down
6 changes: 4 additions & 2 deletions website/cue/reference/components/sources/base/file.cue
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,8 @@ base: components: sources: file: configuration: {
ignored_header_bytes: {
description: """
The number of bytes to skip ahead (or ignore) when reading the data used for generating the checksum.
If the file is compressed, the number of bytes refer to the header in the uncompressed content.
If the file is compressed, the number of bytes refer to the header in the uncompressed content. Only
gzip is supported at this time.
This can be helpful if all files share a common header that should be skipped.
"""
Expand All @@ -113,7 +114,8 @@ base: components: sources: file: configuration: {
description: """
The number of lines to read for generating the checksum.
The number of lines are determined from the uncompressed content if the file is compressed.
The number of lines are determined from the uncompressed content if the file is compressed. Only
gzip is supported at this time
If the file has less than this amount of lines, it won’t be read at all.
"""
Expand Down

0 comments on commit 7ebae1b

Please sign in to comment.