Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Disable checkpointing for snowflake #2110

Merged
merged 2 commits into from
Sep 29, 2023
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
7 changes: 3 additions & 4 deletions dozer-ingestion/src/connectors/snowflake/stream_consumer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ use crate::connectors::snowflake::connection::client::Client;
use crate::errors::{ConnectorError, SnowflakeError};
use crate::ingestion::Ingestor;
use dozer_types::ingestion_types::IngestionMessage;
use dozer_types::node::OpIdentifier;

use crate::errors::SnowflakeStreamError::{CannotDetermineAction, UnsupportedActionInStream};
use dozer_types::types::{Field, Operation, Record};
Expand Down Expand Up @@ -98,7 +97,7 @@ impl StreamConsumer {
table_name: &str,
ingestor: &Ingestor,
table_index: usize,
iteration: u64,
_iteration: u64,
) -> Result<(), ConnectorError> {
let temp_table_name = Self::get_stream_temp_table_name(table_name, &client.get_name());
let stream_name = Self::get_stream_table_name(table_name, &client.get_name());
Expand All @@ -120,14 +119,14 @@ impl StreamConsumer {
let used_columns_for_schema = columns_length - 3;
let action_idx = used_columns_for_schema;

for (idx, result) in rows.enumerate() {
for (_idx, result) in rows.enumerate() {
let row = result?;
let op = Self::get_operation(row, action_idx, used_columns_for_schema)?;
ingestor
.blocking_handle_message(IngestionMessage::OperationEvent {
table_index,
op,
id: Some(OpIdentifier::new(iteration, idx as u64)),
id: None,
})
.map_err(|_| ConnectorError::IngestorError)?;
}
Expand Down