Registry / workflow / apache-airflow-providers-vertica

apache-airflow-providers-vertica

JSON →
library4.4.0pypypi✓ verified 85d ago

The `apache-airflow-providers-vertica` package is an Apache Airflow provider that enables seamless integration with Vertica databases. It offers hooks and operators to connect to Vertica and execute SQL queries within Airflow DAGs. The current version is 4.3.2 and it follows an independent semantic versioning scheme, with frequent updates that may introduce new features, bug fixes, or compatibility changes with Airflow core.

pip install apache-airflow-providers-vertica
INSTALL
IMPORT
SIG · APACHE-AIRFLOW-PRO
A
apache-airflow-providers-vertica
workflowpythonv4.4.0
Install
23.0s avg
Import
4808ms
Disk
251MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v4.4.0 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.920 runs
installs and imports cleanly · install 0.0s · import 5.023s · 251.6MB
glibc
py 3.103.920 runs
installs and imports cleanly · install 23.0s · import 4.594s · 250MB
251MB installed
● package 251MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

VerticaHook
from airflow.providers.vertica.hooks.vertica import VerticaHook
SQLExecuteQueryOperator
from airflow.providers.common.sql.operators.sql import SQLExecuteQueryOperator
from airflow.providers.vertica.operators.vertica import VerticaOperator
The dedicated `VerticaOperator` was removed in `apache-airflow-providers-vertica` version 4.0.0 and superseded by the generic `SQLExecuteQueryOperator` from `common.sql`.

This quickstart demonstrates how to define a simple Airflow DAG to interact with Vertica. It creates a table, inserts data, and then selects it, printing the results to the task logs. An Airflow connection with `Conn Id` set to `vertica_default` must be configured in the Airflow UI, providing the necessary host, port, schema, login, and password for your Vertica instance.

import pendulum from airflow.models.dag import DAG from airflow.providers.common.sql.operators.sql import SQLExecuteQueryOperator # Ensure a Vertica connection named 'vertica_default' is configured in Airflow UI # with host, port, schema, login, and password. with DAG( dag_id="vertica_quickstart_dag", start_date=pendulum.datetime(2023, 1, 1, tz="UTC"), catchup=False, schedule=None, tags=["vertica", "example"], ) as dag: create_table_task = SQLExecuteQueryOperator( task_id="create_vertica_table", conn_id="vertica_default", sql="""CREATE TABLE IF NOT EXISTS public.test_airflow (id INT, name VARCHAR(50));""", ) insert_data_task = SQLExecuteQueryOperator( task_id="insert_vertica_data", conn_id="vertica_default", sql="""INSERT INTO public.test_airflow (id, name) VALUES (1, 'Airflow Test');""", ) select_data_task = SQLExecuteQueryOperator( task_id="select_vertica_data", conn_id="vertica_default", sql="""SELECT * FROM public.test_airflow;""", handler=lambda cursor: print(cursor.fetchall()), # Print results to task logs ) create_table_task >> insert_data_task >> select_data_task
Debug
Known issues
breakingThe dedicated `VerticaOperator` (`airflow.providers.vertica.operators.vertica.VerticaOperator`) was removed in version 4.0.0 of this provider.
fix
Migrate to `SQLExecuteQueryOperator` from `airflow.providers.common.sql.operators.sql`. This operator provides equivalent functionality and is the recommended approach for SQL execution across many database providers.
affects: >=4.0.0
breakingMinimum Airflow core version requirements increase with provider updates. For provider version 4.3.x, Airflow 2.11.0+ is required.
fix
Ensure your Airflow core installation meets or exceeds the minimum version required by the provider. If your Airflow version is older, upgrade Airflow first before installing the latest provider.
affects: >=4.2.0 (requires Airflow >= 2.11.0), >=4.1.0 (requires Airflow >= 2.10.0), >=4.0.0 (requires Airflow >= 2.9.0)
gotchaWhen running multi-statement SQL queries with `split_statements=False` (default for `SQLExecuteQueryOperator`), errors after the first statement might not be detected by older versions of the `VerticaHook`, leading to partial commits without raising an exception.
fix
This issue was addressed in provider versions >= 4.2.1 by a customized `fetch_all_handler` within `VerticaHook`. If on an older provider version, consider upgrading or setting `split_statements=True` for SQL operators to ensure each statement is executed and validated independently. Alternatively, explicit transaction management may be needed.
affects: <4.2.1
gotchaIn containerized Airflow deployments (e.g., Docker, Kubernetes), simply `pip install`ing the provider in one component (like the scheduler) does not make it available to all other components (webserver, workers, etc.).
fix
The provider package must be installed into the Docker image used by *all* Airflow components. Modify your `Dockerfile` or `requirements.txt` included in your image build process to ensure the provider is universally available.
affects: All versions in containerized environments
Errors
Common errors & fixes
ModuleNotFoundError: No module named 'airflow.providers.vertica'
The `apache-airflow-providers-vertica` package is not installed or not available in the Python environment where Airflow components (scheduler, worker, webserver) are running.
fix
Run `pip install apache-airflow-providers-vertica` in the correct virtual environment or ensure it's included in your Airflow Docker image build process. Verify the installation by running `pip show apache-airflow-providers-vertica`.
AttributeError: module 'airflow.contrib.hooks.vertica_hook' has no attribute 'VerticaHook'
This import path is from an older version of Airflow (1.x or early 2.x) and is no longer valid in modern Airflow 2+ provider packages.
fix
Update your import statements to the correct path: `from airflow.providers.vertica.hooks.vertica import VerticaHook`. For operators, use `SQLExecuteQueryOperator` from `airflow.providers.common.sql.operators.sql`.
This release of provider is only available for Airflow X.Y.Z+
You are trying to install or use a version of `apache-airflow-providers-vertica` that requires a newer minimum version of Apache Airflow core than currently installed.
fix
Upgrade your Apache Airflow core installation to at least the version specified in the error message (e.g., `pip install 'apache-airflow>=2.11.0'`). Alternatively, install an older version of the Vertica provider that is compatible with your current Airflow core version.
Upgrade
Version history
4.4.0latest on PyPI · released May 23, 2026
Audit
Dependencies
apache-airflowrequiredCore Airflow functionality
vertica-pythonrequiredPython client for Vertica database interaction
apache-airflow-providers-common-compatrequiredCommon compatibility layer for providers
apache-airflow-providers-common-sqlrequiredCommon SQL functionality for providers
sqlalchemyoptionalSQLAlchemy support (optional extra)
Agent activity
50 hits · last 30 days
node
44
OpenAI (training)
1
Resources