Skip to content

Commit 0900d03

Browse files
enabling schema evolution for oxbow controlled tables (#36)
1 parent ba65045 commit 0900d03

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

main.tf

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,8 @@ resource "aws_kinesis_firehose_delivery_stream" "this_kinesis" {
8282
locals {
8383
oxbow_lambda_unwrap_sns_event = var.enable_group_events == true ? {} : var.sns_topic_arn == "" ? {} : { UNWRAP_SNS_ENVELOPE = true }
8484
group_eventlambda_unwrap_sns_event = var.sns_topic_arn == "" ? {} : { UNWRAP_SNS_ENVELOPE = true }
85+
oxbow_lambda_schema_evolution = var.enable_schema_evolution == false ? {} : { SCHEMA_EVOLUTION = true }
86+
8587
}
8688

8789
resource "aws_lambda_function" "this_lambda" {
@@ -101,7 +103,7 @@ resource "aws_lambda_function" "this_lambda" {
101103
variables = merge({
102104
AWS_S3_LOCKING_PROVIDER = var.aws_s3_locking_provider
103105
RUST_LOG = "deltalake=${var.rust_log_deltalake_debug_level},oxbow=${var.rust_log_oxbow_debug_level}"
104-
DYNAMO_LOCK_TABLE_NAME = var.dynamodb_table_name }, local.oxbow_lambda_unwrap_sns_event)
106+
DYNAMO_LOCK_TABLE_NAME = var.dynamodb_table_name }, local.oxbow_lambda_unwrap_sns_event, local.oxbow_lambda_schema_evolution)
105107
}
106108
tags = var.tags
107109
}

variables.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -304,6 +304,12 @@ variable "enable_glue_create" {
304304
default = false
305305
}
306306

307+
variable "enable_schema_evolution" {
308+
type = bool
309+
description = "Whether to turn on schema evolution"
310+
default = true
311+
}
312+
307313
variable "glue_create_config" {
308314
type = object({
309315
athena_workgroup_name = string // Name of AWS Athena workgroup

0 commit comments

Comments
 (0)