jieyao-MilestoneHub commented on code in PR #47478:
URL: https://github.com/apache/airflow/pull/47478#discussion_r1990471816


##########
airflow/example_dags/example_exasol_to_s3.py:
##########
@@ -0,0 +1,53 @@
+#
+# 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.
+"""
+Example DAG to test Exasol connection in Apache Airflow.
+
+This DAG uses the ExasolToS3Operator to execute a simple SQL query on Exasol
+and simulate an S3 upload. The main purpose is to verify that the Exasol 
connection
+settings (exasol_default) are working correctly. S3 connection is simulated 
via dummy
+parameters (aws_default, dummy bucket and key).
+"""
+
+from datetime import datetime
+from airflow import DAG
+from airflow.providers.amazon.aws.transfers.exasol_to_s3 import 
ExasolExportOperator
+
+default_args = {
+    "owner": "airflow",
+    "depends_on_past": False,
+}
+
+with DAG(
+    dag_id="example_exasol_to_s3",
+    default_args=default_args,
+    start_date=datetime(2025, 3, 11),
+    schedule=None,
+    catchup=False,
+    tags=["exasol", "test"],
+) as dag:
+
+    test_exasol_connection = ExasolExportOperator(

Review Comment:
   Got it, I will rewrite `airflow/example_dags/example_exasol_to_s3.py` to 
focus on Exasol connection, S3 query, and export to S3.



##########
airflow/example_dags/exasol_connection.rst:
##########
@@ -0,0 +1,152 @@
+.. Licensed to the Apache Software Foundation (ASF) under one

Review Comment:
   Got it.



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to