<@U04S8PLJWMT> how to specify 2 conditions at the ...
# ask-ai
s
@kapa.ai how to specify 2 conditions at the same time in record filter?
k
To specify multiple conditions in a record filter in Airbyte, you can use logical operators such as
and
or
or
within the filter expression. For example, if you want to include only records where the status is not "expired" and the
created_at
date is after the stream interval's start time, you can write:
Copy code
jinja {{ record.status != 'expired' and record['created_at'] >= stream_interval['start_time'] }}
This expression will emit only records that satisfy both conditions. You can combine as many conditions as needed using logical operators in a single filter expression, always placing the entire condition inside double curly braces
{{ }}
as required by Airbyte's record filter syntax [Record Filter](https://docs.airbyte.com/platform/next/connector-development/connector-builder-ui/record-processing#record-filter).
s
@kapa.ai in connector builder, how to have detect drift in record schema?
k
A message from kapa.ai
In the Airbyte Connector Builder, schema drift (i.e., changes in the record schema) is detected by comparing the "detected schema" from test reads with the "declared schema" defined for the stream. When you run a test read, the Connector Builder analyzes the records and generates a detected schema. If this detected schema differs from your declared schema, the differences are highlighted in the "Detected schema" tab of the testing panel. By default, new streams are set to automatically import the detected schema into the declared schema on every test read. You can disable this by toggling off the "Automatically import declared schema" switch, allowing you to manually review and edit the declared schema. If there are differences, the UI will highlight them, helping you identify and address schema drift. However, note that not all differences are necessarily problematic—some may be due to incomplete test data, but incompatible differences can cause sync errors if not resolved [Declared schema](https://docs.airbyte.com/platform/next/connector-development/connector-builder-ui/record-processing#declared-schema). This mechanism allows you to detect and manage schema drift during connector development, but automatic handling of schema drift during production syncs is managed at the connection level, not within the connector builder itself.
s
how to disable "Automatically import declared schema" @kapa.ai
k
A message from kapa.ai
To disable "Automatically import declared schema" in the Airbyte Connector Builder, go to the Declared Schema tab for your stream and toggle off the Automatically import detected schema switch. This will stop the declared schema from being automatically updated when you trigger test reads, allowing you to manually edit the schema as needed [Declared schema](https://docs.airbyte.com/platform/next/connector-development/connector-builder-ui/record-processing#declared-schema).