Skip to content

Commit

Permalink
feat(sink): enable delta lake sink (#10374)
Browse files Browse the repository at this point in the history
  • Loading branch information
wenym1 authored Jun 16, 2023
1 parent 7b66d55 commit 3dd1393
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/connector/src/sink/remote.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ use super::catalog::SinkCatalog;
use crate::sink::{record_to_json, Result, Sink, SinkError, TimestampHandlingMode};
use crate::ConnectorParams;

pub const VALID_REMOTE_SINKS: [&str; 3] = ["jdbc", "file", "iceberg"];
pub const VALID_REMOTE_SINKS: [&str; 3] = ["jdbc", "iceberg", "deltalake"];

pub fn is_valid_remote_sink(connector_type: &str) -> bool {
VALID_REMOTE_SINKS.contains(&connector_type)
Expand Down
2 changes: 1 addition & 1 deletion src/frontend/src/optimizer/plan_node/stream_sink.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ impl StreamSink {
Distribution::Single => RequiredDist::single(),
_ => {
match properties.get("connector") {
Some(s) if s == "iceberg" => {
Some(s) if s == "iceberg" || s == "deltalake" => {
// iceberg with multiple parallelism will fail easily with concurrent commit
// on metadata
// TODO: reset iceberg sink to have multiple parallelism
Expand Down

0 comments on commit 3dd1393

Please sign in to comment.