Skip to content

Commit 44489c2

Browse files
authored
[docs] Add BloomFilter supported data types with hash function details (#8313)
1 parent 8b2911b commit 44489c2

1 file changed

Lines changed: 11 additions & 2 deletions

File tree

docs/docs/concepts/spec/fileindex.mdx

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,17 @@ Content of bloom filter index is simple:
9898
This class use (64-bits) long hash. Store the num hash function (one integer) and bit set bytes only. Hash bytes type
9999
(like varchar, binary, etc.) using xx hash, hash numeric type by [specified number hash](http://web.archive.org/web/20071223173210/http://www.concentric.net/~Ttwang/tech/inthash.htm).
100100

101-
BloomFilter only support the following data type: TinyIntType, SmallIntType, IntType, BigIntType, FloatType, DoubleType,
102-
DateType, TimeType, TimestampType, LocalZonedTimestampType, CharType, VarCharType, BinaryType, VarBinaryType.
101+
BloomFilter supports the following data types:
102+
103+
| Data type | Hash function |
104+
|-----------|--------------|
105+
| `CharType`, `VarCharType` | xx hash (64-bit) |
106+
| `BinaryType`, `VarBinaryType` | xx hash (64-bit) |
107+
| `TinyIntType`, `SmallIntType`, `IntType`, `BigIntType` | Thomas Wang hash |
108+
| `FloatType`, `DoubleType` | Thomas Wang hash (on IEEE 754 bit representation) |
109+
| `DateType`, `TimeType`, `TimestampType`, `LocalZonedTimestampType` | Thomas Wang hash |
110+
111+
BloomFilter does not support: `BooleanType`, `DecimalType`, `VariantType`, `BlobType`, `ArrayType`, `VectorType`, `MultisetType`, `MapType`, `RowType`.
103112

104113
## Index: Bitmap
105114

0 commit comments

Comments
 (0)