potiuk commented on code in PR #38281: URL: https://github.com/apache/airflow/pull/38281#discussion_r1535872604
########## airflow/providers/common/sql/transfers/sql.py: ########## @@ -0,0 +1,248 @@ +# +# 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 + +import re +from contextlib import closing +from typing import TYPE_CHECKING, Any, Iterable, Mapping, Sequence + +from airflow.exceptions import AirflowException +from airflow.hooks.base import BaseHook +from airflow.models import BaseOperator +from airflow.providers.common.sql.hooks.sql import DbApiHook + +if TYPE_CHECKING: + from airflow.utils.context import Context + +_PROVIDERS_MATCHER = re.compile(r"airflow\.providers\.(.*)\.hooks.*") + +_MIN_SUPPORTED_PROVIDERS_VERSION = { + "amazon": "4.1.0", + "apache.drill": "2.1.0", + "apache.druid": "3.1.0", + "apache.hive": "3.1.0", + "apache.pinot": "3.1.0", + "databricks": "3.1.0", + "elasticsearch": "4.1.0", + "exasol": "3.1.0", + "google": "8.2.0", + "jdbc": "3.1.0", + "mssql": "3.1.0", + "mysql": "3.1.0", + "odbc": "3.1.0", + "oracle": "3.1.0", + "postgres": "5.1.0", + "presto": "3.1.0", + "qubole": "3.1.0", + "slack": "5.1.0", + "snowflake": "3.1.0", + "sqlite": "3.1.0", + "trino": "3.1.0", + "vertica": "3.1.0", +} + + +class SqlToSqlOperator(BaseOperator): + """ + Copy sql output data from one base to another database table. Review Comment: `"slack": "5.1.0",` ? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@airflow.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org