add case with external file

This commit is contained in:
stavrolia 2018-06-27 21:53:11 +03:00
parent e1cd4d22db
commit 5966b78d41
2 changed files with 5 additions and 0 deletions

View File

@ -1 +1,3 @@
1
1 Hello
2 World

View File

@ -5,3 +5,6 @@ CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
. $CURDIR/../shell_config.sh
${CLICKHOUSE_CURL} ${CLICKHOUSE_URL}?query="select" -X POST -F "query= 1;" 2>/dev/null
echo -ne '1,Hello\n2,World\n' | ${CLICKHOUSE_CURL} -sSF 'file=@-' "${CLICKHOUSE_URL}?file_format=CSV&file_types=UInt8,String&query=SELE" -X POST -F "query=CT * FROM file" 2>/dev/null