Skip to content

Commit

Permalink
fix(kafka sink): remove restriction on data type
Browse files Browse the repository at this point in the history
closes #18252
  • Loading branch information
hvtuananh committed Aug 16, 2023
1 parent 1b90398 commit 837ebc6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sinks/kafka/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ impl SinkConfig for KafkaSinkConfig {
fn input(&self) -> Input {
let requirements = Requirement::empty().optional_meaning("timestamp", Kind::timestamp());

Input::new(self.encoding.config().input_type() & (DataType::Log | DataType::Metric))
Input::new(self.encoding.config().input_type())
.with_schema_requirement(requirements)
}

Expand Down

0 comments on commit 837ebc6

Please sign in to comment.