Skip to content

Commit

Permalink
fix: add missing colon
Browse files Browse the repository at this point in the history
  • Loading branch information
Federico Zambelli committed Sep 27, 2024
1 parent 2de6e44 commit 2d7fae9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sparkle/writer/kafka_writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ def write(self, df: DataFrame) -> None:
# Convert the DataFrame to a Kafka-friendly format
kafka_df = to_kafka_dataframe(self.unique_identifier_column_name, df)

if set(kafka_df.columns) != {"key", "value"}
if set(kafka_df.columns) != {"key", "value"}:
raise KeyError(
"The DataFrame must contain 'key' and 'value' columns. "
"Ensure that `to_kafka_dataframe` transformation is correctly applied."
Expand Down

0 comments on commit 2d7fae9

Please sign in to comment.