-
Notifications
You must be signed in to change notification settings - Fork 114
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add blob support #211
Add blob support #211
Conversation
@@ -111,6 +112,7 @@ message TsCell { | |||
optional sint64 timestamp_value = 3; | |||
optional bool boolean_value = 4; | |||
optional double double_value = 5; | |||
optional bytes blob_value = 6; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I did talk to @lukebakken a while back about putting the blob data into the varchar column to avoid an extra record field per row, did that have problems?
@@ -111,6 +112,7 @@ message TsCell { | |||
optional sint64 timestamp_value = 3; | |||
optional bool boolean_value = 4; | |||
optional double double_value = 5; | |||
optional bytes blob_value = 6; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will definitely need an upgrade/downgrade test, with the added flag with queries, we might be in a position where the clients can't handle upgraded messages from TS because of this change and TS can't handle upgraded client messages because of the new flag on the query message.
That's a typical situation with the clients. I wasn't aware of the discussion to overload the existing varchar field, will investigate. Sent from my iPad
|
@macintux ah damn, I thought I'd sent you the email chain, will resend. |
You did send it to me, just forgot about it. One significant downside to removing the blob option in PB: /cc @alexmoore who's starting the client side of all this |
My initial plan was to have a new enum value for blob like there is here and if the type is varchar or blob, pull the value from the varchar field of the |
Gotcha, will look again, thanks. |
Reviewing the code, I've realized I completely missed making important changes to |
It could be because it uses the ttb encoder which doesn't require any changes because it just runs |
https://github.com/basho/riak_pb/blob/develop/src/riak_pb_ts_codec.erl#L55 The response wouldn't change much for a TTB message though, it'd just now have
|
@macintux re-using |
* Stuff `blob` values into the `varchar` field in `tscell`. * Add `blob` to column type handling (it'll still be in column headers).
+1 7e6260d |
Add blob support Reviewed-by: andytill
Ok, Bors has left the building. YOLOmerging |
See basho/riak_kv#1540 for details.