ClickHouse/tests/queries/0_stateless/02011_tuple_vector_functions.sql
Alexey Boykov b3bd6b5b29 Operators, refactoring
Added operators, tupleHammingDistance has been refactored
2021-08-20 17:06:57 +03:00

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));