Skip to content
This repository was archived by the owner on Feb 23, 2026. It is now read-only.
This repository was archived by the owner on Feb 23, 2026. It is now read-only.

64bit fields no longer support None values in v1.19.6 #271

Closed

Description

@larkee

The Cloud Spanner emulator tests began failing yesterday with the following error:

tests/system/test_session_api.py:2150: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
google/cloud/spanner_v1/database.py:1127: in generate_query_batches
    partitions = self._get_snapshot().partition_query(
google/cloud/spanner_v1/snapshot.py:525: in partition_query
    partition_options = PartitionOptions(
.nox/system-3-8/lib/python3.8/site-packages/proto/message.py:516: in __init__
    pb_value = marshal.to_proto(pb_type, value)
.nox/system-3-8/lib/python3.8/site-packages/proto/marshal/marshal.py:211: in to_proto
    pb_value = rule.to_proto(value)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <proto.marshal.rules.stringy_numbers.Int64Rule object at 0x7fd4dcc59940>
value = None

    def to_proto(self, value):
>       return self._python_type(value)
E       TypeError: int() argument must be a string, a bytes-like object or a number, not 'NoneType'

.nox/system-3-8/lib/python3.8/site-packages/proto/marshal/rules/stringy_numbers.py:34: TypeError

I have confirmed that this isn't an issue when using v1.19.5.

Activity

  1. added
    priority: p2Moderately-important priority. Fix may not be included in next release.
    type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.
    on Oct 26, 2021
  2. tseaver commented on Oct 27, 2021

    @tseaver
    Contributor

    Regression introduced in #267.

  3. self-assigned this
    on Oct 27, 2021
  4. added 2 commits that reference this issue on Oct 27, 2021
    5e593c6
    7b5c1bd
  5. added a commit that references this issue on Oct 27, 2021
    a8991d7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

priority: p2Moderately-important priority. Fix may not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions