Skip to content

[C++] Add SDK examples (JSON, proto, Arrow Flight)#522

Draft
zlata-stefanovic-db wants to merge 1 commit into
cpp-comprehensive-testsfrom
cpp-examples
Draft

[C++] Add SDK examples (JSON, proto, Arrow Flight)#522
zlata-stefanovic-db wants to merge 1 commit into
cpp-comprehensive-testsfrom
cpp-examples

Conversation

@zlata-stefanovic-db

@zlata-stefanovic-db zlata-stefanovic-db commented Jul 15, 2026

Copy link
Copy Markdown
Contributor

Summary

Adds runnable examples for the C++ SDK covering all three record formats.

Stacked on #499 ([C++] Expand test coverage). Base branch is cpp-comprehensive-tests; this PR's diff is examples only. Merge #499 first, then this retargets to main.

Examples (cpp/examples/)

Runnable ingestion examples with their own CMake build:

  • JSONjson/single.cpp, json/batch.cpp
  • Protoproto/single.cpp, proto/batch.cpp (+ orders.proto)
  • Arrow Flight (Beta)arrow/arrow_ingest.cpp

Each format directory has its own README.md, plus a top-level examples/README.md overview and an examples/CMakeLists.txt.

All examples follow the SDK's cardinal ingestion pattern — queue records in a loop, flush() once at the end — and never wait per record.

Testing

  • Examples build via cpp/examples/CMakeLists.txt.

Draft: opening for early visibility / CI feedback while the examples are finalized.

Add JSON, dynamic-proto, and Arrow Flight (Beta) ingestion examples
under cpp/examples/, mirroring the Rust SDK example layout, each with a
README. Wired into CMake behind ZEROBUS_BUILD_EXAMPLES; the Arrow
example is gated on find_package(Arrow).

Signed-off-by: Zlata Stefanovic <zlata.stefanovic@databricks.com>
@zlata-stefanovic-db zlata-stefanovic-db self-assigned this Jul 15, 2026
@zlata-stefanovic-db zlata-stefanovic-db changed the base branch from main to cpp-comprehensive-tests July 15, 2026 11:55
@zlata-stefanovic-db zlata-stefanovic-db changed the title [C++] Add SDK examples, expanded test suite, and ThreadSanitizer CI [C++] Add SDK examples (JSON, proto, Arrow Flight) Jul 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant