steampipe-plugin-sdk icon indicating copy to clipboard operation
steampipe-plugin-sdk copied to clipboard

[]byte type passed to column error: failed with panic reflect: call of reflect.Value.IsNil on array Value

Open e-gineer opened this issue 2 years ago • 0 comments

I have tried a column defined as:

{Name: "hash", Type: proto.ColumnType_JSON, Description: "The commit hash."},
//{Name: "hash", Type: proto.ColumnType_STRING, Transform: transform.FromField("Hash").Transform(byteArrayToString), Description: "The commit hash."},

The type of Hash is []byte per https://pkg.go.dev/github.com/go-git/go-git/[email protected]/plumbing#Hash

Every time I get this error:

Error: failed to populate column 'hash': rpc error: code = Internal desc = transform FieldValueGo failed with panic reflect: call of reflect.Value.IsNil on array Value (SQLSTATE HV000)

e-gineer avatar May 06 '22 18:05 e-gineer