steampipe-plugin-sdk
steampipe-plugin-sdk copied to clipboard
[]byte type passed to column error: failed with panic reflect: call of reflect.Value.IsNil on array Value
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)