mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-10 17:44:23 +00:00
Fix tests
This commit is contained in:
parent
604080239c
commit
6147ad6432
@ -58,5 +58,3 @@ dest from null:
|
||||
-108 108 -1016 1116 -1032 1132 -1064 1164 -1.032 -1.064 string-0 fixedstring\0\0\0\0 2001-02-03 2002-02-03 04:05:06
|
||||
127 255 32767 65535 2147483647 4294967295 9223372036854775807 9223372036854775807 -1.032 -1.064 string-2 fixedstring-2\0\0 2004-06-07 2004-02-03 04:05:06
|
||||
\N \N \N \N \N \N \N \N \N \N \N \N \N \N
|
||||
0.1230 0.12312312 0.1231231231230000 0.12312312312312312300000000000000
|
||||
0.1230 0.12312312 0.1231231231230000 0.12312312312312312300000000000000
|
||||
|
@ -102,10 +102,3 @@ ${CLICKHOUSE_CLIENT} --query="DROP TABLE arrow_types1"
|
||||
${CLICKHOUSE_CLIENT} --query="DROP TABLE arrow_types2"
|
||||
${CLICKHOUSE_CLIENT} --query="DROP TABLE arrow_types3"
|
||||
${CLICKHOUSE_CLIENT} --query="DROP TABLE arrow_types4"
|
||||
|
||||
${CLICKHOUSE_CLIENT} --query="DROP TABLE IF EXISTS arrow_decimal"
|
||||
${CLICKHOUSE_CLIENT} --query="CREATE TABLE arrow_decimal (d1 Decimal32(4), d2 Decimal64(8), d3 Decimal128(16), d4 Decimal256(32)) ENGINE = Memory"
|
||||
${CLICKHOUSE_CLIENT} --query="INSERT INTO TABLE arrow_decimal VALUES (0.123, 0.123123123, 0.123123123123, 0.123123123123123123)"
|
||||
${CLICKHOUSE_CLIENT} --query="SELECT * FROM arrow_decimal FORMAT Arrow" | ${CLICKHOUSE_CLIENT} --query="INSERT INTO arrow_decimal FORMAT Arrow"
|
||||
${CLICKHOUSE_CLIENT} --query="SELECT * FROM arrow_decimal"
|
||||
${CLICKHOUSE_CLIENT} --query="DROP TABLE arrow_decimal"
|
||||
|
2
tests/queries/0_stateless/01273_arrow_decimal.reference
Normal file
2
tests/queries/0_stateless/01273_arrow_decimal.reference
Normal file
@ -0,0 +1,2 @@
|
||||
0.1230 0.12312312 0.1231231231230000 0.12312312312312312300000000000000
|
||||
0.1230 0.12312312 0.1231231231230000 0.12312312312312312300000000000000
|
14
tests/queries/0_stateless/01273_arrow_decimal.sh
Executable file
14
tests/queries/0_stateless/01273_arrow_decimal.sh
Executable file
@ -0,0 +1,14 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -e
|
||||
|
||||
CUR_DIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
||||
# shellcheck source=../shell_config.sh
|
||||
. "$CUR_DIR"/../shell_config.sh
|
||||
|
||||
${CLICKHOUSE_CLIENT} --query="DROP TABLE IF EXISTS arrow_decimal"
|
||||
${CLICKHOUSE_CLIENT} --query="CREATE TABLE arrow_decimal (d1 Decimal32(4), d2 Decimal64(8), d3 Decimal128(16), d4 Decimal256(32)) ENGINE = Memory"
|
||||
${CLICKHOUSE_CLIENT} --query="INSERT INTO TABLE arrow_decimal VALUES (0.123, 0.123123123, 0.123123123123, 0.123123123123123123)"
|
||||
${CLICKHOUSE_CLIENT} --query="SELECT * FROM arrow_decimal FORMAT Arrow" | ${CLICKHOUSE_CLIENT} --query="INSERT INTO arrow_decimal FORMAT Arrow"
|
||||
${CLICKHOUSE_CLIENT} --query="SELECT * FROM arrow_decimal"
|
||||
${CLICKHOUSE_CLIENT} --query="DROP TABLE arrow_decimal"
|
Loading…
Reference in New Issue
Block a user