Skip to content

Commit b3740e5

Browse files
committed
renamed last_error_query_id in system.errors
1 parent e3bb248 commit b3740e5

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/Storages/System/StorageSystemErrors.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ ColumnsDescription StorageSystemErrors::getColumnsDescription()
2929
{ "last_error_message", std::make_shared<DataTypeString>(), "Message for the last error."},
3030
{ "last_error_trace", std::make_shared<DataTypeArray>(std::make_shared<DataTypeUInt64>()), "A stack trace that represents a list of physical addresses where the called methods are stored."},
3131
{ "remote", std::make_shared<DataTypeUInt8>(), "Remote exception (i.e. received during one of the distributed queries)."},
32-
{ "last_error_query_id", std::make_shared<DataTypeString>(), "Id of a query that caused the last error (if available)." },
32+
{ "query_id", std::make_shared<DataTypeString>(), "Id of a query that caused the last error (if available)." },
3333
{ "last_error_symbols", symbolized_type, "Contains demangled symbol names, corresponding to the `trace`." },
3434
{ "last_error_lines", symbolized_type, "Contains strings with file names with line numbers, corresponding to the `trace`." },
3535
};

tests/queries/0_stateless/02117_show_create_table_system.reference

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ CREATE TABLE system.errors
265265
`last_error_message` String,
266266
`last_error_trace` Array(UInt64),
267267
`remote` UInt8,
268-
`last_error_query_id` String,
268+
`query_id` String,
269269
`last_error_symbols` Array(LowCardinality(String)),
270270
`last_error_lines` Array(LowCardinality(String))
271271
)

tests/queries/0_stateless/03361_system_errors_query_id.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ $CLICKHOUSE_CLIENT --query_id="$query_id" -q "select query_id" &>/dev/null
1010

1111
retry=0
1212
max_retries=30
13-
while [[ $($CLICKHOUSE_CLIENT -q "SELECT count(*) FROM system.errors WHERE last_error_query_id = '$query_id' and code = 47") -lt 1 ]]; do
13+
while [[ $($CLICKHOUSE_CLIENT -q "SELECT count(*) FROM system.errors WHERE query_id = '$query_id' and code = 47") -lt 1 ]]; do
1414
retry=$((retry+1))
1515

1616
if [ $retry -ge $max_retries ]; then

0 commit comments

Comments
 (0)