diff --git a/google/cloud/spanner_v1/database.py b/google/cloud/spanner_v1/database.py index c8c3b92edc..fab80b1da6 100644 --- a/google/cloud/spanner_v1/database.py +++ b/google/cloud/spanner_v1/database.py @@ -1416,11 +1416,6 @@ def generate_query_batches( (Optional) desired size for each partition generated. The service uses this as a hint, the actual partition size may differ. - :type partition_size_bytes: int - :param partition_size_bytes: - (Optional) desired size for each partition generated. The service - uses this as a hint, the actual partition size may differ. - :type max_partitions: int :param max_partitions: (Optional) desired maximum number of partitions generated. The diff --git a/google/cloud/spanner_v1/streamed.py b/google/cloud/spanner_v1/streamed.py index ac8fc71ce6..862d0eb205 100644 --- a/google/cloud/spanner_v1/streamed.py +++ b/google/cloud/spanner_v1/streamed.py @@ -205,7 +205,7 @@ def to_dict_list(self): { column: value for column, value in zip( - [column.name for column in self._metadata.row_type.fields], row + [column.name for column in self.fields], row ) } )