Taragolis commented on code in PR #39752:
URL: https://github.com/apache/airflow/pull/39752#discussion_r1609608095


##########
airflow/providers/google/cloud/operators/automl.py:
##########
@@ -676,10 +676,25 @@ def execute(self, context: Context):
             )
 
 
+@deprecated(
+    reason=(
+        "Class `AutoMLTablesListColumnSpecsOperator` has been deprecated and 
will be removed after 31.12.2024. "
+        "AutoML platform no longer supports tabular datasets after its 
integration with Cloud Translation and Vertex AI. "
+        "Please refer to 
https://cloud.google.com/vertex-ai/docs/start/migrating-to-vertex-ai and "
+        "https://cloud.google.com/translate/docs/advanced/automl-upgrade for 
more info about available alternatives."
+    ),
+    category=AirflowProviderDeprecationWarning,
+    action="error",

Review Comment:
   ```suggestion
   ```
   
   If users wanted they could configure it by Python builtin [Warnings 
Control](https://docs.python.org/3/library/warnings.html#the-warnings-filter) 
we should not force it to the to the `error`.



##########
airflow/providers/google/cloud/operators/automl.py:
##########
@@ -1182,10 +1197,25 @@ def execute(self, context: Context):
         self.log.info("Model was deployed successfully.")
 
 
+@deprecated(
+    reason=(
+        "Class `AutoMLTablesListTableSpecsOperator` has been deprecated and 
will be removed after 31.12.2024. "
+        "AutoML platform no longer supports tabular datasets after its 
integration with Cloud Translation and Vertex AI. "
+        "Please refer to 
https://cloud.google.com/vertex-ai/docs/start/migrating-to-vertex-ai and "
+        "https://cloud.google.com/translate/docs/advanced/automl-upgrade for 
more info about available alternatives."
+    ),
+    category=AirflowProviderDeprecationWarning,
+    action="error",

Review Comment:
   ```suggestion
   ```



-- 
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: commits-unsubscr...@airflow.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to