Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
HTHou committed Jul 16, 2024
1 parent a102ce5 commit 5fcd843
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions example/session_example.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,6 @@ func main() {
}
defer session.Close()

fastInsertRecords()

setStorageGroup("root.ln1")
deleteStorageGroup("root.ln1")

Expand Down Expand Up @@ -383,26 +381,6 @@ func insertAlignedRecord() {
fmt.Println()
}

func fastInsertRecords() {
var (
deviceIds = []string{"root.fast.d1", "root.fast.d2"}
dataTypes = [][]client.TSDataType{{client.INT32, client.INT32}, {client.INT32, client.INT32}}
values = [][]interface{}{{int32(120), int32(121)}, {int32(130), int32(131)}}
timestamp = []int64{12, 13}
)
checkError(session.FastInsertRecords(deviceIds, dataTypes, values, timestamp))
sessionDataSet, err := session.ExecuteStatement("show devices")
if err == nil {
printDataSet0(sessionDataSet)
sessionDataSet.Close()
} else {
log.Println(err)
}

deleteTimeseries("root.fast.**")
fmt.Println()
}

func insertRecords() {
var (
deviceId = []string{"root.sg1.dev1"}
Expand Down

0 comments on commit 5fcd843

Please sign in to comment.