kunaljubce commented on code in PR #44567:
URL: https://github.com/apache/airflow/pull/44567#discussion_r1867643437
##########
providers/src/airflow/providers/apache/spark/operators/spark_sql.py:
##########
@@ -94,15 +91,6 @@ def __init__(
self._yarn_queue = yarn_queue
self._hook: SparkSqlHook | None = None
- @property
- @deprecated(
- reason="`_sql` is deprecated and will be removed in the future. Please
use `sql` instead.",
- category=AirflowProviderDeprecationWarning,
- )
- def _sql(self):
- """Alias for ``sql``, used for compatibility (deprecated)."""
- return self.sql
Review Comment:
So @eladkal, it seems `_sql()` was marked for deprecation and `sql` was
introduced to comply with the templated field validations -
https://github.com/apache/airflow/pull/38045
--
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]