This is an automated email from the ASF dual-hosted git repository.

eladkal pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/main by this push:
     new 7f5b8a57df Resolve `AirflowProviderDeprecationWarning` in 
`SparkSqlOperator` (#41358)
7f5b8a57df is described below

commit 7f5b8a57df2c6ec90da8dae0f3ef998a85eca2ca
Author: phi-friday <[email protected]>
AuthorDate: Sat Aug 10 01:22:28 2024 +0900

    Resolve `AirflowProviderDeprecationWarning` in `SparkSqlOperator` (#41358)
---
 airflow/providers/apache/spark/operators/spark_sql.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/airflow/providers/apache/spark/operators/spark_sql.py 
b/airflow/providers/apache/spark/operators/spark_sql.py
index 7e48b748c6..ba0227f453 100644
--- a/airflow/providers/apache/spark/operators/spark_sql.py
+++ b/airflow/providers/apache/spark/operators/spark_sql.py
@@ -116,7 +116,7 @@ class SparkSqlOperator(BaseOperator):
     def _get_hook(self) -> SparkSqlHook:
         """Get SparkSqlHook."""
         return SparkSqlHook(
-            sql=self._sql,
+            sql=self.sql,
             conf=self._conf,
             conn_id=self._conn_id,
             total_executor_cores=self._total_executor_cores,

Reply via email to