Small fixes

This commit is contained in:
Nikolay Degterinsky 2021-08-07 15:15:49 +00:00
parent bf0297ccab
commit b5a6e18511
3 changed files with 4 additions and 4 deletions

2
.gitmodules vendored
View File

@ -245,4 +245,4 @@
url = https://github.com/ClickHouse-Extras/s2geometry.git
[submodule "contrib/bzip2"]
path = contrib/bzip2
url = https://gitlab.com/federicomenaquintero/bzip2.git
url = https://github.com/ClickHouse-Extras/bzip2.git

View File

@ -561,14 +561,14 @@
M(591, SQLITE_ENGINE_ERROR) \
M(592, DATA_ENCRYPTION_ERROR) \
M(593, ZERO_COPY_REPLICATION_ERROR) \
M(594, BZIP2_STREAM_DECODER_FAILED) \
M(595, BZIP2_STREAM_ENCODER_FAILED) \
\
M(998, POSTGRESQL_CONNECTION_FAILURE) \
M(999, KEEPER_EXCEPTION) \
M(1000, POCO_EXCEPTION) \
M(1001, STD_EXCEPTION) \
M(1002, UNKNOWN_EXCEPTION) \
M(1003, BZIP2_STREAM_DECODER_FAILED) \
M(1004, BZIP2_STREAM_ENCODER_FAILED) \
/* See END */

View File

@ -8,7 +8,7 @@ USER_FILES_PATH=$(clickhouse-client --query "select _path,_file from file('nonex
WORKING_FOLDER_02003="${USER_FILES_PATH}/${CLICKHOUSE_DATABASE}"
rm -rf "${WORKING_FOLDER_02003}"
mkdir ${WORKING_FOLDER_02003}
mkdir "${WORKING_FOLDER_02003}"
${CLICKHOUSE_CLIENT} --query "SELECT * FROM (SELECT 'Hello, World!' as String) INTO OUTFILE '${WORKING_FOLDER_02003}/bz2_compression.bz2'"
bzip2 -t ${WORKING_FOLDER_02003}/bz2_compression.bz2