You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The templated attribute contains a rather long SQL statement (20 000 B). It was displayed incorrectly both in the "Task Instance Detail" and in the "Rendered Template" section (the SQL statement was truncated).
I set the max_templated_field_length configuration parameter to 32000.
After that, the templated attribute was displayed fine in the "Task Instance Detail" section, but in the "Rendered Template" section it was still displayed incorrectly (see the pict)
Task Instance Detail section
Rendered Template section
What you think should happen instead?
Templated attribute for a given configuration should also appear correctly in the Rendered Template section.
I would also like to ask if the "Rendered Template" link could return to where it was before version 2.9.0. That is, as a subitem of the Details tab (at the same level as the links to Task Instance Details and List All Instances.
The Rendered template section is very frequently used (our Tasks contain mostly SQL) and the current settings since version 2.9.0 make it very difficult to use
How to reproduce
Use long data (longer than max_templated_field_length settings) in the templated attribute and display it.
I was unable to replicate this on main. A few theories which might explain the issues here:
You will need to update the max_templated_field_length setting on your executors in order for it to take effect. Setting it on only the webserver won't change anything since the rendered fields are saved at execution time in the RTIF table.
Changing this setting will not un-truncate the rendered templates for tasks which already ran, since the templates are only rendered once (at execution time), so only tasks run after the setting has been changed will reflect the larger value of max_templated_field_length.
Do either of these explain the issues you've been seeing?
@SamWheating Thank you very much, Sam, the problem was the the second point. What confused me was that the "truncated" data in the Task Instance Details section displayed correctly immediately after changing the max_templated_field_length.
Apache Airflow version
2.9.1
If "Other Airflow 2 version" selected, which one?
No response
What happened?
The templated attribute contains a rather long SQL statement (20 000 B). It was displayed incorrectly both in the "Task Instance Detail" and in the "Rendered Template" section (the SQL statement was truncated).
I set the max_templated_field_length configuration parameter to 32000.
After that, the templated attribute was displayed fine in the "Task Instance Detail" section, but in the "Rendered Template" section it was still displayed incorrectly (see the pict)
Task Instance Detail section
![image](https://private-user-images.githubusercontent.com/162625270/336462019-4e5f8951-d45d-446d-a791-04f1d4a73c27.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjA2Nzg0MDAsIm5iZiI6MTcyMDY3ODEwMCwicGF0aCI6Ii8xNjI2MjUyNzAvMzM2NDYyMDE5LTRlNWY4OTUxLWQ0NWQtNDQ2ZC1hNzkxLTA0ZjFkNGE3M2MyNy5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwNzExJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDcxMVQwNjA4MjBaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1kM2U5MTgzNDcxNWRjNmZlNGUzNjg3NmI0MWRhMGIwMmE5ODlmNGYwMTUzOWZlNzg5NWJjNjRmZmZkMDdiZGI2JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.vP1NPaZY0eVL53DHgf6qq4wlOsPqZGQclpJhJDMUAW8)
Rendered Template section
![image](https://private-user-images.githubusercontent.com/162625270/336461727-12caeb51-7fac-4c16-80d2-33026c5ec8d4.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjA2Nzg0MDAsIm5iZiI6MTcyMDY3ODEwMCwicGF0aCI6Ii8xNjI2MjUyNzAvMzM2NDYxNzI3LTEyY2FlYjUxLTdmYWMtNGMxNi04MGQyLTMzMDI2YzVlYzhkNC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwNzExJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDcxMVQwNjA4MjBaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0yZTQ3Zjk2ZjU1NzM2N2Y3ZjU4ZmE0YzRmZjg0NjQxZWM0OWI4ZGRiNzhjN2NkOGQyM2Y2ZThhYzM0NDEwODVlJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.7YCCUXxQ6Xxc88j_TayOlJCk01WQWea8umh9O0M1YZA)
What you think should happen instead?
Templated attribute for a given configuration should also appear correctly in the Rendered Template section.
I would also like to ask if the "Rendered Template" link could return to where it was before version 2.9.0. That is, as a subitem of the Details tab (at the same level as the links to Task Instance Details and List All Instances.
The Rendered template section is very frequently used (our Tasks contain mostly SQL) and the current settings since version 2.9.0 make it very difficult to use
How to reproduce
Use long data (longer than max_templated_field_length settings) in the templated attribute and display it.
Operating System
Linux
Versions of Apache Airflow Providers
No response
Deployment
Official Apache Airflow Helm Chart
Deployment details
No response
Anything else?
No response
Are you willing to submit PR?
Code of Conduct
The text was updated successfully, but these errors were encountered: