From f2652051e36836a53f3a8409a544b1d73deef122 Mon Sep 17 00:00:00 2001 From: avogar Date: Wed, 3 Nov 2021 12:53:33 +0300 Subject: [PATCH 1/2] Fix assert in hdfs, add test --- contrib/libhdfs3 | 2 +- tests/queries/0_stateless/02113_hdfs_assert.reference | 1 + tests/queries/0_stateless/02113_hdfs_assert.sh | 9 +++++++++ 3 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 tests/queries/0_stateless/02113_hdfs_assert.reference create mode 100755 tests/queries/0_stateless/02113_hdfs_assert.sh diff --git a/contrib/libhdfs3 b/contrib/libhdfs3 index 082e55f17d1..a8c37ee001a 160000 --- a/contrib/libhdfs3 +++ b/contrib/libhdfs3 @@ -1 +1 @@ -Subproject commit 082e55f17d1c58bf124290fb044fea40e985ec11 +Subproject commit a8c37ee001af1ae88e5dfa637ae5b31b087c96d3 diff --git a/tests/queries/0_stateless/02113_hdfs_assert.reference b/tests/queries/0_stateless/02113_hdfs_assert.reference new file mode 100644 index 00000000000..d86bac9de59 --- /dev/null +++ b/tests/queries/0_stateless/02113_hdfs_assert.reference @@ -0,0 +1 @@ +OK diff --git a/tests/queries/0_stateless/02113_hdfs_assert.sh b/tests/queries/0_stateless/02113_hdfs_assert.sh new file mode 100755 index 00000000000..b6256511759 --- /dev/null +++ b/tests/queries/0_stateless/02113_hdfs_assert.sh @@ -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'; From 5b60497e5108db4d171f6f980e48bef75485f41a Mon Sep 17 00:00:00 2001 From: Kruglov Pavel <48961922+Avogar@users.noreply.github.com> Date: Wed, 3 Nov 2021 13:39:37 +0300 Subject: [PATCH 2/2] Update 02113_hdfs_assert.sh --- tests/queries/0_stateless/02113_hdfs_assert.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/queries/0_stateless/02113_hdfs_assert.sh b/tests/queries/0_stateless/02113_hdfs_assert.sh index b6256511759..3adf1360c47 100755 --- a/tests/queries/0_stateless/02113_hdfs_assert.sh +++ b/tests/queries/0_stateless/02113_hdfs_assert.sh @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# Tags: no-fasttest CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd) # shellcheck source=../shell_config.sh