hochupivas opened a new issue, #25742:
URL: https://github.com/apache/airflow/issues/25742
### Apache Airflow version
Other Airflow 2 version
### What happened
Calling the TrinoOperator/Hook in the latest 4.0.0 version results in the
above error for any query.
`File "/opt/airflow/dags/utils/trino.py", line 21, in get_data
df = engine.get_pandas_df(query)
File
"/home/airflow/.local/lib/python3.8/site-packages/airflow/providers/trino/hooks/trino.py",
line 180, in get_pandas_df
cursor.execute(self.strip_sql_string(sql), parameters)
AttributeError: 'TrinoHook' object has no attribute 'strip_sql_string'`
### What you think should happen instead
The SQL is executed correctly, no errors in the TrinoHook.
### How to reproduce
Run a query with an instance of the TrinoHook class against a data store
### Operating System
macOS
### Versions of Apache Airflow Providers
4.0.0
### Deployment
MWAA
### Deployment details
_No response_
### Anything else
_No response_
### Are you willing to submit PR?
- [ ] Yes I am willing to submit a PR!
### Code of Conduct
- [X] I agree to follow this project's [Code of
Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
--
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]