stankiewicz commented on code in PR #34135:
URL: https://github.com/apache/beam/pull/34135#discussion_r1979427657


##########
sdks/python/apache_beam/io/gcp/bigquery_tools.py:
##########
@@ -474,9 +495,61 @@ def get_query_location(self, project_id, query, 
use_legacy_sql):
         query)
     return None
 
+  def get_table(self, project_id, dataset_id, table_id):
+    """Lookup a table's metadata object.
+
+    Args:
+      project_id: table lookup parameter
+      dataset_id: table lookup parameter 
+      table_id: table lookup parameter
+
+    Returns:
+      bigquery.Table instance
+    Raises:
+      HttpError: if lookup failed.
+    """
+    # Skip caching if TTL is set to 0
+    if self._table_definition_ttl <= 0:

Review Comment:
   this compares with negative as well. Is it correct?



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