turbaszek commented on a change in pull request #8631:
URL: https://github.com/apache/airflow/pull/8631#discussion_r423001501



##########
File path: airflow/providers/google/cloud/hooks/bigquery.py
##########
@@ -97,6 +99,10 @@ def get_service(self) -> Any:
         """
         Returns a BigQuery service object.
         """
+        warnings.warn(

Review comment:
       Stacklevel 1 works as expected here:
   ```
   In [2]: from airflow.providers.google.cloud.hooks.bigquery import 
BigQueryHook
   
   In [3]: h = BigQueryHook()
   
   In [4]: h.get_service()
   
/Users/tomaszurbaszek/airflow/airflow/providers/google/cloud/hooks/bigquery.py:104:
 DeprecationWarning: This method will be deprecated. Please use 
`BigQueryHook.get_client` method
     DeprecationWarning
   ```




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

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to