<@U04S8PLJWMT> my schema of the parquet file chang...
# ask-ai
h
@kapa.ai my schema of the parquet file changes every time when i am ingesting incremental data from a maria db database. How to ensure the schema is strict?
k
To ensure a strict schema when ingesting incremental data from MariaDB into a Parquet file using Airbyte, you should focus on the following best practices: 1. Describe Output Schemas as Completely and Reliably as Possible Airbyte recommends that source connectors (like MariaDB) describe their output schema in as much detail as correctness allows. This is especially important for strongly typed destinations like Parquet. If the schema is not described correctly, it can lead to failures downstream. Airbyte suggests automating schema generation whenever possible and being cautious about making breaking changes to output schemas. If you cannot reliably describe the schema (for example, due to highly dynamic or schemaless sources), it is better to be conservative and not describe a schema at all than to describe it incorrectly [Output Data & Schemas](https://docs.airbyte.com/platform/connector-development/ux-handbook#output-data--schemas). 2. Handle Schema Changes Carefully Airbyte provides options for how to detect and propagate schema changes. You can configure your connection to: - Propagate all field and stream changes automatically, - Propagate only field changes, - Require manual approval for all changes, or - Stop future syncs on schema change. For strict schema enforcement, consider setting your connection to "Approve all changes myself." This way, any detected schema change (such as a new or missing column) will not be automatically applied, and you must manually review and approve changes before they are reflected in the destination. This helps prevent unwanted schema drift in your Parquet files [Detect and Propagate Schema Changes connection setting](https://docs.airbyte.com/platform/using-airbyte/schema-change-management#detect-and-propagate-schema-changes-connection-setting). 3. Be Aware of Incremental Sync Limitations The incremental sync mode in Airbyte does not automatically handle source schema changes (e.g., added, renamed, or deleted columns). If your schema changes frequently, it is recommended to trigger a full refresh-overwrite sync to ensure the destination schema matches the source [Incremental Sync - Append: Known Limitations](https://docs.airbyte.com/platform/using-airbyte/core-concepts/sync-modes/incremental-append#known-limitations). 4. Manual Schema Refresh and Review You can manually refresh the source schema in the Airbyte UI and review any detected changes before applying them. This allows you to maintain control over which schema changes are propagated to your Parquet files [Manually refresh the source schema](https://docs.airbyte.com/platform/using-airbyte/schema-change-management#manually-refresh-the-source-schema). Summary: To keep your Parquet schema strict, configure your Airbyte connection to require manual approval for schema changes, describe your output schema as reliably as possible, and consider using full refresh syncs when schema changes are detected. Always review and approve schema changes before they are applied to your destination. If you need more automation, ensure your MariaDB source schema is stable, or use Airbyte's schema propagation settings to control how changes are handled.