Skip to content

Commit

Permalink
address comments
Browse files Browse the repository at this point in the history
  • Loading branch information
larkee committed Mar 12, 2020
1 parent c86f1ad commit d504e8b
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions google/cloud/spanner_v1/client.py
Expand Up @@ -63,7 +63,7 @@
"without a scheme: ex %s=localhost:8080."
) % ((EMULATOR_ENV_VAR,) * 3)
SPANNER_ADMIN_SCOPE = "https://www.googleapis.com/auth/spanner.admin"
OPTIMIZER_VERSION_VAR = "SPANNER_OPTIMIZER_VERSION"
OPTIMIZER_VERSION_ENV_VAR = "SPANNER_OPTIMIZER_VERSION"
_USER_AGENT_DEPRECATED = (
"The 'user_agent' argument to 'Client' is deprecated / unused. "
"Please pass an appropriate 'client_info' instead."
Expand All @@ -75,7 +75,7 @@ def _get_spanner_emulator_host():


def _get_spanner_optimizer_version():
return os.getenv(OPTIMIZER_VERSION_VAR, "")
return os.getenv(OPTIMIZER_VERSION_ENV_VAR, "")


class InstanceConfig(object):
Expand Down
4 changes: 2 additions & 2 deletions google/cloud/spanner_v1/database.py
Expand Up @@ -372,7 +372,7 @@ def execute_partitioned_dml(
:type query_options:
:class:`google.cloud.spanner_v1.proto.ExecuteSqlRequest.QueryOptions`
or :class:`dict`
or :class:`dict`
:param query_options:
(Optional) Query optimizer configuration to use for the given query.
If a dict is provided, it must be of the same form as the protobuf
Expand Down Expand Up @@ -803,7 +803,7 @@ def generate_query_batches(
:type query_options:
:class:`google.cloud.spanner_v1.proto.ExecuteSqlRequest.QueryOptions`
or :class:`dict`
or :class:`dict`
:param query_options:
(Optional) Query optimizer configuration to use for the given query.
If a dict is provided, it must be of the same form as the protobuf
Expand Down
1 change: 1 addition & 0 deletions google/cloud/spanner_v1/session.py
Expand Up @@ -228,6 +228,7 @@ def execute_sql(
:type query_options:
:class:`google.cloud.spanner_v1.proto.ExecuteSqlRequest.QueryOptions`
or :class:`dict`
:param query_options: (Optional) Options that are provided for query plan stability.
:rtype: :class:`~google.cloud.spanner_v1.streamed.StreamedResultSet`
Expand Down
1 change: 1 addition & 0 deletions google/cloud/spanner_v1/transaction.py
Expand Up @@ -189,6 +189,7 @@ def execute_update(
:type query_options:
:class:`google.cloud.spanner_v1.proto.ExecuteSqlRequest.QueryOptions`
or :class:`dict`
:param query_options: (Optional) Options that are provided for query plan stability.
:rtype: int
Expand Down

0 comments on commit d504e8b

Please sign in to comment.