mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-13 09:52:38 +00:00
Merge pull request #72894 from rschu1ze/docs-links
Docs: Fix data type links
This commit is contained in:
commit
71117fbbf3
@ -36,8 +36,8 @@ Alias:
|
|||||||
|
|
||||||
**Arguments**
|
**Arguments**
|
||||||
|
|
||||||
- `haystack` — String in which the search is performed. [String](../../sql-reference/syntax.md#syntax-string-literal).
|
- `haystack` — String in which the search is performed. [String](../data-types/string.md) or [Enum](../data-types/string.md).
|
||||||
- `needle` — Substring to be searched. [String](../../sql-reference/syntax.md#syntax-string-literal).
|
- `needle` — Substring to be searched. [String](../data-types/string.md).
|
||||||
- `start_pos` – Position (1-based) in `haystack` at which the search starts. [UInt](../data-types/int-uint.md). Optional.
|
- `start_pos` – Position (1-based) in `haystack` at which the search starts. [UInt](../data-types/int-uint.md). Optional.
|
||||||
|
|
||||||
**Returned value**
|
**Returned value**
|
||||||
@ -203,7 +203,7 @@ multiSearchAllPositions(haystack, [needle1, needle2, ..., needleN])
|
|||||||
|
|
||||||
**Arguments**
|
**Arguments**
|
||||||
|
|
||||||
- `haystack` — String in which the search is performed. [String](../../sql-reference/syntax.md#syntax-string-literal).
|
- `haystack` — String in which the search is performed. [String](../data-types/string.md).
|
||||||
- `needle` — Substrings to be searched. [Array](../data-types/array.md).
|
- `needle` — Substrings to be searched. [Array](../data-types/array.md).
|
||||||
|
|
||||||
**Returned value**
|
**Returned value**
|
||||||
@ -238,7 +238,7 @@ multiSearchAllPositionsCaseInsensitive(haystack, [needle1, needle2, ..., needleN
|
|||||||
|
|
||||||
**Parameters**
|
**Parameters**
|
||||||
|
|
||||||
- `haystack` — String in which the search is performed. [String](../../sql-reference/syntax.md#syntax-string-literal).
|
- `haystack` — String in which the search is performed. [String](../data-types/string.md).
|
||||||
- `needle` — Substrings to be searched. [Array](../data-types/array.md).
|
- `needle` — Substrings to be searched. [Array](../data-types/array.md).
|
||||||
|
|
||||||
**Returned value**
|
**Returned value**
|
||||||
@ -272,7 +272,7 @@ multiSearchAllPositionsUTF8(haystack, [needle1, needle2, ..., needleN])
|
|||||||
|
|
||||||
**Parameters**
|
**Parameters**
|
||||||
|
|
||||||
- `haystack` — UTF-8 encoded string in which the search is performed. [String](../../sql-reference/syntax.md#syntax-string-literal).
|
- `haystack` — UTF-8 encoded string in which the search is performed. [String](../data-types/string.md).
|
||||||
- `needle` — UTF-8 encoded substrings to be searched. [Array](../data-types/array.md).
|
- `needle` — UTF-8 encoded substrings to be searched. [Array](../data-types/array.md).
|
||||||
|
|
||||||
**Returned value**
|
**Returned value**
|
||||||
@ -308,7 +308,7 @@ multiSearchAllPositionsCaseInsensitiveUTF8(haystack, [needle1, needle2, ..., nee
|
|||||||
|
|
||||||
**Parameters**
|
**Parameters**
|
||||||
|
|
||||||
- `haystack` — UTF-8 encoded string in which the search is performed. [String](../../sql-reference/syntax.md#syntax-string-literal).
|
- `haystack` — UTF-8 encoded string in which the search is performed. [String](../data-types/string.md).
|
||||||
- `needle` — UTF-8 encoded substrings to be searched. [Array](../data-types/array.md).
|
- `needle` — UTF-8 encoded substrings to be searched. [Array](../data-types/array.md).
|
||||||
|
|
||||||
**Returned value**
|
**Returned value**
|
||||||
@ -346,7 +346,7 @@ multiSearchFirstPosition(haystack, [needle1, needle2, ..., needleN])
|
|||||||
|
|
||||||
**Parameters**
|
**Parameters**
|
||||||
|
|
||||||
- `haystack` — String in which the search is performed. [String](../../sql-reference/syntax.md#syntax-string-literal).
|
- `haystack` — String in which the search is performed. [String](../data-types/string.md).
|
||||||
- `needle` — Substrings to be searched. [Array](../data-types/array.md).
|
- `needle` — Substrings to be searched. [Array](../data-types/array.md).
|
||||||
|
|
||||||
**Returned value**
|
**Returned value**
|
||||||
@ -380,7 +380,7 @@ multiSearchFirstPositionCaseInsensitive(haystack, [needle1, needle2, ..., needle
|
|||||||
|
|
||||||
**Parameters**
|
**Parameters**
|
||||||
|
|
||||||
- `haystack` — String in which the search is performed. [String](../../sql-reference/syntax.md#syntax-string-literal).
|
- `haystack` — String in which the search is performed. [String](../data-types/string.md).
|
||||||
- `needle` — Array of substrings to be searched. [Array](../data-types/array.md).
|
- `needle` — Array of substrings to be searched. [Array](../data-types/array.md).
|
||||||
|
|
||||||
**Returned value**
|
**Returned value**
|
||||||
@ -414,7 +414,7 @@ multiSearchFirstPositionUTF8(haystack, [needle1, needle2, ..., needleN])
|
|||||||
|
|
||||||
**Parameters**
|
**Parameters**
|
||||||
|
|
||||||
- `haystack` — UTF-8 string in which the search is performed. [String](../../sql-reference/syntax.md#syntax-string-literal).
|
- `haystack` — UTF-8 string in which the search is performed. [String](../data-types/string.md).
|
||||||
- `needle` — Array of UTF-8 substrings to be searched. [Array](../data-types/array.md).
|
- `needle` — Array of UTF-8 substrings to be searched. [Array](../data-types/array.md).
|
||||||
|
|
||||||
**Returned value**
|
**Returned value**
|
||||||
@ -450,7 +450,7 @@ multiSearchFirstPositionCaseInsensitiveUTF8(haystack, [needle1, needle2, ..., ne
|
|||||||
|
|
||||||
**Parameters**
|
**Parameters**
|
||||||
|
|
||||||
- `haystack` — UTF-8 string in which the search is performed. [String](../../sql-reference/syntax.md#syntax-string-literal).
|
- `haystack` — UTF-8 string in which the search is performed. [String](../data-types/string.md).
|
||||||
- `needle` — Array of UTF-8 substrings to be searched. [Array](../data-types/array.md)
|
- `needle` — Array of UTF-8 substrings to be searched. [Array](../data-types/array.md)
|
||||||
|
|
||||||
**Returned value**
|
**Returned value**
|
||||||
@ -487,7 +487,7 @@ multiSearchFirstIndex(haystack, [needle1, needle2, ..., needleN])
|
|||||||
```
|
```
|
||||||
**Parameters**
|
**Parameters**
|
||||||
|
|
||||||
- `haystack` — String in which the search is performed. [String](../../sql-reference/syntax.md#syntax-string-literal).
|
- `haystack` — String in which the search is performed. [String](../data-types/string.md).
|
||||||
- `needle` — Substrings to be searched. [Array](../data-types/array.md).
|
- `needle` — Substrings to be searched. [Array](../data-types/array.md).
|
||||||
|
|
||||||
**Returned value**
|
**Returned value**
|
||||||
@ -520,7 +520,7 @@ multiSearchFirstIndexCaseInsensitive(haystack, [needle1, needle2, ..., needleN])
|
|||||||
|
|
||||||
**Parameters**
|
**Parameters**
|
||||||
|
|
||||||
- `haystack` — String in which the search is performed. [String](../../sql-reference/syntax.md#syntax-string-literal).
|
- `haystack` — String in which the search is performed. [String](../data-types/string.md).
|
||||||
- `needle` — Substrings to be searched. [Array](../data-types/array.md).
|
- `needle` — Substrings to be searched. [Array](../data-types/array.md).
|
||||||
|
|
||||||
**Returned value**
|
**Returned value**
|
||||||
@ -553,7 +553,7 @@ multiSearchFirstIndexUTF8(haystack, [needle1, needle2, ..., needleN])
|
|||||||
|
|
||||||
**Parameters**
|
**Parameters**
|
||||||
|
|
||||||
- `haystack` — UTF-8 string in which the search is performed. [String](../../sql-reference/syntax.md#syntax-string-literal).
|
- `haystack` — UTF-8 string in which the search is performed. [String](../data-types/string.md).
|
||||||
- `needle` — Array of UTF-8 substrings to be searched. [Array](../data-types/array.md)
|
- `needle` — Array of UTF-8 substrings to be searched. [Array](../data-types/array.md)
|
||||||
|
|
||||||
**Returned value**
|
**Returned value**
|
||||||
@ -588,7 +588,7 @@ multiSearchFirstIndexCaseInsensitiveUTF8(haystack, [needle1, needle2, ..., needl
|
|||||||
|
|
||||||
**Parameters**
|
**Parameters**
|
||||||
|
|
||||||
- `haystack` — UTF-8 string in which the search is performed. [String](../../sql-reference/syntax.md#syntax-string-literal).
|
- `haystack` — UTF-8 string in which the search is performed. [String](../data-types/string.md).
|
||||||
- `needle` — Array of UTF-8 substrings to be searched. [Array](../data-types/array.md).
|
- `needle` — Array of UTF-8 substrings to be searched. [Array](../data-types/array.md).
|
||||||
|
|
||||||
**Returned value**
|
**Returned value**
|
||||||
@ -625,7 +625,7 @@ multiSearchAny(haystack, [needle1, needle2, ..., needleN])
|
|||||||
|
|
||||||
**Parameters**
|
**Parameters**
|
||||||
|
|
||||||
- `haystack` — String in which the search is performed. [String](../../sql-reference/syntax.md#syntax-string-literal).
|
- `haystack` — String in which the search is performed. [String](../data-types/string.md).
|
||||||
- `needle` — Substrings to be searched. [Array](../data-types/array.md).
|
- `needle` — Substrings to be searched. [Array](../data-types/array.md).
|
||||||
|
|
||||||
**Returned value**
|
**Returned value**
|
||||||
@ -659,7 +659,7 @@ multiSearchAnyCaseInsensitive(haystack, [needle1, needle2, ..., needleN])
|
|||||||
|
|
||||||
**Parameters**
|
**Parameters**
|
||||||
|
|
||||||
- `haystack` — String in which the search is performed. [String](../../sql-reference/syntax.md#syntax-string-literal).
|
- `haystack` — String in which the search is performed. [String](../data-types/string.md).
|
||||||
- `needle` — Substrings to be searched. [Array](../data-types/array.md)
|
- `needle` — Substrings to be searched. [Array](../data-types/array.md)
|
||||||
|
|
||||||
**Returned value**
|
**Returned value**
|
||||||
@ -693,7 +693,7 @@ multiSearchAnyUTF8(haystack, [needle1, needle2, ..., needleN])
|
|||||||
|
|
||||||
**Parameters**
|
**Parameters**
|
||||||
|
|
||||||
- `haystack` — UTF-8 string in which the search is performed. [String](../../sql-reference/syntax.md#syntax-string-literal).
|
- `haystack` — UTF-8 string in which the search is performed. [String](../data-types/string.md).
|
||||||
- `needle` — UTF-8 substrings to be searched. [Array](../data-types/array.md).
|
- `needle` — UTF-8 substrings to be searched. [Array](../data-types/array.md).
|
||||||
|
|
||||||
**Returned value**
|
**Returned value**
|
||||||
@ -729,7 +729,7 @@ multiSearchAnyCaseInsensitiveUTF8(haystack, [needle1, needle2, ..., needleN])
|
|||||||
|
|
||||||
**Parameters**
|
**Parameters**
|
||||||
|
|
||||||
- `haystack` — UTF-8 string in which the search is performed. [String](../../sql-reference/syntax.md#syntax-string-literal).
|
- `haystack` — UTF-8 string in which the search is performed. [String](../data-types/string.md).
|
||||||
- `needle` — UTF-8 substrings to be searched. [Array](../data-types/array.md)
|
- `needle` — UTF-8 substrings to be searched. [Array](../data-types/array.md)
|
||||||
|
|
||||||
**Returned value**
|
**Returned value**
|
||||||
@ -1414,8 +1414,8 @@ countSubstrings(haystack, needle[, start_pos])
|
|||||||
|
|
||||||
**Arguments**
|
**Arguments**
|
||||||
|
|
||||||
- `haystack` — String in which the search is performed. [String](../../sql-reference/syntax.md#syntax-string-literal).
|
- `haystack` — String in which the search is performed. [String](../data-types/string.md) or [Enum](../data-types/enum.md).
|
||||||
- `needle` — Substring to be searched. [String](../../sql-reference/syntax.md#syntax-string-literal).
|
- `needle` — Substring to be searched. [String](../data-types/string.md).
|
||||||
- `start_pos` – Position (1-based) in `haystack` at which the search starts. [UInt](../data-types/int-uint.md). Optional.
|
- `start_pos` – Position (1-based) in `haystack` at which the search starts. [UInt](../data-types/int-uint.md). Optional.
|
||||||
|
|
||||||
**Returned value**
|
**Returned value**
|
||||||
@ -1461,8 +1461,8 @@ countSubstringsCaseInsensitive(haystack, needle[, start_pos])
|
|||||||
|
|
||||||
**Arguments**
|
**Arguments**
|
||||||
|
|
||||||
- `haystack` — String in which the search is performed. [String](../../sql-reference/syntax.md#syntax-string-literal).
|
- `haystack` — String in which the search is performed. [String](../data-types/string.md) or [Enum](../data-types/enum.md).
|
||||||
- `needle` — Substring to be searched. [String](../../sql-reference/syntax.md#syntax-string-literal).
|
- `needle` — Substring to be searched. [String](../data-types/string.md).
|
||||||
- `start_pos` – Position (1-based) in `haystack` at which the search starts. [UInt](../data-types/int-uint.md). Optional.
|
- `start_pos` – Position (1-based) in `haystack` at which the search starts. [UInt](../data-types/int-uint.md). Optional.
|
||||||
|
|
||||||
**Returned value**
|
**Returned value**
|
||||||
@ -1513,8 +1513,8 @@ countSubstringsCaseInsensitiveUTF8(haystack, needle[, start_pos])
|
|||||||
|
|
||||||
**Arguments**
|
**Arguments**
|
||||||
|
|
||||||
- `haystack` — UTF-8 string in which the search is performed. [String](../../sql-reference/syntax.md#syntax-string-literal).
|
- `haystack` — UTF-8 string in which the search is performed. [String](../data-types/string.md) or [Enum](../data-types/enum.md).
|
||||||
- `needle` — Substring to be searched. [String](../../sql-reference/syntax.md#syntax-string-literal).
|
- `needle` — Substring to be searched. [String](../data-types/string.md).
|
||||||
- `start_pos` – Position (1-based) in `haystack` at which the search starts. [UInt](../data-types/int-uint.md). Optional.
|
- `start_pos` – Position (1-based) in `haystack` at which the search starts. [UInt](../data-types/int-uint.md). Optional.
|
||||||
|
|
||||||
**Returned value**
|
**Returned value**
|
||||||
@ -1565,7 +1565,7 @@ countMatches(haystack, pattern)
|
|||||||
|
|
||||||
**Arguments**
|
**Arguments**
|
||||||
|
|
||||||
- `haystack` — The string to search in. [String](../../sql-reference/syntax.md#syntax-string-literal).
|
- `haystack` — The string to search in. [String](../data-types/string.md).
|
||||||
- `pattern` — The regular expression with [re2 regular expression syntax](https://github.com/google/re2/wiki/Syntax). [String](../data-types/string.md).
|
- `pattern` — The regular expression with [re2 regular expression syntax](https://github.com/google/re2/wiki/Syntax). [String](../data-types/string.md).
|
||||||
|
|
||||||
**Returned value**
|
**Returned value**
|
||||||
@ -1610,7 +1610,7 @@ countMatchesCaseInsensitive(haystack, pattern)
|
|||||||
|
|
||||||
**Arguments**
|
**Arguments**
|
||||||
|
|
||||||
- `haystack` — The string to search in. [String](../../sql-reference/syntax.md#syntax-string-literal).
|
- `haystack` — The string to search in. [String](../data-types/string.md).
|
||||||
- `pattern` — The regular expression with [re2 regular expression syntax](https://github.com/google/re2/wiki/Syntax). [String](../data-types/string.md).
|
- `pattern` — The regular expression with [re2 regular expression syntax](https://github.com/google/re2/wiki/Syntax). [String](../data-types/string.md).
|
||||||
|
|
||||||
**Returned value**
|
**Returned value**
|
||||||
@ -1647,8 +1647,8 @@ Alias: `REGEXP_EXTRACT(haystack, pattern[, index])`.
|
|||||||
|
|
||||||
**Arguments**
|
**Arguments**
|
||||||
|
|
||||||
- `haystack` — String, in which regexp pattern will to be matched. [String](../../sql-reference/syntax.md#syntax-string-literal).
|
- `haystack` — String, in which regexp pattern will to be matched. [String](../data-types/string.md).
|
||||||
- `pattern` — String, regexp expression, must be constant. [String](../../sql-reference/syntax.md#syntax-string-literal).
|
- `pattern` — String, regexp expression, must be constant. [String](../data-types/string.md).
|
||||||
- `index` – An integer number greater or equal 0 with default 1. It represents which regex group to extract. [UInt or Int](../data-types/int-uint.md). Optional.
|
- `index` – An integer number greater or equal 0 with default 1. It represents which regex group to extract. [UInt or Int](../data-types/int-uint.md). Optional.
|
||||||
|
|
||||||
**Returned value**
|
**Returned value**
|
||||||
@ -1687,8 +1687,8 @@ hasSubsequence(haystack, needle)
|
|||||||
|
|
||||||
**Arguments**
|
**Arguments**
|
||||||
|
|
||||||
- `haystack` — String in which the search is performed. [String](../../sql-reference/syntax.md#syntax-string-literal).
|
- `haystack` — String in which the search is performed. [String](../data-types/string.md).
|
||||||
- `needle` — Subsequence to be searched. [String](../../sql-reference/syntax.md#syntax-string-literal).
|
- `needle` — Subsequence to be searched. [String](../data-types/string.md).
|
||||||
|
|
||||||
**Returned value**
|
**Returned value**
|
||||||
|
|
||||||
@ -1722,8 +1722,8 @@ hasSubsequenceCaseInsensitive(haystack, needle)
|
|||||||
|
|
||||||
**Arguments**
|
**Arguments**
|
||||||
|
|
||||||
- `haystack` — String in which the search is performed. [String](../../sql-reference/syntax.md#syntax-string-literal).
|
- `haystack` — String in which the search is performed. [String](../data-types/string.md).
|
||||||
- `needle` — Subsequence to be searched. [String](../../sql-reference/syntax.md#syntax-string-literal).
|
- `needle` — Subsequence to be searched. [String](../data-types/string.md).
|
||||||
|
|
||||||
**Returned value**
|
**Returned value**
|
||||||
|
|
||||||
@ -1757,8 +1757,8 @@ hasSubsequenceUTF8(haystack, needle)
|
|||||||
|
|
||||||
**Arguments**
|
**Arguments**
|
||||||
|
|
||||||
- `haystack` — String in which the search is performed. UTF-8 encoded [String](../../sql-reference/syntax.md#syntax-string-literal).
|
- `haystack` — String in which the search is performed. UTF-8 encoded [String](../data-types/string.md).
|
||||||
- `needle` — Subsequence to be searched. UTF-8 encoded [String](../../sql-reference/syntax.md#syntax-string-literal).
|
- `needle` — Subsequence to be searched. UTF-8 encoded [String](../data-types/string.md).
|
||||||
|
|
||||||
**Returned value**
|
**Returned value**
|
||||||
|
|
||||||
@ -1792,8 +1792,8 @@ hasSubsequenceCaseInsensitiveUTF8(haystack, needle)
|
|||||||
|
|
||||||
**Arguments**
|
**Arguments**
|
||||||
|
|
||||||
- `haystack` — String in which the search is performed. UTF-8 encoded [String](../../sql-reference/syntax.md#syntax-string-literal).
|
- `haystack` — String in which the search is performed. UTF-8 encoded [String](../data-types/string.md).
|
||||||
- `needle` — Subsequence to be searched. UTF-8 encoded [String](../../sql-reference/syntax.md#syntax-string-literal).
|
- `needle` — Subsequence to be searched. UTF-8 encoded [String](../data-types/string.md).
|
||||||
|
|
||||||
**Returned value**
|
**Returned value**
|
||||||
|
|
||||||
@ -1827,7 +1827,7 @@ hasToken(haystack, token)
|
|||||||
|
|
||||||
**Parameters**
|
**Parameters**
|
||||||
|
|
||||||
- `haystack`: String in which the search is performed. [String](../../sql-reference/syntax.md#syntax-string-literal).
|
- `haystack`: String in which the search is performed. [String](../data-types/string.md) or [Enum](../data-types/enum.md).
|
||||||
- `token`: Maximal length substring between two non alphanumeric ASCII characters (or boundaries of haystack).
|
- `token`: Maximal length substring between two non alphanumeric ASCII characters (or boundaries of haystack).
|
||||||
|
|
||||||
**Returned value**
|
**Returned value**
|
||||||
@ -1862,12 +1862,12 @@ hasTokenOrNull(haystack, token)
|
|||||||
|
|
||||||
**Parameters**
|
**Parameters**
|
||||||
|
|
||||||
- `haystack`: String in which the search is performed. [String](../../sql-reference/syntax.md#syntax-string-literal).
|
- `haystack`: String in which the search is performed. [String](../data-types/string.md) or [Enum](../data-types/enum.md).
|
||||||
- `token`: Maximal length substring between two non alphanumeric ASCII characters (or boundaries of haystack).
|
- `token`: Maximal length substring between two non alphanumeric ASCII characters (or boundaries of haystack).
|
||||||
|
|
||||||
**Returned value**
|
**Returned value**
|
||||||
|
|
||||||
- 1, if the token is present in the haystack, 0 if it is not present, and null if the token is ill formed.
|
- 1, if the token is present in the haystack, 0 if it is not present, and null if the token is ill formed.
|
||||||
|
|
||||||
**Implementation details**
|
**Implementation details**
|
||||||
|
|
||||||
@ -1899,7 +1899,7 @@ hasTokenCaseInsensitive(haystack, token)
|
|||||||
|
|
||||||
**Parameters**
|
**Parameters**
|
||||||
|
|
||||||
- `haystack`: String in which the search is performed. [String](../../sql-reference/syntax.md#syntax-string-literal).
|
- `haystack`: String in which the search is performed. [String](../data-types/string.md) or [Enum](../data-types/enum.md).
|
||||||
- `token`: Maximal length substring between two non alphanumeric ASCII characters (or boundaries of haystack).
|
- `token`: Maximal length substring between two non alphanumeric ASCII characters (or boundaries of haystack).
|
||||||
|
|
||||||
**Returned value**
|
**Returned value**
|
||||||
@ -1934,7 +1934,7 @@ hasTokenCaseInsensitiveOrNull(haystack, token)
|
|||||||
|
|
||||||
**Parameters**
|
**Parameters**
|
||||||
|
|
||||||
- `haystack`: String in which the search is performed. [String](../../sql-reference/syntax.md#syntax-string-literal).
|
- `haystack`: String in which the search is performed. [String](../data-types/string.md) or [Enum](../data-types/enum.md).
|
||||||
- `token`: Maximal length substring between two non alphanumeric ASCII characters (or boundaries of haystack).
|
- `token`: Maximal length substring between two non alphanumeric ASCII characters (or boundaries of haystack).
|
||||||
|
|
||||||
**Returned value**
|
**Returned value**
|
||||||
|
@ -7,10 +7,10 @@
|
|||||||
#include <Columns/ColumnVector.h>
|
#include <Columns/ColumnVector.h>
|
||||||
#include <Core/Settings.h>
|
#include <Core/Settings.h>
|
||||||
#include <DataTypes/DataTypeArray.h>
|
#include <DataTypes/DataTypeArray.h>
|
||||||
|
#include <DataTypes/DataTypeEnum.h>
|
||||||
#include <DataTypes/DataTypeNullable.h>
|
#include <DataTypes/DataTypeNullable.h>
|
||||||
#include <DataTypes/DataTypeString.h>
|
#include <DataTypes/DataTypeString.h>
|
||||||
#include <DataTypes/DataTypesNumber.h>
|
#include <DataTypes/DataTypesNumber.h>
|
||||||
#include <DataTypes/DataTypeEnum.h>
|
|
||||||
#include <Functions/FunctionHelpers.h>
|
#include <Functions/FunctionHelpers.h>
|
||||||
#include <Functions/IFunction.h>
|
#include <Functions/IFunction.h>
|
||||||
#include <Interpreters/Context.h>
|
#include <Interpreters/Context.h>
|
||||||
@ -179,8 +179,10 @@ public:
|
|||||||
{
|
{
|
||||||
const auto * col = argument.column.get();
|
const auto * col = argument.column.get();
|
||||||
const auto * type = argument.type.get();
|
const auto * type = argument.type.get();
|
||||||
|
|
||||||
auto res = ColumnString::create();
|
auto res = ColumnString::create();
|
||||||
res->reserve(col->size());
|
res->reserve(col->size());
|
||||||
|
|
||||||
if constexpr (std::is_same_v<DataTypeEnum8, EnumType>)
|
if constexpr (std::is_same_v<DataTypeEnum8, EnumType>)
|
||||||
{
|
{
|
||||||
const auto * enum_col = typeid_cast<const ColumnInt8 *>(col);
|
const auto * enum_col = typeid_cast<const ColumnInt8 *>(col);
|
||||||
@ -212,17 +214,10 @@ public:
|
|||||||
ColumnPtr column_haystack = haystack_argument.column;
|
ColumnPtr column_haystack = haystack_argument.column;
|
||||||
const ColumnPtr & column_needle = (argument_order == ArgumentOrder::HaystackNeedle) ? arguments[1].column : arguments[0].column;
|
const ColumnPtr & column_needle = (argument_order == ArgumentOrder::HaystackNeedle) ? arguments[1].column : arguments[0].column;
|
||||||
|
|
||||||
bool is_enum8 = isEnum8(haystack_argument.type);
|
if (isEnum8(haystack_argument.type))
|
||||||
bool is_enum16 = isEnum16(haystack_argument.type);
|
|
||||||
|
|
||||||
if (is_enum8)
|
|
||||||
{
|
|
||||||
column_haystack = genStringColumnFromEnumColumn<DataTypeEnum8>(haystack_argument);
|
column_haystack = genStringColumnFromEnumColumn<DataTypeEnum8>(haystack_argument);
|
||||||
}
|
if (isEnum16(haystack_argument.type))
|
||||||
if (is_enum16)
|
|
||||||
{
|
|
||||||
column_haystack = genStringColumnFromEnumColumn<DataTypeEnum16>(haystack_argument);
|
column_haystack = genStringColumnFromEnumColumn<DataTypeEnum16>(haystack_argument);
|
||||||
}
|
|
||||||
|
|
||||||
ColumnPtr column_start_pos = nullptr;
|
ColumnPtr column_start_pos = nullptr;
|
||||||
if (arguments.size() >= 3)
|
if (arguments.size() >= 3)
|
||||||
|
Loading…
Reference in New Issue
Block a user