Open nsaje opened 1 month ago
Would it be enough to alter MongoColumnHandle.getQualifiedName
to prefix dereference names with a $
sign if this.dbRefField==true
?
If so I'd be happy to prepare a PR.
I don't remember the context.
@krvikash Do you remember why we disallowed it?
@krvikash ping - would really like to get to the bottom of this before I dive into preparing a PR, thanks!
I don't think it's currently possible to efficiently filter by a DBRef field.
While dereference pushdown is supported it is explicitly blocked for DBRef fields.
Why is it blocked? Is the only missing piece giving special treatment to filter transformation? AFAICT a filter like
mycollection.id = 'abc'
should get translated into{"mycollection.$id": "abc"}
and it should work.cc @ebyhr @Praveen2112