From f6a64c11807f950586ddb18aaa0b1f462afca86b Mon Sep 17 00:00:00 2001 From: Kunal Bhattacharya Date: Sat, 7 Dec 2024 20:44:40 +0530 Subject: [PATCH] Deprecated DruidCheckOperator --- .../providers/apache/druid/CHANGELOG.rst | 11 ++++++ .../apache/druid/operators/druid_check.py | 38 ------------------- .../providers/apache/druid/provider.yaml | 1 - 3 files changed, 11 insertions(+), 39 deletions(-) delete mode 100644 providers/src/airflow/providers/apache/druid/operators/druid_check.py diff --git a/providers/src/airflow/providers/apache/druid/CHANGELOG.rst b/providers/src/airflow/providers/apache/druid/CHANGELOG.rst index 0a8cc2a947701..6e0d4aeed6efc 100644 --- a/providers/src/airflow/providers/apache/druid/CHANGELOG.rst +++ b/providers/src/airflow/providers/apache/druid/CHANGELOG.rst @@ -27,6 +27,17 @@ Changelog --------- +main +..... + +.. warning:: + All deprecated classes, parameters and features have been removed from the Apache Druid provider package. + The following breaking changes were introduced: + + * Operators + + * Removed ``DruidCheckOperator``. Please use ``airflow.providers.common.sql.operators.sql.SQLCheckOperator`` instead. + 3.12.1 ...... diff --git a/providers/src/airflow/providers/apache/druid/operators/druid_check.py b/providers/src/airflow/providers/apache/druid/operators/druid_check.py deleted file mode 100644 index 5fe6844a66d19..0000000000000 --- a/providers/src/airflow/providers/apache/druid/operators/druid_check.py +++ /dev/null @@ -1,38 +0,0 @@ -# -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. -from __future__ import annotations - -from deprecated import deprecated - -from airflow.exceptions import AirflowProviderDeprecationWarning -from airflow.providers.common.sql.operators.sql import SQLCheckOperator - - -@deprecated( - reason="Please use `airflow.providers.common.sql.operators.sql.SQLCheckOperator`.", - category=AirflowProviderDeprecationWarning, -) -class DruidCheckOperator(SQLCheckOperator): - """ - This class is deprecated. - - Please use :class:`airflow.providers.common.sql.operators.sql.SQLCheckOperator`. - """ - - def __init__(self, druid_broker_conn_id: str = "druid_broker_default", **kwargs): - super().__init__(conn_id=druid_broker_conn_id, **kwargs) diff --git a/providers/src/airflow/providers/apache/druid/provider.yaml b/providers/src/airflow/providers/apache/druid/provider.yaml index 3ceb838de1cee..ee068c811cfa9 100644 --- a/providers/src/airflow/providers/apache/druid/provider.yaml +++ b/providers/src/airflow/providers/apache/druid/provider.yaml @@ -76,7 +76,6 @@ operators: - integration-name: Apache Druid python-modules: - airflow.providers.apache.druid.operators.druid - - airflow.providers.apache.druid.operators.druid_check hooks: - integration-name: Apache Druid