<@U04S8PLJWMT> What is the difference between `str...
# ask-ai
k
@kapa.ai What is the difference between
stream_interval.start_time
and
stream_slice['start_time']
variables
k
Short answer: - stream_interval.start_time is the supported interpolation variable for config-based connectors to represent the beginning of the current time window (interval) being processed. Use this in requests, headers, or filters that need the current slice’s start timestamp. [[HttpRequester](https://docs.airbyte.com/platform/connector-development/config-based/understanding-the-yaml-file/reference#/definitions/HttpRequester)] - stream_slice['start_time] refers to the older stream_slice variable, which is deprecated for config-based connectors. You should not rely on it; use stream_interval (or stream_partition for partitioning contexts) instead. [[stream_slice var](https://docs.airbyte.com/platform/connector-development/config-based/understanding-the-yaml-file/reference#/variables/stream_slice); [Next stream_slice var](https://docs.airbyte.com/platform/next/connector-development/config-based/understanding-the-yaml-file/reference#/variables/stream_slice)] Details and implications: - In declarative (config-based) YAML, places like request_parameters and request_body_data explicitly list stream_interval as an available variable, showing examples that interpolate stream_interval.start_time and stream_interval.end_time. This indicates first-class support. [[HttpRequester](https://docs.airbyte.com/platform/connector-development/config-based/understanding-the-yaml-file/reference#/definitions/HttpRequester)] - The stream_slice variable is documented as deprecated across versions (1.6, 1.7, Next). If you previously wrote templates like {{ stream_slice['start_time'] }}, migrate to {{ stream_interval.start_time }}. [[stream_slice var](https://docs.airbyte.com/platform/1.7/connector-development/config-based/understanding-the-yaml-file/reference#/variables/stream_slice); [Next stream_slice var](https://docs.airbyte.com/platform/next/connector-development/config-based/understanding-the-yaml-file/reference#/variables/stream_slice)] Note on Python CDK vs. declarative: - The Python CDK still uses the concept of “stream slices” in code for checkpointing control, but this is separate from the declarative interpolation variables. The question here is about YAML interpolation variables; for YAML, use stream_interval instead of the deprecated stream_slice. [[Stream Slices](https://docs.airbyte.com/platform/next/connector-development/cdk-python/stream-slices#stream-slicing)]