iotdb-client-go icon indicating copy to clipboard operation
iotdb-client-go copied to clipboard

cannot query table data without a specific column type

Open LinuxSuRen opened this issue 8 months ago • 2 comments

I got the following errors:

dest[0] types must be *[]byte or *string

when I try to fetch all the data via:

cols := make([]any, 3)
sd.Scan(cols...)

LinuxSuRen avatar Mar 26 '25 11:03 LinuxSuRen

It appears that the data is always being converted based on its type. I’m curious to know if there’s a way to have it return the raw value directly instead.

https://github.com/apache/iotdb-client-go/blob/033fcb8afbc0498209ea2a3667c1ce684c4e1f7a/client/rpcdataset.go#L284

LinuxSuRen avatar Mar 26 '25 11:03 LinuxSuRen

By the way, what I'm doing is letting atest to support iotDB. Of course, it will be an extension of atest. Hopefully, users can operate iotDB via web UI.

LinuxSuRen avatar Mar 27 '25 02:03 LinuxSuRen