create CollectionAggregate for the legacy ARRAY.Comparator.any() method
(
cls, expr: _ColumnExpressionArgument[_T]
)
| 3766 | |
| 3767 | @classmethod |
| 3768 | def _create_any( |
| 3769 | cls, expr: _ColumnExpressionArgument[_T] |
| 3770 | ) -> CollectionAggregate[bool]: |
| 3771 | """create CollectionAggregate for the legacy |
| 3772 | ARRAY.Comparator.any() method""" |
| 3773 | col_expr: ColumnElement[_T] = coercions.expect( |
| 3774 | roles.ExpressionElementRole, |
| 3775 | expr, |
| 3776 | ) |
| 3777 | col_expr = col_expr.self_group() |
| 3778 | return CollectionAggregate( |
| 3779 | col_expr, |
| 3780 | operator=operators.any_op, |
| 3781 | type_=type_api.BOOLEANTYPE, |
| 3782 | ) |
| 3783 | |
| 3784 | @classmethod |
| 3785 | def _create_all( |
no test coverage detected