mirror of
https://github.com/floci-io/floci.git
synced 2026-11-24 14:30:28 -05:00
* feat(redshift): take a DynamoDB table and a Serverless namespace in zero-ETL integrations CreateIntegration took only a DynamoDB stream ARN as SourceArn and a provisioned cluster ARN as TargetArn. AWS takes the table ARN and a Redshift Serverless namespace ARN (its model allows no cluster: ARN), so a Terraform aws_redshift_integration written for AWS failed to create. Both AWS forms are now accepted and the original ones are kept. A missing table is IntegrationSourceNotFoundFault and a missing namespace IntegrationTargetNotFoundFault, as the API reference lists. A namespace is written through its workgroup into the namespace's database. A table source reads changes from the table's latest stream, following one turned on after the integration was created. Stream records never landed: the writer bound ApproximateCreationDateTime as an Instant, which the PostgreSQL driver refuses, so only backfilled items reached the landing table. It now binds an OffsetDateTime as TIMESTAMPTZ. * fix(redshift): drain a table's replaced stream and match the source table ARN A table source moved to the table's latest stream as soon as it changed, dropping records the old stream still held, and moved to no stream when DynamoDB Local reported none for a table whose streams were turned off. It now reads the followed stream until a read comes back empty, or until the stream has expired, before moving, keeps it while the table reports no stream, and persists the move. A source table ARN was resolved by its table name alone, so a table of another account, or an ARN with more after the name, was taken for the caller's table of that name. The resolved table must now have the supplied ARN. The docs no longer promise IntegrationSourceNotFoundFault for a missing stream. * test(redshift): use the shared Docker probe and Query request helpers in the zero-ETL test