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

   pyexasol 2.x ships a `py.typed` marker that exposed 8 type mismatches in
   the Exasol hook, causing CI to cap the dependency at `<2`. This PR removes
   the cap by fixing the hook to be compatible with pyexasol 2.x.
   
   **Changes:**
   - Rename reused `conn` variable in `get_conn()` to `airflow_conn` / 
`exa_conn`
     to eliminate the mypy type-narrowing conflict.
   - Add `_validate_query_params()` static method to narrow
     `Iterable|Mapping|None` → `dict|None`, matching pyexasol 2.x's
     `execute()` and `export_to_pandas()` signatures. Raises `TypeError`
     with a clear message for non-dict input.
   - Narrow `sql: str | list[str]` → `sql: str` in `get_records()` and
     `get_first()`, matching what pyexasol actually accepts.
   - Bump `pyexasol` dependency from `>=0.26.0,<2` to `>=2.0.0,<3`.
   - Update existing test to use `dict` parameters (tuples were never valid).
   - Add negative tests for non-dict parameters and list SQL inputs.
   
   closes: #69123


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