Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion sio/csupio/vectorreader.go
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ func (v *VectorReader) ConcurrentPull(done bool, n int) (vector.Any, error) {
func pruneObject(sctx *super.Context, mf *metafilter, o *csup.Object) bool {
vals := o.ProjectMetadata(sctx, mf.projection)
for _, val := range vals {
if mf.filter.Eval(val).Ptr().AsBool() {
if !mf.filter.Eval(val).Equal(super.False) {
return false
}
}
Expand Down
12 changes: 12 additions & 0 deletions sio/csupio/ztests/metadata.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
script: |
super -f csup -o t.csup -
super -s -c 'from t.csup | where x.y==1'
inputs:
- name: stdin
data: &stdin |
{x?:{y:1}}

outputs:
- name: stdout
data: *stdin
2 changes: 1 addition & 1 deletion sio/parquetio/vectorreader.go
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ func (p *VectorReader) ConcurrentPull(done bool, id int) (vector.Any, error) {
if len(p.metadataFilters) > 0 {
rgMetadata := pr.MetaData().RowGroup(rowGroup)
val := buildMetadataValue(p.sctx, rgMetadata, p.metadataColIndexes, p.colIndexToField)
if !p.metadataFilters[id].Eval(val).Ptr().AsBool() {
if p.metadataFilters[id].Eval(val).Equal(super.False) {
continue
}
}
Expand Down
Loading