Indexima Airflow integration
Project description
airflow-indexima
Versions following Semantic Versioning
Overview
Indexima Airflow integration based on pyhive.
Setup
Requirements
- Python 3.6+
Installation
Install this library directly into an activated virtual environment:
$ pip install airflow-indexima
or add it to your Poetry project:
$ poetry add airflow-indexima
Usage
After installation, the package can imported:
$ python
>>> import airflow_indexima
>>> airflow_indexima.__version__
Example
a simple query
from airflow_indexima import IndeximaQueryRunnerOperator
...
with dag:
...
op = IndeximaQueryRunnerOperator(
task_id = 'my-task-id',
sql_query= 'DELETE FROM Client WHERE GRPD = 1',
indexima_conn_id='my-indexima-connection'
)
...
a load into indexima
from airflow_indexima import IndeximaLoadDataOperator
...
with dag:
...
op = IndeximaLoadDataOperator(
task_id = 'my-task-id',
indexima_conn_id='my-indexima-connection',
target_table='Client',
source_select_query='select * from dsi.client',
truncate=True,
load_path_uri='jdbc:redshift://my-private-instance.com:5439/db_client?ssl=true&user=airflow-user&password=XXXXXXXX'
)
...
License
Contributing
See Contributing
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
airflow_indexima-1.0.1.tar.gz
(5.9 kB
view hashes)
Built Distribution
Close
Hashes for airflow_indexima-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 69933f7af43f1d69309e66b64e422ad108ee0565a200fb52b7abe1ea134f6bbf |
|
MD5 | a4f1b07ce24c516f0d7f26dd712638a6 |
|
BLAKE2b-256 | aa370f55c5ea99315fba933b82ac97d4299f41d0e53eee0f0ab02ffb0e88bf61 |