You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 12, 2025. It is now read-only.
In the V1 client, writer was importable as shown below, which allowed for creation of a AppendRowsStream row stream objects. However, after migrating from V2 it seems writer is no longer available which is a breaking change that is not covered in the migration guide. Could you please let me know what class in V2 replaces AppendRowsStream from V1?
And here's the context in which it's used in my codebase:
defsetup_rows_stream(self):
# Create a template with fields needed for the first request.request_template=AppendRowsRequest()
# The initial request must contain the stream name.request_template.write_stream=self.write_stream.name# So that BigQuery knows how to parse the serialized_rows, generate a# protocol buffer representation of your message descriptor.proto_schema=ProtoSchema()
proto_descriptor=descriptor_pb2.DescriptorProto()
self.proto_obj.DESCRIPTOR.CopyToProto(proto_descriptor)
proto_schema.proto_descriptor=proto_descriptorproto_data=AppendRowsRequest.ProtoData()
proto_data.writer_schema=proto_schemarequest_template.proto_rows=proto_dataappend_rows_stream=writer.AppendRowsStream(
self.write_client, request_template
)
returnappend_rows_stream
In the V1 client,
writerwas importable as shown below, which allowed for creation of aAppendRowsStreamrow stream objects. However, after migrating from V2 it seemswriteris no longer available which is a breaking change that is not covered in the migration guide. Could you please let me know what class in V2 replacesAppendRowsStreamfrom V1?Legacy import:
New import (fails):
And here's the context in which it's used in my codebase:
Thank you