mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-12 02:23:14 +00:00
b3bd6b5b29
Added operators, tupleHammingDistance has been refactored
7 lines
341 B
SQL
7 lines
341 B
SQL
SELECT tupleHammingDistance(tuple(1), tuple(1));
|
|
SELECT tupleHammingDistance(tuple(1, 3), tuple(1, 2));
|
|
|
|
SELECT tuple(1, 2) + tuple(3, 4) * tuple(5, 1) - tuple(6, 3);
|
|
SELECT vectorDifference(tuplePlus(tuple(1, 2), tuple(3, 4)), tuple(5, 6));
|
|
SELECT tupleMinus(vectorSum(tupleMultiply(tuple(1, 2), tuple(3, 4)), tuple(5, 6)), tuple(31, 41));
|