| 63 | } |
| 64 | |
| 65 | ColumnPtr executeImpl(const ColumnsWithTypeAndName & arguments, const DataTypePtr &, size_t input_rows_count) const override |
| 66 | { |
| 67 | const auto & column = arguments[0]; |
| 68 | |
| 69 | if (const auto * col_str = checkAndGetColumn<ColumnString>(column.column.get())) |
| 70 | { |
| 71 | return executeString(col_str, input_rows_count); |
| 72 | } |
| 73 | else if (const auto * col_fixed_str = checkAndGetColumn<ColumnFixedString>(column.column.get())) |
| 74 | { |
| 75 | return executeFixedString(col_fixed_str, input_rows_count); |
| 76 | } |
| 77 | else |
| 78 | { |
| 79 | throw Exception(ErrorCodes::ILLEGAL_TYPE_OF_ARGUMENT, |
| 80 | "Cannot apply function {} to column {}, expected String or FixedString", |
| 81 | getName(), column.column->getName()); |
| 82 | } |
| 83 | } |
| 84 | |
| 85 | bool isSuitableForShortCircuitArgumentsExecution(const DataTypesWithConstInfo & /*arguments*/) const override |
| 86 | { |
nothing calls this directly
no test coverage detected