Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switch vizierapi over to use bytes instead of string for StringColumn
Summary: Fixes #552: GRPC C clients reject parsing string values from the serialized format if the string is not valid UTF-8. The string and bytes pb types both serialize to bytes over the wire, so we didn't detect this issue until someone requested http body data that contained a bytes stream. Fortunately the fix isn't difficult because string and bytes share the same wire format. Old clients will remain backwards compatible with the current changes. Also internally we already treat this data as bytes so conceptually not a large switch. Test Plan: 1. Old client + new vizier still works as expected when all strings are utf-8 compatible. 2. New client + old vizier now avoids the issue highlighted in #552 when Pixie sends bytes data 3. New client + new vizier also avoids the issue and works fine. Reviewers: jamesbartlett, zasgar, michelle, vihang, nlanam Reviewed By: vihang, nlanam Subscribers: nlanam Signed-off-by: Phillip Kuznetsov <[email protected]> Differential Revision: https://phab.corp.pixielabs.ai/D12069 GitOrigin-RevId: 73b4698d764af8a2f3834ae635a195cfe9a18cb6
- Loading branch information