This is an automated email from the ASF dual-hosted git repository.

haonan pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/iotdb-client-go.git


The following commit(s) were added to refs/heads/main by this push:
     new 223b9e0  fix error of insertAlignedTablets (#108)
223b9e0 is described below

commit 223b9e0a7ad47e8dbb422b2623be9327a9fa20cb
Author: Beyyes <[email protected]>
AuthorDate: Mon Nov 4 16:32:15 2024 +0800

    fix error of insertAlignedTablets (#108)
---
 client/session.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/client/session.go b/client/session.go
index 288faf0..2859d8c 100644
--- a/client/session.go
+++ b/client/session.go
@@ -884,7 +884,7 @@ func (s *Session) genInsertTabletsReq(tablets []*Tablet, 
isAligned bool) (*rpc.T
                valuesList[index] = values
                timestampsList[index] = tablet.GetTimestampBytes()
                typesList[index] = tablet.getDataTypes()
-               sizeList[index] = int32(tablet.maxRowNumber)
+               sizeList[index] = int32(tablet.RowSize)
        }
        request := rpc.TSInsertTabletsReq{
                SessionId:        s.sessionId,

Reply via email to