mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-03 13:02:00 +00:00
Fix assert in hdfs, add test
This commit is contained in:
parent
d897a13cc3
commit
f2652051e3
2
contrib/libhdfs3
vendored
2
contrib/libhdfs3
vendored
@ -1 +1 @@
|
||||
Subproject commit 082e55f17d1c58bf124290fb044fea40e985ec11
|
||||
Subproject commit a8c37ee001af1ae88e5dfa637ae5b31b087c96d3
|
1
tests/queries/0_stateless/02113_hdfs_assert.reference
Normal file
1
tests/queries/0_stateless/02113_hdfs_assert.reference
Normal file
@ -0,0 +1 @@
|
||||
OK
|
9
tests/queries/0_stateless/02113_hdfs_assert.sh
Executable file
9
tests/queries/0_stateless/02113_hdfs_assert.sh
Executable file
@ -0,0 +1,9 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
||||
# shellcheck source=../shell_config.sh
|
||||
. "$CURDIR"/../shell_config.sh
|
||||
|
||||
|
||||
TCP_PORT=$($CLICKHOUSE_CLIENT -q "SELECT tcpPort()")
|
||||
$CLICKHOUSE_CLIENT -q "SELECT * FROM hdfs('hdfs://localhost:$TCP_PORT/data.csv', 'CSV', 'x UInt32')" 2>&1 | grep -F -q "NETWORK_ERROR" && echo 'OK' || echo 'FAIL';
|
Loading…
Reference in New Issue
Block a user