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

TableStore SDK for Golang

Results 25 aliyun-tablestore-go-sdk issues
Sort by recently updated
recently updated
newest added

As mentioned by https://github.com/aliyun/aliyun-tablestore-go-sdk/issues/86, It's failed to get PrimaryKey information after exec BatchWriteRow. This pr try to solve this problem.

Co-authored-by: yique.wc

请问官方demo使用多元索引并发导出的时候先调用ComputeSplits方法获得并行度,这个方法返回的是1,这样还是一个并行度导出数据的。

- go版本: `1.17` - sdk版本: `v5.0.6` - 代码如下 ```go batchWriteReq := &tablestore.BatchWriteRowRequest{} for _, data := range datas { putRowChange := new(tablestore.PutRowChange) putRowChange.TableName = table_im_user_pool putPk := new(tablestore.PrimaryKey) putPk.AddPrimaryKeyColumn("pk1", "xxxx")...

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的规范定义操作是对的.唉.

https://github.com/aliyun/aliyun-tablestore-go-sdk/blob/984e92d5fc989547da59c033723cb45ce01730fd/tablestore/plain_buffer.go#L151 写入cellname的时候,按规范应该要写入类型string.这里没有写入,难道服务端做了同样的忽略?不然应该读不到正确的cellname啊

https://github.com/aliyun/aliyun-tablestore-go-sdk/blob/984e92d5fc989547da59c033723cb45ce01730fd/tablestore/plain_buffer.go#L209 我在参考这个实现rust,发现这个函数的逻辑实现不完整. 1. 根据plainbuffer的定义,https://help.aliyun.com/document_detail/50600.html?spm=a2c4g.11186623.6.828.d1c27c55Bc5la6  PK也可能不给,这里一定写出去了TAG_PK 2. 没有处理tag_delete_marker

` panic: runtime error: invalid memory address or nil pointer dereference [signal 0xc0000005 code=0x0 addr=0x0 pc=0x7509e5] goroutine 1 [running]: github.com/aliyun/aliyun-tablestore-go-sdk/tablestore.(*TableStoreClient).CreateTable(0xc000122000, 0xc0000cbeb0, 0x4, 0x4, 0x5) D:/GoLang/GoWork/src/github.com/aliyun/aliyun-tablestore-go-sdk/tablestore/api.go:348 +0x965 main.CreateTable(0xc000122000, 0x31, 0x84e146) D:/GoLang/GoWork/src/local_no_vcs/OTSTest202103040238/main.go:42...

The dependency [`satori/go.uuid`](https://github.com/satori/go.uuid) is no longer maintained https://github.com/satori/go.uuid/issues/84 and it's current pinning on [`v1.2.0`](https://github.com/aliyun/aliyun-tablestore-go-sdk/blob/v5.0.5/go.mod#L11) suffers from this vulnerability https://github.com/satori/go.uuid/issues/73. Suggested fixes include either pinning the latest commit on the master...

绕过 web 控制台,海外节点操作失败率太高的问题。