This is an automated email from the ASF dual-hosted git repository. potiuk pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/main by this push: new bdb8f749ee Add `inherit_cache` attribute for `CreateTableAs` custom SA Clause (#38985) bdb8f749ee is described below commit bdb8f749ee462d508bc9da43b16d18a599ff0e7b Author: Andrey Anshin <andrey.ans...@taragol.is> AuthorDate: Sun Apr 14 17:19:17 2024 +0400 Add `inherit_cache` attribute for `CreateTableAs` custom SA Clause (#38985) --- airflow/utils/db_cleanup.py | 2 ++ pyproject.toml | 1 + 2 files changed, 3 insertions(+) diff --git a/airflow/utils/db_cleanup.py b/airflow/utils/db_cleanup.py index 4475209b77..7fe158e605 100644 --- a/airflow/utils/db_cleanup.py +++ b/airflow/utils/db_cleanup.py @@ -218,6 +218,8 @@ def _subquery_keep_last(*, recency_column, keep_last_filters, group_by_columns, class CreateTableAs(Executable, ClauseElement): """Custom sqlalchemy clause element for CTAS operations.""" + inherit_cache = False + def __init__(self, name, query): self.name = name self.query = query diff --git a/pyproject.toml b/pyproject.toml index f853b4e3e1..84fc37ee39 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -470,6 +470,7 @@ filterwarnings = [ # Avoid building cartesian product which might impact performance "error:SELECT statement has a cartesian product between FROM:sqlalchemy.exc.SAWarning:airflow", 'error:Coercing Subquery object into a select\(\) for use in IN\(\):sqlalchemy.exc.SAWarning:airflow', + 'error:Class.*will not make use of SQL compilation caching', "ignore::DeprecationWarning:flask_appbuilder.filemanager", "ignore::DeprecationWarning:flask_appbuilder.widgets", # FAB do not support SQLAclhemy 2