bec45b53fa93c8154d6d5a5370f1207c32dcfdcc,src/infi/clickhouse_orm/database.py,ServerError,get_error_code_msg,#Any#Any#,50
Before Change
See the list of error codes here:
https://github.com/yandex/ClickHouse/blob/master/dbms/src/Common/ErrorCodes.cpp
match = cls.ERROR_PATTERN.match(full_error_message)
if match:
// assert match.group("type1") == match.group("type2")
return int(match.group("code")), match.group("msg")
After Change
See the list of error codes here:
https://github.com/yandex/ClickHouse/blob/master/dbms/src/Common/ErrorCodes.cpp
for pattern in cls.ERROR_PATTERNS:
match = pattern.match(full_error_message)
if match:
// assert match.group("type1") == match.group("type2")
return int(match.group("code")), match.group("msg").strip()
return 0, full_error_message
def __str__(self):
if self.code is not None:
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances Project Name: Infinidat/infi.clickhouse_orm
Commit Name: bec45b53fa93c8154d6d5a5370f1207c32dcfdcc
Time: 2019-02-26
Author: itais@infinidat.com
File Name: src/infi/clickhouse_orm/database.py
Class Name: ServerError
Method Name: get_error_code_msg
Project Name: GoogleCloudPlatform/PerfKitBenchmarker
Commit Name: e2940262d14cc2479fd1e14c89679464d34aca46
Time: 2019-10-30
Author: chriswilkes@google.com
File Name: perfkitbenchmarker/linux_virtual_machine.py
Class Name: LsCpuResults
Method Name: __init__
Project Name: brian-team/brian2
Commit Name: e48fb30ea6f7eb0c3092ca3b55bdc75176be272a
Time: 2013-10-11
Author: marcel.stimberg@ens.fr
File Name: brian2/stateupdaters/exact.py
Class Name:
Method Name: get_linear_system