Hi All,
We are using Snowplow with EMR based Shredder and SQS with RDB Loader running in Amazon EKS.
One of our team member wanted to add not null constraints on an existing column so he added it to the required block in json schema (iglu server)
"required": [ col1,col2 ]
but then we started getting the following error in RDB Loader.
Amazon](500310) Invalid operation: ALTER TABLE ADD COLUMN defined as NOT NULL must have a non-null default expression;
to fix this i tried adding default expression in json schema as follows
"exampleColumn": {
"description": "boolean flag",
"type": "boolean",
"default": false # could be true or false based on the requirement
}
but the problem did not resolve. I have been searching a lot on different topics but found nothing related to this.
could you kindly help.