[Go] Add Avro record format (avro build tag) - #831
Draft
irinatomic-db wants to merge 5 commits into
Draft
Conversation
irinatomic-db
force-pushed
the
irina-tomic_data/avro/go
branch
from
September 3, 2026 17:48
a1d6f6e to
991cc7c
Compare
This was referenced Sep 3, 2026
Signed-off-by: Irina Tomic <irina.tomic@databricks.com>
Signed-off-by: Irina Tomic <irina.tomic@databricks.com>
Add object-based Avro record ingestion with automatic JSON encoding by the Rust core. Rename pre-encoded bytes methods (AvroRecord* → AvroBytes*) for API clarity. New methods: - IngestAvroRecordOffset(record any) - marshal object to JSON, encode via FFI - IngestAvroRecordsOffset(records []any) - batch object ingestion - IngestAvroRecordNowait(record any) - fire-and-forget object - IngestAvroRecordsNowait(records []any) - batch fire-and-forget Renamed methods: - IngestAvroRecordOffset → IngestAvroBytesOffset - IngestAvroRecordsOffset → IngestAvroBytesBatchOffset - IngestAvroRecordNowait → IngestAvroBytesNowait - IngestAvroRecordsNowait → IngestAvroBytesBatchNowait Co-authored-by: Isaac <no-reply@databricks.com> Signed-off-by: Irina Tomic <irina.tomic@databricks.com>
irinatomic-db
force-pushed
the
irina-tomic_data/avro/go
branch
from
September 7, 2026 10:24
991cc7c to
8cddcca
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PR stack
What changes are proposed in this pull request?
Adds the Avro record format to the Go (cgo) SDK, behind the
//go:build avrobuild tag. Default builds are unchanged. Ephemeral streams only; server support is pending.Declare the writer schema at stream creation with
CreateAvroStream(...), then ingest either form:IngestAvroBytesOffset([]byte)/IngestAvroBytesBatchOffset([][]byte)(+Nowait).IngestAvroRecordOffset(any)/IngestAvroRecordsOffset([]any)(+Nowait) -json.Marshaled and encoded by the shared Rust core against the writer schema. Go carries no Avro encoder.How is this tested?