yuseok89 commented on code in PR #70542:
URL: https://github.com/apache/airflow/pull/70542#discussion_r3960386744


##########
providers/google/src/airflow/providers/google/cloud/transfers/gcs_to_bigquery.py:
##########
@@ -359,7 +344,28 @@ def _handle_job_error(job: BigQueryJob | UnknownJob) -> 
None:
         if job.error_result:
             raise AirflowException(f"BigQuery job {job.job_id} failed: 
{job.error_result}")
 
+    def _warn_on_deprecated_template_fields(self) -> None:
+        if self.src_fmt_configs:
+            warnings.warn(
+                "The 'src_fmt_configs' parameter is deprecated. Use 
'extra_config' instead. "
+                "Note: 'extra_config' uses the fully-nested API structure, so 
format-specific "
+                "options must be nested under their parent key "
+                "(e.g., {'parquetOptions': {'enableListInference': True}} 
rather than "
+                "{'enableListInference': True}).",
+                AirflowProviderDeprecationWarning,
+                stacklevel=2,

Review Comment:
   Went with dropping it, written as `stacklevel=1` since ruff B028 wants the 
keyword present. Same behaviour as removing the argument.
   Left the message as it is. The warning fires during execution, so it lands 
in that task instance's log, which already identifies the task.
   Will align the rest in a follow-up.



-- 
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]

Reply via email to