Skip to content

Commit

Permalink
🦉 Updates from OwlBot post-processor
Browse files Browse the repository at this point in the history
  • Loading branch information
gcf-owl-bot[bot] committed Jan 16, 2025
1 parent 61a3d43 commit b915691
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
14 changes: 7 additions & 7 deletions google/cloud/bigtable_v2/services/bigtable/async_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ def read_rows(
if regex_match and regex_match.group("table_name"):
header_params["table_name"] = regex_match.group("table_name")

if request.app_profile_id:
if request.app_profile_id is not None: # temporary fix: support empty headers for btql routing
header_params["app_profile_id"] = request.app_profile_id

routing_param_regex = re.compile(
Expand Down Expand Up @@ -463,7 +463,7 @@ def sample_row_keys(
if regex_match and regex_match.group("table_name"):
header_params["table_name"] = regex_match.group("table_name")

if request.app_profile_id:
if request.app_profile_id is not None: # temporary fix: support empty headers for btql routing
header_params["app_profile_id"] = request.app_profile_id

routing_param_regex = re.compile(
Expand Down Expand Up @@ -603,7 +603,7 @@ async def mutate_row(
if regex_match and regex_match.group("table_name"):
header_params["table_name"] = regex_match.group("table_name")

if request.app_profile_id:
if request.app_profile_id is not None: # temporary fix: support empty headers for btql routing
header_params["app_profile_id"] = request.app_profile_id

routing_param_regex = re.compile(
Expand Down Expand Up @@ -737,7 +737,7 @@ def mutate_rows(
if regex_match and regex_match.group("table_name"):
header_params["table_name"] = regex_match.group("table_name")

if request.app_profile_id:
if request.app_profile_id is not None: # temporary fix: support empty headers for btql routing
header_params["app_profile_id"] = request.app_profile_id

routing_param_regex = re.compile(
Expand Down Expand Up @@ -914,7 +914,7 @@ async def check_and_mutate_row(
if regex_match and regex_match.group("table_name"):
header_params["table_name"] = regex_match.group("table_name")

if request.app_profile_id:
if request.app_profile_id is not None: # temporary fix: support empty headers for btql routing
header_params["app_profile_id"] = request.app_profile_id

routing_param_regex = re.compile(
Expand Down Expand Up @@ -1028,7 +1028,7 @@ async def ping_and_warm(
if regex_match and regex_match.group("name"):
header_params["name"] = regex_match.group("name")

if request.app_profile_id:
if request.app_profile_id is not None: # temporary fix: support empty headers for btql routing
header_params["app_profile_id"] = request.app_profile_id

if header_params:
Expand Down Expand Up @@ -1165,7 +1165,7 @@ async def read_modify_write_row(
if regex_match and regex_match.group("table_name"):
header_params["table_name"] = regex_match.group("table_name")

if request.app_profile_id:
if request.app_profile_id is not None: # temporary fix: support empty headers for btql routing
header_params["app_profile_id"] = request.app_profile_id

routing_param_regex = re.compile(
Expand Down
14 changes: 7 additions & 7 deletions google/cloud/bigtable_v2/services/bigtable/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -768,7 +768,7 @@ def read_rows(
if regex_match and regex_match.group("table_name"):
header_params["table_name"] = regex_match.group("table_name")

if request.app_profile_id:
if request.app_profile_id is not None: # temporary fix: support empty headers for btql routing
header_params["app_profile_id"] = request.app_profile_id

routing_param_regex = re.compile(
Expand Down Expand Up @@ -884,7 +884,7 @@ def sample_row_keys(
if regex_match and regex_match.group("table_name"):
header_params["table_name"] = regex_match.group("table_name")

if request.app_profile_id:
if request.app_profile_id is not None: # temporary fix: support empty headers for btql routing
header_params["app_profile_id"] = request.app_profile_id

routing_param_regex = re.compile(
Expand Down Expand Up @@ -1021,7 +1021,7 @@ def mutate_row(
if regex_match and regex_match.group("table_name"):
header_params["table_name"] = regex_match.group("table_name")

if request.app_profile_id:
if request.app_profile_id is not None: # temporary fix: support empty headers for btql routing
header_params["app_profile_id"] = request.app_profile_id

routing_param_regex = re.compile(
Expand Down Expand Up @@ -1152,7 +1152,7 @@ def mutate_rows(
if regex_match and regex_match.group("table_name"):
header_params["table_name"] = regex_match.group("table_name")

if request.app_profile_id:
if request.app_profile_id is not None: # temporary fix: support empty headers for btql routing
header_params["app_profile_id"] = request.app_profile_id

routing_param_regex = re.compile(
Expand Down Expand Up @@ -1326,7 +1326,7 @@ def check_and_mutate_row(
if regex_match and regex_match.group("table_name"):
header_params["table_name"] = regex_match.group("table_name")

if request.app_profile_id:
if request.app_profile_id is not None: # temporary fix: support empty headers for btql routing
header_params["app_profile_id"] = request.app_profile_id

routing_param_regex = re.compile(
Expand Down Expand Up @@ -1437,7 +1437,7 @@ def ping_and_warm(
if regex_match and regex_match.group("name"):
header_params["name"] = regex_match.group("name")

if request.app_profile_id:
if request.app_profile_id is not None: # temporary fix: support empty headers for btql routing
header_params["app_profile_id"] = request.app_profile_id

if header_params:
Expand Down Expand Up @@ -1571,7 +1571,7 @@ def read_modify_write_row(
if regex_match and regex_match.group("table_name"):
header_params["table_name"] = regex_match.group("table_name")

if request.app_profile_id:
if request.app_profile_id is not None: # temporary fix: support empty headers for btql routing
header_params["app_profile_id"] = request.app_profile_id

routing_param_regex = re.compile(
Expand Down

0 comments on commit b915691

Please sign in to comment.