<h3 dir="auto">Apache Airflow version</h3>
<p dir="auto">Other Airflow 2 version</p>
<h3 dir="auto">What happened</h3>
<p dir="auto">Calling the TrinoOperator/Hook in the latest 4.0.0 version results in the above error for any query.</p>
<p dir="auto"><code class="notranslate">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'</code></p>
<h3 dir="auto">What you think should happen instead</h3>
<p dir="auto">The SQL is executed correctly, no errors in the TrinoHook.</p>
<h3 dir="auto">How to reproduce</h3>
<p dir="auto">Run a query with an instance of the TrinoHook class against a data store</p>
<h3 dir="auto">Operating System</h3>
<p dir="auto">macOS</p>
<h3 dir="auto">Versions of Apache Airflow Providers</h3>
<p dir="auto">4.0.0</p>
<h3 dir="auto">Deployment</h3>
<p dir="auto">MWAA</p>
<h3 dir="auto">Deployment details</h3>
<p dir="auto"><em>No response</em></p>
<h3 dir="auto">Anything else</h3>
<p dir="auto"><em>No response</em></p>
<h3 dir="auto">Are you willing to submit PR?</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Yes I am willing to submit a PR!</li>
</ul>
<h3 dir="auto">Code of Conduct</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I agree to follow this project's <a href="https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md">Code of Conduct</a></li>
</ul>
<h3 dir="auto">Apache Airflow version</h3>
<p dir="auto">Other Airflow 2 version</p>
<h3 dir="auto">What happened</h3>
<p dir="auto">Calling the ExasolOperator/Hook in the latest 4.0.0 version results in the above error for any query.</p>
<p dir="auto">Example task trace:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[2022-08-16, 10:26:35 UTC] {{exasol.py:64}} INFO - Executing: SELECT * FROM FOO
[2022-08-16, 10:26:35 UTC] {{taskinstance.py:1703}} ERROR - Task failed with exception
Traceback (most recent call last):
  File &quot;/usr/local/lib/python3.7/site-packages/airflow/models/taskinstance.py&quot;, line 1332, in _run_raw_task
    self._execute_task_with_callbacks(context)
  File &quot;/usr/local/lib/python3.7/site-packages/airflow/models/taskinstance.py&quot;, line 1458, in _execute_task_with_callbacks
    result = self._execute_task(context, self.task)
  File &quot;/usr/local/lib/python3.7/site-packages/airflow/models/taskinstance.py&quot;, line 1514, in _execute_task
    result = execute_callable(context=context)
  File &quot;/usr/local/airflow/.local/lib/python3.7/site-packages/airflow/providers/exasol/operators/exasol.py&quot;, line 66, in execute
    hook.run(self.sql, autocommit=self.autocommit, parameters=self.parameters)
  File &quot;/usr/local/airflow/.local/lib/python3.7/site-packages/airflow/providers/exasol/hooks/exasol.py&quot;, line 165, in run
    sql = [self.strip_sql_string(sql)]
AttributeError: 'ExasolHook' object has no attribute 'strip_sql_string'"><pre class="notranslate"><code class="notranslate">[2022-08-16, 10:26:35 UTC] {{exasol.py:64}} INFO - Executing: SELECT * FROM FOO
[2022-08-16, 10:26:35 UTC] {{taskinstance.py:1703}} ERROR - Task failed with exception
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/airflow/models/taskinstance.py", line 1332, in _run_raw_task
    self._execute_task_with_callbacks(context)
  File "/usr/local/lib/python3.7/site-packages/airflow/models/taskinstance.py", line 1458, in _execute_task_with_callbacks
    result = self._execute_task(context, self.task)
  File "/usr/local/lib/python3.7/site-packages/airflow/models/taskinstance.py", line 1514, in _execute_task
    result = execute_callable(context=context)
  File "/usr/local/airflow/.local/lib/python3.7/site-packages/airflow/providers/exasol/operators/exasol.py", line 66, in execute
    hook.run(self.sql, autocommit=self.autocommit, parameters=self.parameters)
  File "/usr/local/airflow/.local/lib/python3.7/site-packages/airflow/providers/exasol/hooks/exasol.py", line 165, in run
    sql = [self.strip_sql_string(sql)]
AttributeError: 'ExasolHook' object has no attribute 'strip_sql_string'
</code></pre></div>
<h3 dir="auto">What you think should happen instead</h3>
<p dir="auto">The SQL is executed correctly, no errors in the DB API Hook.</p>
<h3 dir="auto">How to reproduce</h3>
<p dir="auto">Run a query with an instance of the DBAPIHook class against a data store</p>
<h3 dir="auto">Operating System</h3>
<p dir="auto">Linux</p>
<h3 dir="auto">Versions of Apache Airflow Providers</h3>
<p dir="auto">4.0.0</p>
<h3 dir="auto">Deployment</h3>
<p dir="auto">MWAA</p>
<h3 dir="auto">Deployment details</h3>
<p dir="auto"><em>No response</em></p>
<h3 dir="auto">Anything else</h3>
<p dir="auto"><em>No response</em></p>
<h3 dir="auto">Are you willing to submit PR?</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Yes I am willing to submit a PR!</li>
</ul>
<h3 dir="auto">Code of Conduct</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I agree to follow this project's <a href="https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md">Code of Conduct</a></li>
</ul>