| 1779 | bool isOnlyWindowFunction() const override { return true; } |
| 1780 | |
| 1781 | [[noreturn]] void fail() const |
| 1782 | { |
| 1783 | throw Exception(ErrorCodes::BAD_ARGUMENTS, |
| 1784 | "The function '{}' can only be used as a window function, not as an aggregate function", |
| 1785 | getName()); |
| 1786 | } |
| 1787 | |
| 1788 | String getName() const override { return name; } |
| 1789 | void create(AggregateDataPtr __restrict) const override {} |