create CollectionAggregate for the legacy ARRAY.Comparator.any() method
(
cls, expr: _ColumnExpressionArgument[_T]
)
| 4051 | |
| 4052 | @classmethod |
| 4053 | def _create_any( |
| 4054 | cls, expr: _ColumnExpressionArgument[_T] |
| 4055 | ) -> CollectionAggregate[bool]: |
| 4056 | """create CollectionAggregate for the legacy |
| 4057 | ARRAY.Comparator.any() method""" |
| 4058 | col_expr: ColumnElement[_T] = coercions.expect( |
| 4059 | roles.ExpressionElementRole, |
| 4060 | expr, |
| 4061 | ) |
| 4062 | col_expr = col_expr.self_group() |
| 4063 | return CollectionAggregate( |
| 4064 | col_expr, |
| 4065 | operator=operators.any_op, |
| 4066 | type_=type_api.BOOLEANTYPE, |
| 4067 | ) |
| 4068 | |
| 4069 | @classmethod |
| 4070 | def _create_all( |
no test coverage detected