2019-09-07 14:22:22 +00:00
|
|
|
#!/usr/bin/env bash
|
2021-09-12 12:35:27 +00:00
|
|
|
# Tags: long
|
2019-09-07 14:22:22 +00:00
|
|
|
|
2019-11-07 10:58:16 +00:00
|
|
|
CLICKHOUSE_CLIENT_SERVER_LOGS_LEVEL="none"
|
2019-10-08 04:57:31 +00:00
|
|
|
# We should have correct env vars from shell_config.sh to run this test
|
2019-09-07 14:22:22 +00:00
|
|
|
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
2020-12-28 11:46:53 +00:00
|
|
|
# shellcheck source=../shell_config.sh
|
2020-08-01 00:51:12 +00:00
|
|
|
. "$CURDIR"/../shell_config.sh
|
2019-09-07 14:22:22 +00:00
|
|
|
|
2019-11-07 10:58:16 +00:00
|
|
|
# In order to check queries individually (don't stop on the first one that fails):
|
|
|
|
#IFS=$'\n'; for I in $(${CURDIR}/00921_datetime64_compatibility.python) ; do unset IFS; ${CLICKHOUSE_CLIENT} --query "${I}"; echo ; done 2>&1;
|
|
|
|
|
|
|
|
# ${CURDIR}/00921_datetime64_compatibility.python
|
|
|
|
|
2021-02-21 10:04:29 +00:00
|
|
|
python3 "${CURDIR}"/00921_datetime64_compatibility_long.python \
|
2022-04-05 13:35:59 +00:00
|
|
|
| ${CLICKHOUSE_CLIENT} --ignore-error -nm --calculate_text_stack_trace 0 --log-level 'error' 2>&1 \
|
2021-09-10 20:14:05 +00:00
|
|
|
| grep -v -e 'Received exception .*$' -e '^(query: ' | sed 's/^\(Code: [0-9]\+\).*$/\1/g'
|