2020-12-18 13:26:11 +00:00
|
|
|
|
#!/usr/bin/expect -f
|
|
|
|
|
|
|
|
|
|
log_user 0
|
2021-06-16 06:01:57 +00:00
|
|
|
|
set timeout 60
|
2020-12-18 13:26:11 +00:00
|
|
|
|
match_max 100000
|
|
|
|
|
|
2021-01-21 18:01:32 +00:00
|
|
|
|
expect_after {
|
2021-12-28 18:16:04 +00:00
|
|
|
|
# Do not ignore eof from expect
|
|
|
|
|
eof { exp_continue }
|
|
|
|
|
# A default timeout action is to do nothing, change it to fail
|
|
|
|
|
timeout { exit 1 }
|
2021-01-21 18:01:32 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
set basedir [file dirname $argv0]
|
tests: disable suggestions for expect tests that does not requires it
Will fix possible issues in CI [1].
2021-06-07 03:42:56 01520_client_print_query_id: [ FAIL ] 8.24 sec. - return code 1
2021-06-07 03:42:56 , result:
And in server logs:
2021.06.07 03:42:48.732289 [ 18471 ] {7df001e8-f9bb-488f-9fe1-6dc538f24808} <Debug> executeQuery: (from [::1]:45680, using production parser) (comment: /usr/share/clickhouse-test/queries/0_stateless/01520_client_print_query_id.expect) CREATE DATABASE test
...
2021.06.07 03:42:52.048064 [ 18703 ] {8526892a-f99a-4949-9f7d-3c8e82969439} <Debug> executeQuery: (from [::1]:45702, using production parser) SELECT DISTINCT arrayJoin(extractAll(name, '[\\w_]{2,}')) AS res FROM (SELECT name FROM system.functions UNION ALL SELECT name FROM system.table_engines UNION ALL SELECT name FROM system.formats UNION ALL SELECT name FROM system.table_functions UNION ALL SELECT name FROM system.data_type_families UNION ALL SELECT name FROM system.merge_tree_settings UNION ALL SELECT name FROM system.settings UNION ALL SELECT cluster FROM system.clusters UNION ALL SELECT macro FROM system.macros UNION ALL SELECT policy_name FROM system.storage_policies UNION ALL SELECT concat(func.name, comb.name) FROM system.functions AS func CROSS JOIN system.aggregate_function_combinators AS comb WHERE is_aggregate UNION ALL SELECT name FROM system.databases LIMIT 10000 UNION ALL SELECT DISTINCT name FROM system.tables LIMIT 10000 UNION ALL SELECT DISTINCT name FROM system.dictionaries LIMIT 10000 UNION ALL SELECT DISTINCT name FROM system.columns LIMIT 10000) WHERE notEmpty(res)
...
2021.06.07 03:42:54.523976 [ 5575 ] {d97df847-0feb-4e8d-92bd-3236e1f7f711} <Debug> executeQuery: (from [::1]:45710, using production parser) (comment: /usr/share/clickhouse-test/queries/0_stateless/01520_client_print_query_id.expect) DROP DATABASE test_3bce13
...
2021.06.07 03:42:54.722391 [ 18703 ] {8526892a-f99a-4949-9f7d-3c8e82969439} <Error> executeQuery: Code: 210, e.displayText() = DB::NetException: I/O error: Broken pipe, while writing to socket ([::1]:45702) (version 21.7.1.7071) (from [::1]:45702) (in query: SELECT DISTINCT arrayJoin(extractAll(name, '[\\w_]{2,}')) AS res FROM (SELECT name FROM system.functions UNION ALL SELECT name FROM system.table_engines UNION ALL SELECT name FROM system.formats UNION ALL SELECT name FROM system.table_functions UNION ALL SELECT name FROM system.data_type_families UNION ALL SELECT name FROM system.merge_tree_settings UNION ALL SELECT name FROM system.settings UNION ALL SELECT cluster FROM system.clusters UNION ALL SELECT macro FROM system.macros UNION ALL SELECT policy_name FROM system.storage_policies UNION ALL SELECT concat(func.name, comb.name) FROM system.functions AS func CROSS JOIN system.aggregate_function_combinators AS comb WHERE is_aggregate UNION ALL SELECT name FROM system.databases LIMIT 10000 UNION ALL SELECT DISTINCT name FROM system.tables LIMIT 10000 UNION ALL SELECT DISTINCT name FROM system.dictionaries LIMIT 10000 UNION ALL SELECT DISTINCT name FROM system.columns LIMIT 10000) WHERE notEmpty(res)), Stack trace (when copying this message, always include the lines below):
[1]: https://clickhouse-test-reports.s3.yandex.net/24069/263c06137cda16213c14ca60a89cfdd7fb511c81/functional_stateless_tests_(thread).html
2021-06-07 07:51:14 +00:00
|
|
|
|
spawn bash -c "source $basedir/../shell_config.sh ; \$CLICKHOUSE_CLIENT_BINARY \$CLICKHOUSE_CLIENT_OPT --disable_suggestion"
|
2020-12-18 13:26:11 +00:00
|
|
|
|
expect ":) "
|
|
|
|
|
|
|
|
|
|
send -- "SELECT 1\r"
|
|
|
|
|
expect "│ 1 │"
|
|
|
|
|
expect ":) "
|
|
|
|
|
|
|
|
|
|
send -- "SELECT 1\\G\r"
|
|
|
|
|
expect "Row 1:"
|
|
|
|
|
expect "1: 1"
|
|
|
|
|
expect ":) "
|
|
|
|
|
|
|
|
|
|
send -- "SELECT 1\\\r"
|
|
|
|
|
expect ":-] "
|
|
|
|
|
send -- ", 2\r"
|
|
|
|
|
expect "│ 1 │ 2 │"
|
|
|
|
|
expect ":) "
|
|
|
|
|
|
|
|
|
|
send -- "SELECT 1\\\r"
|
|
|
|
|
expect ":-] "
|
|
|
|
|
send -- ", 2\\G\r"
|
|
|
|
|
expect "Row 1:"
|
|
|
|
|
expect "1: 1"
|
|
|
|
|
expect "2: 2"
|
|
|
|
|
expect ":) "
|
|
|
|
|
|
|
|
|
|
send -- ""
|
|
|
|
|
expect eof
|
|
|
|
|
|
2021-07-15 12:36:42 +00:00
|
|
|
|
spawn bash -c "source $basedir/../shell_config.sh ; \$CLICKHOUSE_CLIENT_BINARY \$CLICKHOUSE_CLIENT_OPT --disable_suggestion --multiline"
|
2020-12-18 13:26:11 +00:00
|
|
|
|
expect ":) "
|
|
|
|
|
|
|
|
|
|
send -- "SELECT 1;\r"
|
|
|
|
|
expect "│ 1 │"
|
|
|
|
|
expect ":) "
|
|
|
|
|
|
|
|
|
|
send -- "SELECT 1\\G\r"
|
|
|
|
|
expect "Row 1:"
|
|
|
|
|
expect "1: 1"
|
|
|
|
|
expect ":) "
|
|
|
|
|
|
|
|
|
|
send -- "SELECT 1; \r"
|
|
|
|
|
expect "│ 1 │"
|
|
|
|
|
expect ":) "
|
|
|
|
|
|
|
|
|
|
send -- "SELECT 1\\G \r"
|
|
|
|
|
expect "Row 1:"
|
|
|
|
|
expect "1: 1"
|
|
|
|
|
expect ":) "
|
|
|
|
|
|
|
|
|
|
send -- "SELECT 1\r"
|
|
|
|
|
expect ":-] "
|
|
|
|
|
send -- ";\r"
|
|
|
|
|
expect "│ 1 │"
|
|
|
|
|
expect ":) "
|
|
|
|
|
|
|
|
|
|
send -- "SELECT 1\r"
|
|
|
|
|
expect ":-] "
|
|
|
|
|
send -- "\\G\r"
|
|
|
|
|
expect "Row 1:"
|
|
|
|
|
expect "1: 1"
|
|
|
|
|
expect ":) "
|
|
|
|
|
|
|
|
|
|
send -- "SELECT 1\r"
|
|
|
|
|
expect ":-] "
|
|
|
|
|
send -- ", 2;\r"
|
|
|
|
|
expect "│ 1 │ 2 │"
|
|
|
|
|
expect ":) "
|
|
|
|
|
|
|
|
|
|
send -- "SELECT 1\r"
|
|
|
|
|
expect ":-] "
|
|
|
|
|
send -- ", 2\\G\r"
|
|
|
|
|
expect "Row 1:"
|
|
|
|
|
expect "1: 1"
|
|
|
|
|
expect "2: 2"
|
|
|
|
|
expect ":) "
|
|
|
|
|
|
|
|
|
|
send -- ""
|
|
|
|
|
expect eof
|