The `apache-airflow-providers-teradata` package provides an official Teradata provider for Apache Airflow, enabling interaction with Teradata databases via Airflow DAGs. It includes hooks and operators for executing SQL queries and managing data. The current version is 3.5.2, and it typically releases updates aligned with Airflow's core release cycle or when significant bug fixes/features are added.
pip install apache-airflow-providers-teradataVerified import paths — ran on the pinned version, not inferred.
A simple Airflow DAG that uses the `TeradataOperator` to execute a basic SQL query against a Teradata database. Requires an Airflow connection named `teradata_default` to be configured in the Airflow UI or via environment variables, specifying the Teradata host, port, username, password, and optionally a database.
Ensure the connection ID matches, and the Teradata connection in Airflow UI (Admin -> Connections) or environment variables (e.g., AIRFLOW_CONN_TERADATA_DEFAULT) is correctly configured with all necessary parameters like host, port, schema, login, and password.
Check the `apache-airflow-providers-teradata` GitHub repository or Airflow documentation for any specific `teradatasql` version requirements. If issues arise, try upgrading or downgrading `teradatasql` (`pip install --upgrade teradatasql==X.Y.Z`) or the provider itself.
Refer to the `teradatasql` documentation and Airflow Teradata provider documentation for detailed SSL/TLS configuration options. Add relevant parameters to the 'Extra' field of your Airflow Teradata connection.
Install the `teradatasql` package: `pip install teradatasql` (or reinstall the provider which pulls it in: `pip install apache-airflow-providers-teradata`).
Ensure that the `teradata_conn_id` argument in your operator/hook matches an existing connection ID configured in Airflow. Verify its presence and correctness in the Airflow UI (Admin -> Connections) or environment variables.
Double-check the host and port specified in your Airflow Teradata connection. Verify network connectivity from your Airflow worker to the Teradata server. Consult your network or database administrator if necessary.