File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 1919
2020#include " iceberg/expression/binder.h"
2121
22+ #include " iceberg/result.h"
2223#include " iceberg/util/macros.h"
2324
2425namespace iceberg {
@@ -151,7 +152,7 @@ Result<FieldIdsSetRef> ReferenceVisitor::Predicate(
151152
152153Result<FieldIdsSetRef> ReferenceVisitor::Predicate (
153154 [[maybe_unused]] const std::shared_ptr<UnboundPredicate>& pred) {
154- return referenced_field_ids_ ;
155+ return InvalidExpression ( " Cannot get referenced field IDs from unbound predicate " ) ;
155156}
156157
157158Result<FieldIdsSetRef> ReferenceVisitor::Aggregate (
@@ -162,7 +163,7 @@ Result<FieldIdsSetRef> ReferenceVisitor::Aggregate(
162163
163164Result<FieldIdsSetRef> ReferenceVisitor::Aggregate (
164165 [[maybe_unused]] const std::shared_ptr<UnboundAggregate>& aggregate) {
165- return referenced_field_ids_ ;
166+ return InvalidExpression ( " Cannot get referenced field IDs from unbound aggregate " ) ;
166167}
167168
168169} // namespace iceberg
You can’t perform that action at this time.
0 commit comments