Skip to content

Add array wrapper proto types for non-scalar batch measurements#161

Draft
rfriedma wants to merge 2 commits intomainfrom
users/rfriedma/results-perf-batch-nonscalar
Draft

Add array wrapper proto types for non-scalar batch measurements#161
rfriedma wants to merge 2 commits intomainfrom
users/rfriedma/results-perf-batch-nonscalar

Conversation

@rfriedma
Copy link

What Changed?

Add three new array wrapper proto types and extend PublishMeasurementBatchRequest to support non-scalar value types in batch measurement publishing.

Implementation Details

New proto files:

  • vector_wrappers.protoVectorArrayValue (repeated Vector)
  • digital_waveform_wrappers.protoDigitalWaveformArrayValue (repeated DigitalWaveform)
  • xydata_wrappers.protoDoubleXYDataArrayValue (repeated DoubleXYData)

Extended PublishMeasurementBatchRequest:
The oneof values block now supports 9 types (previously only scalar):

  • scalar_values (existing)
  • vector_values, double_analog_waveform_values, x_y_data_values, i16_analog_waveform_values, double_complex_waveform_values, i16_complex_waveform_values, double_spectrum_values, digital_waveform_values

This enables the result processor to batch non-scalar measurements (vectors, waveforms, XY data, spectra, digital waveforms) into a single gRPC round-trip instead of one per measurement.

Testing Done

Proto compilation verified in downstream datastore-service build.

Ryan Friedman and others added 2 commits March 19, 2026 09:20
- Add vector_wrappers.proto (VectorArrayValue)
- Add digital_waveform_wrappers.proto (DigitalWaveformArrayValue)
- Add xydata_wrappers.proto (DoubleXYDataArrayValue)
- Extend PublishMeasurementBatchRequest with 8 non-scalar value types
  (vector, double/i16 analog waveform, XY data, double/i16 complex
  waveform, double spectrum, digital waveform)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add to existing waveform_wrappers.proto.

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.

3 participants