Skip to content

Commit d3df5b0

Browse files
author
Devdutt Shenoi
committed
refactor: it's just arrows
1 parent c4b67e9 commit d3df5b0

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/parseable/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ mod staging;
5959
mod streams;
6060

6161
/// File extension for arrow files in staging
62-
const ARROW_FILE_EXTENSION: &str = "data.arrows";
62+
const ARROW_FILE_EXTENSION: &str = "arrows";
6363

6464
/// Name of a Stream
6565
/// NOTE: this used to be a struct, flattened out for simplicity

src/parseable/streams.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ impl Stream {
154154
hostname.push_str(id);
155155
}
156156
let filename = format!(
157-
"{}{stream_hash}.date={}.hour={:02}.minute={}.{}{hostname}.{ARROW_FILE_EXTENSION}",
157+
"{}{stream_hash}.date={}.hour={:02}.minute={}.{}{hostname}.data.{ARROW_FILE_EXTENSION}",
158158
Utc::now().format("%Y%m%dT%H%M"),
159159
parsed_timestamp.date(),
160160
parsed_timestamp.hour(),
@@ -881,7 +881,7 @@ mod tests {
881881
);
882882

883883
let expected_path = staging.data_path.join(format!(
884-
"{}{stream_hash}.date={}.hour={:02}.minute={}.{}.{ARROW_FILE_EXTENSION}",
884+
"{}{stream_hash}.date={}.hour={:02}.minute={}.{}.data.{ARROW_FILE_EXTENSION}",
885885
Utc::now().format("%Y%m%dT%H%M"),
886886
parsed_timestamp.date(),
887887
parsed_timestamp.hour(),
@@ -916,7 +916,7 @@ mod tests {
916916
);
917917

918918
let expected_path = staging.data_path.join(format!(
919-
"{}{stream_hash}.date={}.hour={:02}.minute={}.key1=value1.key2=value2.{}.{ARROW_FILE_EXTENSION}",
919+
"{}{stream_hash}.date={}.hour={:02}.minute={}.key1=value1.key2=value2.{}.data.{ARROW_FILE_EXTENSION}",
920920
Utc::now().format("%Y%m%dT%H%M"),
921921
parsed_timestamp.date(),
922922
parsed_timestamp.hour(),

0 commit comments

Comments
 (0)