arpitrathore opened a new pull request, #58929:
URL: https://github.com/apache/airflow/pull/58929

   closes: #58610
   
   ## Summary
   
   Adds InfluxDB 3.x (Core/Enterprise/Cloud Dedicated) support to the 
**existing** `apache-airflow-providers-influxdb` provider, as requested by 
reviewers. InfluxDB 3.x uses SQL queries and a different client API 
(`influxdb3-python`) compared to InfluxDB 2.x (`influxdb-client`), so separate 
hook/operator classes are needed, but they live in the same provider package.
   
   ## What's Changed
   
   - **`InfluxDB3Hook`** (`airflow.providers.influxdb.hooks.influxdb3`):
     - Token-based authentication
     - Database and optional organization configuration
     - SQL query execution returning pandas DataFrames
     - Writing data points (`Point`) to InfluxDB 3.x
     - Connection form widgets (Token, Database, Organization)
   - **`InfluxDB3Operator`** (`airflow.providers.influxdb.operators.influxdb3`):
     - Executes SQL queries via `InfluxDB3Hook`
     - Returns JSON-serialisable list of dicts (XCom-friendly)
     - Templated `sql` field
   - **New `influxdb3` connection type** with separate form widgets from the 
existing `influxdb` type
   - **Documentation**: connection setup guide, operator usage guide, example 
DAG
   - **Unit tests** for hook and operator
   - **System test** example DAG
   - **`influxdb3-python>=0.7.0`** added as a dependency to `pyproject.toml`
   
   ## Requirements
   
   - Minimum Airflow version: 2.11.0
   - New dependency: `influxdb3-python>=0.7.0` (alongside existing 
`influxdb-client>=1.19.0`)
   
   ## Testing
   
   - Unit tests: 
`providers/influxdb/tests/unit/influxdb/hooks/test_influxdb3.py`
   - Unit tests: 
`providers/influxdb/tests/unit/influxdb/operators/test_influxdb3.py`
   - System test: 
`providers/influxdb/tests/system/influxdb/example_influxdb3.py`
   
   <!-- Please keep an empty line above the dashes. -->
   ---
   **^ Add meaningful description above**
   Read the **[Pull Request 
Guidelines](https://github.com/apache/airflow/blob/main/contributing-docs/05_pull_requests.rst#pull-request-guidelines)**
 for more information.
   In case of fundamental code changes, an Airflow Improvement Proposal 
([AIP](https://cwiki.apache.org/confluence/display/AIRFLOW/Airflow+Improvement+Proposals))
 is needed.
   In case of a new dependency, check compliance with the [ASF 3rd Party 
License Policy](https://www.apache.org/legal/resolved.html#category-x).
   In case of backwards incompatible changes please leave a note in a 
newsfragment file, named `{pr_number}.significant.rst` or 
`{issue_number}.significant.rst`, in 
[airflow-core/newsfragments](https://github.com/apache/airflow/tree/main/airflow-core/newsfragments).


-- 
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