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

   Removes the deprecated pandas-only DataFrame methods in favour of 
`get_df(..., df_type="pandas")` and `get_df_by_chunks(..., df_type="pandas")`:
   
   | Method | Deprecated in |
   |---|---|
   | `DbApiHook.get_pandas_df`, `DbApiHook.get_pandas_df_by_chunks` | #48875 
(April 2025) |
   | `ExasolHook.get_pandas_df` | #50017 (May 2025) |
   | `HiveServer2Hook.get_pandas_df` | #50070 (May 2025) |
   | `PrestoHook.get_pandas_df`, `TrinoHook.get_pandas_df` | #50123 (May 2025) |
   
   These are removed in one PR on purpose. Removing only a subclass override 
would make that hook inherit the still-deprecated `DbApiHook.get_pandas_df`. 
For `HiveServer2Hook` that also breaks callers: its `get_df` takes `(sql, 
schema, hive_conf)`, so `get_pandas_df(sql, schema="x")` would raise 
`TypeError`.
   
   With an older `common.sql`, a new Exasol, Hive, Presto or Trino provider 
still exposes the base deprecated method until `common.sql` is upgraded too.
   
   No production code calls these methods. The tests only patch the private 
`_get_pandas_df*` helpers, which stay. The changelog of each affected provider 
notes the removal.
   
   ---
   
   ##### Was generative AI tooling used to co-author this PR?
   
   - [X] Yes — Claude Code (Opus 5.5)
   
   Generated-by: Claude Code (Opus 5.5) following [the 
guidelines](https://github.com/apache/airflow/blob/main/contributing-docs/05_pull_requests.rst#gen-ai-assisted-contributions)
   


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