In Clickhouse, how do I filter strings by control characters e.g. tab \t, newline \n
SQL Server has CHAR function to express control chars. Separately, Hive has rlike for regex expressions that can match control chars. How do you do something similar in CH?
I do not know how to escape the tab character properly in the following commands. No matter the number of backslash 1, 2 or 4:
$ clickhouse-client --query="SELECT 'Hello\tworld'"
Hello\tworld
$ clickhouse-client --query="SELECT 'Hello\\tworld'"
Hello\tworld
$ clickhouse-client --query="SELECT 'Hello\\\\tworld'"
Hello\\tworld
Clickhouse version 21.3.11.1