<@U04S8PLJWMT>, i am creating apache iceberg table...
# ask-ai
s
@kapa.ai, i am creating apache iceberg tables using airbyte s3 data lake destination connector. the source data is postgres. I am using cdc data replication. The problem that i see is that whenever there is a schema change i have to refresh the stream in order to make sure that it’s updated in the iceberg table
k
Thinking completed Schema Changes with CDC + S3 Data Lake (Iceberg) What you're experiencing is expected behavior, and it's a result of how CDC replication and the S3 Data Lake connector each handle schema changes independently. Why This Happens CDC limitation: Schema changes are not automatically tracked by CDC. When a new column or table is added to your Postgres source, it must first be snapshotted before CDC can begin tracking changes to it. [CDC Limitations] S3 Data Lake (Iceberg) limitation: The connector never rewrites existing Iceberg data files, so it can only handle specific schema changes (adding/removing a column, widening a column, changing the primary key). For unsupported changes, a refresh or clear is required. [S3 Data Lake Schema] Postgres CDC specifically: Schema changes are explicitly not supported automatically for CDC sources — you must reset and resync data if you make a schema change. [Postgres CDC Requirements] Recommended Approach Since you're combining CDC + Iceberg, here's what Airbyte recommends: 1. Set schema change detection to "Approve all changes myself" under Detect and propagate schema changes in the connection Settings. This prevents newly detected schema changes from being automatically included in a sync without a proper snapshot, reducing the risk of LSN issues and sync failures. [CDC Limitations] 2. When a schema change occurs in Postgres: ◦ You'll see a Schema changes detected notice in the Schema tab (or manually click Refresh source schema if it's not visible). ◦ Review and approve the new changes. ◦ Enable the newly added column(s)/stream(s). ◦ Navigate to the Status page, find the affected stream, click the three dots (⋮), and choose Refresh Stream. [CDC Limitations] 1. For unsupported Iceberg schema changes, your options are: ◦ Manually edit the table schema in Iceberg directly. ◦ Use Refresh or Clear on the connection in Airbyte. ◦ Switch to Full Refresh - Overwrite sync mode to handle unsupported changes automatically (though this trades off incremental efficiency). [S3 Data Lake Schema] Summary Unfortunately, the manual stream refresh step is unavoidable when using CDC with schema changes — this is a fundamental constraint of how CDC works (changes must be snapshotted first) and how the Iceberg connector handles schema evolution. There is no fully automatic path for schema changes in a CDC + Iceberg setup. 👍 0 button 👎 0 button ℹ️ Tip: Mention @kapa.ai in the thread for follow-ups or DM the app for 1-to-1 help.
s
@kapa.ai, what is snapshot retention period of iceberg tables created by airbyte
k
Thinking completed I'm sorry, but the knowledge sources provided do not contain enough information to answer your question about the snapshot retention period of Iceberg tables created by Airbyte's S3 Data Lake connector. The knowledge sources only describe: • How branching works during syncs (staging branches, main branch promotion) • Configuration options like flush batch size and column normalization • General sync behavior For accurate information on Iceberg snapshot retention, I'd suggest: 1. Checking the S3 Data Lake connector documentation directly for any updates on this topic. 2. Reviewing the Apache Iceberg documentation on snapshot management — by default, Iceberg retains snapshots for 5 days and keeps a minimum of 1 snapshot, but this is an Iceberg default, not something Airbyte-specific that I can confirm from the available sources. 3. Opening a question in the Airbyte Community Slack or GitHub Discussions for a definitive answer from the Airbyte team. 👍 0 button 👎 0 button ℹ️ Tip: Mention @kapa.ai in the thread for follow-ups or DM the app for 1-to-1 help.
s
@kapa.ai, getting error :
Copy code
Configuration check failed
Could not connect with provided configuration. Error: Invalid S3 URI, cannot determine scheme: datalake/airbyte_test_namespace.db/airbyte_test_table/metadata/00000-7be07999-08b1-4526-a993-359dba679e0d.metadata.json Cannot determine whether the commit was successful or not, the underlying data files may or may not be needed. Manual intervention via the Remove Orphan Files Action can remove these files when a connection to the Catalog can be re-established if the commit was actually unsuccessful. Please check to see whether or not your commit was successful before retrying this commit. Retrying an already successful operation will result in duplicate records or unintentional modifications. At this time no files will be deleted including possibly unused manifest lists.
k
Thinking completed Configuration Check Error: Invalid S3 URI The error message is clear:
Copy code
Invalid S3 URI, cannot determine scheme: datalake/airbyte_test_namespace.db/airbyte_test_table/...
The problem is that your Warehouse Location is missing the
s3://
protocol prefix. Airbyte is receiving a relative path (
datalake/...
) instead of a fully qualified S3 URI. Fix Update your Warehouse Location field in the connector configuration to include the full S3 URI scheme:
Copy code
s3://your-bucket-name/datalake
The format must be:
Copy code
s3://bucket-name/path-within-bucket
This is explicitly required by the S3 Data Lake connector specification. [S3 Data Lake Setup] Steps to Fix 1. Go to your S3 Data Lake destination configuration in Airbyte. 2. Find the Warehouse Location field. 3. Change the value from something like
datalake/...
to
s3://your-bucket-name/datalake
(or whatever your intended path is). 4. Save and re-run the Connection Check. > Note: This applies regardless of whether you're using AWS Glue, Nessie, or REST catalog — the warehouse location must always include the
s3://
scheme prefix. [S3 Data Lake Setup] 👍 0 button 👎 0 button ℹ️ Tip: Mention @kapa.ai in the thread for follow-ups or DM the app for 1-to-1 help.
s
@kapa.ai, getting error : Configuration check failed State code: 28P01; Message: FATAL: password authentication failed for user “datalake_extractor
k
Thinking completed Configuration Check Failed: Password Authentication Error The error you're seeing:
Copy code
State code: 28P01; Message: FATAL: password authentication failed for user "datalake_extractor"
This is a PostgreSQL authentication failure (SQLSTATE
28P01
), meaning Airbyte cannot connect to your Postgres source with the provided credentials. Common Causes & Fixes 1. Wrong password — Double-check the password entered in your Postgres source configuration in Airbyte. Even a single extra space or character will cause this error. 2. Wrong username — Verify that the user
datalake_extractor
exists in your Postgres database: SELECT usename FROM pg_user; 3. User doesn't have login privileges — Ensure the user is allowed to authenticate: ALTER USER datalake_extractor WITH LOGIN; 4.
pg_hba.conf
not configured for password auth
— Your Postgres server may not be configured to allow password-based authentication (
md5
or
scram-sha-256
) for this user. Check your
pg_hba.conf
file and ensure the appropriate auth method is set. [Postgres Quick Start] 5. User was recently created or password was changed — If you recently created the user or rotated the password, make sure the Airbyte source configuration reflects the latest credentials. Steps to Recreate the User (if needed) If you need to recreate the user with the correct password:
Copy code
CREATE USER datalake_extractor PASSWORD 'your_correct_password_here';

GRANT USAGE ON SCHEMA schema_name TO datalake_extractor;
GRANT SELECT ON ALL TABLES IN SCHEMA schema_name TO datalake_extractor;
ALTER DEFAULT PRIVILEGES IN SCHEMA schema_name GRANT SELECT ON TABLES TO datalake_extractor;
[Postgres Quick Start] After Fixing 1. Update the Password field in your Airbyte Postgres source configuration. 2. Re-run the Connection Check to confirm the credentials are accepted. 👍 0 button 👎 0 button ℹ️ Tip: Mention @kapa.ai in the thread for follow-ups or DM the app for 1-to-1 help.