Jerry Bao
08/21/2025, 10:12 PMkapa.ai
08/21/2025, 10:13 PM{{ max("5"|int, 3) }} This will output 5, as both arguments are now integers and can be compared safely. The Airbyte documentation confirms the use of max for iterables or multiple arguments, but does not specify handling mixed types. Therefore, explicit type conversion is necessary to avoid errors, as shown above. If you attempt to compare a string and an integer without conversion, you will encounter a TypeError, similar to the one described in the Airbyte GitHub issue for the YouTube Analytics connector, where a string and an integer were compared and caused a failure ([source-youtube-analytics] - TypeError: '>' not supported between instances of 'str' and 'int'). References: - [YAML Reference: max macro](https://docs.airbyte.com/platform/next/connector-development/config-based/understanding-the-yaml-file/reference#/macros/max) - [Jinja2 filters and type conversion](https://docs.airbyte.com/platform/next/connector-development/config-based/advanced-topics/oauth#commonly-used-jinja2-in-variables-interpolation-methods-available-the-list-is-not-exhaustive) - [GitHub Issue: TypeError in source-youtube-analytics](https://github.com/airbytehq/airbyte/issues/61319)Jerry Bao
08/21/2025, 10:14 PMint is not an available jinja expressionkapa.ai
08/21/2025, 10:14 PMkapa.ai
08/21/2025, 10:14 PM