aliyun-tablestore-go-sdk icon indicating copy to clipboard operation
aliyun-tablestore-go-sdk copied to clipboard

对ColumnValue的处理不符合plainbuff的定义规范

Open shaoxp opened this issue 4 years ago • 1 comments

https://github.com/aliyun/aliyun-tablestore-go-sdk/blob/984e92d5fc989547da59c033723cb45ce01730fd/tablestore/plain_buffer.go#L308

这里面的读,对与int/double等类型,没有读/跳过 len字段. 我查这个repo中,对于ColumnValue写,也奇怪的多写len+type+value的值,和读根本不对应..

不知道是以code中这种非对称的写法是对的,还是按照plainbuffer的规范定义操作是对的.唉.

shaoxp avatar Aug 11 '21 03:08 shaoxp

需要以code为准,这里会省4个字节,但是引入很多分支.

shaoxp avatar Aug 11 '21 09:08 shaoxp