- Newest
- Most votes
- Most comments
The error you're encountering suggests there's a mismatch between the unique keys configured for your Iceberg table and the fields present in the data you're sending through Firehose.
Here are a few things to check:
-
Ensure that the 'id' field in your Python dict exactly matches the name and data type of the 'id' column in your Iceberg table. Even small differences in capitalization or data type can cause this error.
-
Verify that the 'id' field is indeed set as the identifier-field-id in your Iceberg table configuration. This setting should match exactly with what you've defined in your table schema.
-
Check if there are any other fields set as identifier-field-ids in your Iceberg table. If there are multiple fields set as identifiers, all of them need to be present in your input data.
-
Make sure that the 'id' field is at the top level of your JSON structure. Firehose only processes the first level of nodes in a multi-level nested JSON.
-
If you're using a Lambda function for data transformation before it reaches Firehose, ensure that the Lambda function is not inadvertently modifying or removing the 'id' field.
-
Double-check the Firehose configuration to ensure it's correctly set up to handle the Iceberg table format and that it's pointing to the right table in your data catalog.
If the problem persists after verifying these points, you might want to temporarily log the exact data being sent to Firehose and compare it side-by-side with your Iceberg table schema to spot any discrepancies. Also, consider checking the Firehose CloudWatch logs for any additional error details that might provide more insight into the specific cause of the mismatch.
Sources
Consideration and limitations - Amazon Data Firehose
Route incoming records to different Iceberg tables - Amazon Data Firehose
Relevant content
asked 4 years ago
asked 7 years ago
asked 4 years ago

how do you add identifier-field-ids option to an existing table ? alter table add identifiers field doesn't seem to work.