Skip to content

Conversation

@wgtmac
Copy link
Member

@wgtmac wgtmac commented Jan 6, 2026

No description provided.


Result<FieldIdsSetRef> ReferenceVisitor::Predicate(
[[maybe_unused]] const std::shared_ptr<UnboundPredicate>& pred) {
return referenced_field_ids_;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we error on unbound predicates and unbound aggregates? ISTM that an expression should be either fully bound or fully unbound, and that mixing the two is not possible, and visiting an unbound expression would be meaningless.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just took a look at the Java's impl of ReferenceVisitor and IsBoundVisitor, it appears that mixed bound and unbound predicate should error, I created PR #503 to fix our IsBoundVisitor logic, please correct me if f I'm wrong.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants