diff --git a/runtime/vam/op/over.go b/runtime/vam/op/over.go index d4d15f1283..cb5c9291b0 100644 --- a/runtime/vam/op/over.go +++ b/runtime/vam/op/over.go @@ -69,6 +69,8 @@ func (o *Over) flatten(vec vector.Any, slot uint32) vector.Any { switch vec := vector.Under(vec).(type) { case *vector.Dynamic: return o.flatten(vec.Values[vec.Tags[slot]], vec.TagMap.Forward[slot]) + case *vector.View: + return o.flatten(vec.Any, vec.Index[slot]) case *vector.Array: return flattenArrayOrSet(vec.Values, vec.Offsets, slot) case *vector.Set: diff --git a/runtime/sam/op/traverse/ztests/nested-over-tail-head.yaml b/runtime/ztests/op/over-nested-tail-head.yaml similarity index 90% rename from runtime/sam/op/traverse/ztests/nested-over-tail-head.yaml rename to runtime/ztests/op/over-nested-tail-head.yaml index a1c6c55df3..f0283ed960 100644 --- a/runtime/sam/op/traverse/ztests/nested-over-tail-head.yaml +++ b/runtime/ztests/op/over-nested-tail-head.yaml @@ -5,6 +5,8 @@ zed: | ) ) +vector: true + input: | [[1,2,3],[4,5,6]] [[7,8,9]] diff --git a/runtime/sam/op/traverse/ztests/nested-where-head.yaml b/runtime/ztests/op/over-nested-where-head.yaml similarity index 91% rename from runtime/sam/op/traverse/ztests/nested-where-head.yaml rename to runtime/ztests/op/over-nested-where-head.yaml index b9747633ff..3604abd276 100644 --- a/runtime/sam/op/traverse/ztests/nested-where-head.yaml +++ b/runtime/ztests/op/over-nested-where-head.yaml @@ -5,6 +5,8 @@ zed: | ) ) +vector: true + input: | [[1,2],[3,4]] [[4,3],[2,1]] diff --git a/runtime/sam/op/traverse/ztests/nested-where.yaml b/runtime/ztests/op/over-nested-where.yaml similarity index 91% rename from runtime/sam/op/traverse/ztests/nested-where.yaml rename to runtime/ztests/op/over-nested-where.yaml index d6279cb568..31a12458c0 100644 --- a/runtime/sam/op/traverse/ztests/nested-where.yaml +++ b/runtime/ztests/op/over-nested-where.yaml @@ -5,6 +5,8 @@ zed: | ) ) +vector: true + input: | [[1,2],[3,4]] [[4,3],[2,1]]