Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kinesis Firehose lambda api doesn't support routing to multiple table for iceberg #575

Open
amalakar opened this issue Nov 20, 2024 · 0 comments

Comments

@amalakar
Copy link

Is your feature request related to a problem? Please describe.
As per: https://docs.aws.amazon.com/firehose/latest/dev/apache-iceberg-format-input-record-different.html
In order to set the target table while processing via lambda needs to set metadata as:

    "metadata":{
        "otfMetadata":{
            "destinationTableName":"gameevents",
            "destinationDatabaseName":"PlayerSpawn",
            "operation":"insert"
        }
    }

But the response metadata struct only supports partition keys

PartitionKeys map[string]string `json:"partitionKeys"`

type KinesisFirehoseResponseRecord struct {
.....
	Metadata KinesisFirehoseResponseRecordMetadata `json:"metadata"`
}

type KinesisFirehoseResponseRecordMetadata struct {
	PartitionKeys map[string]string `json:"partitionKeys"`
}

Describe the solution you'd like
Please support otfMetadata as part of metadata for lambda response object.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant