2014-12-23 00:31:11 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
2017-01-25 14:00:08 +00:00
|
|
|
clickhouse-client --query="SELECT sum(dummy) FROM remote('localhost', system, one) WHERE 1 GLOBAL IN (SELECT 1)"
|
2014-12-23 00:31:11 +00:00
|
|
|
echo '1' | clickhouse-client --external --file=- --types=UInt8 --query="SELECT 1 IN _data"
|
|
|
|
echo '1' | clickhouse-client --external --file=- --types=UInt8 --query="SELECT 1 IN (SELECT * FROM _data)"
|
2017-01-25 14:00:08 +00:00
|
|
|
echo '1' | clickhouse-client --external --file=- --types=UInt8 --query="SELECT dummy FROM remote('localhost', system, one) WHERE 1 GLOBAL IN _data"
|
|
|
|
echo '1' | clickhouse-client --external --file=- --types=UInt8 --query="SELECT dummy FROM remote('localhost', system, one) WHERE 1 IN _data"
|