diff --git a/kusto/data/value/dynamic.go b/kusto/data/value/dynamic.go index b4a27ab1..e78ea389 100644 --- a/kusto/data/value/dynamic.go +++ b/kusto/data/value/dynamic.go @@ -99,6 +99,9 @@ func (d Dynamic) Convert(v reflect.Value) error { if v.Type().Kind() != reflect.Ptr { v.Set(valueToSet) } else { + if v.IsZero() { + v.Set(reflect.New(valueToSet.Type())) + } v.Elem().Set(valueToSet) } return nil