Skip to content

Commit

Permalink
Fix failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
bobbyiliev committed Sep 24, 2024
1 parent 5b43cee commit 61cd55c
Showing 1 changed file with 37 additions and 19 deletions.
56 changes: 37 additions & 19 deletions integration/source.tf
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,8 @@ resource "materialize_source_table_load_generator" "load_generator_auction_table

source {
name = materialize_source_load_generator.load_generator_auction.name
schema_name = materialize_source_load_generator.load_generator_auction.schema_name
database_name = materialize_source_load_generator.load_generator_auction.database_name
}

comment = "source table load generator comment"
Expand Down Expand Up @@ -105,6 +107,8 @@ resource "materialize_source_table_load_generator" "load_generator_marketing_tab

source {
name = materialize_source_load_generator.load_generator_marketing.name
schema_name = materialize_source_load_generator.load_generator_marketing.schema_name
database_name = materialize_source_load_generator.load_generator_marketing.database_name
}

comment = "source table load generator comment"
Expand Down Expand Up @@ -230,18 +234,26 @@ resource "materialize_source_table_kafka" "source_table_kafka" {
database_name = materialize_source_kafka.example_source_kafka_format_text.database_name
}

topic = "topic1"
key_format_text = true
value_format_text = true
envelope_none = true
include_timestamp = true
include_offset = true
include_partition = true
topic = "topic1"

key_format {
text = true
}
value_format {
json = true
}

include_key = true
include_key_alias = "key_alias"
include_offset_alias = "offset_alias"
include_partition_alias = "partition_alias"
include_timestamp_alias = "timestamp_alias"
include_key_alias = "message_key"
include_headers = true
include_headers_alias = "message_headers"
include_partition = true
include_partition_alias = "message_partition"
include_offset = true
include_offset_alias = "message_offset"
include_timestamp = true
include_timestamp_alias = "message_timestamp"

}

resource "materialize_source_kafka" "example_source_kafka_format_bytes" {
Expand Down Expand Up @@ -471,16 +483,22 @@ resource "materialize_source_table_kafka" "source_table_kafka_upsert_options" {

topic = "topic1"

key_format_text = true
value_format_text = true
key_format {
text = true
}
value_format {
text = true
}

envelope_upsert = true

upsert_options {
value_decoding_errors {
inline {
enabled = true
alias = "my_error_col"
envelope {
upsert = true
upsert_options {
value_decoding_errors {
inline {
enabled = true
alias = "decoding_error"
}
}
}
}
Expand Down

0 comments on commit 61cd55c

Please sign in to comment.