@@ -331,7 +331,8 @@ struct Settings : public SettingsCollection<Settings>
M(SettingBool, allow_hyperscan, true, "Allow functions that use Hyperscan library. Disable to avoid potentially long compilation times and excessive resource usage.") \
M(SettingBool, allow_simdjson, true, "Allow using simdjson library in 'JSON*' functions if AVX2 instructions are available. If disabled rapidjson will be used.") \
\
M(SettingUInt64, max_partitions_per_insert_block, 100, "Limit maximum number of partitions in single INSERTed block. Zero means unlimited. Throw exception if the block contains too many partitions. This setting is a safety threshold, because using large number of partitions is a common misconception.")
M(SettingUInt64, max_partitions_per_insert_block, 100, "Limit maximum number of partitions in single INSERTed block. Zero means unlimited. Throw exception if the block contains too many partitions. This setting is a safety threshold, because using large number of partitions is a common misconception.") \
M(SettingBool, check_query_single_value_result, true, "Return check query result as single 1/0 value")
assertnode1.query("CHECK TABLE non_replicated_mt").strip()=="201902_1_1_0\t1\tChecksums recounted and written to disk."
assertnode1.query("CHECK TABLE non_replicated_mt",settings={"check_query_single_value_result":0}).strip()=="201902_1_1_0\t1\tChecksums recounted and written to disk."
assertnode1.query("SELECT COUNT() FROM non_replicated_mt")=="2\n"
assertnode1.query("CHECK TABLE non_replicated_mt PARTITION 201902").strip()=="201902_1_1_0\t1\tChecksums recounted and written to disk."
assertnode1.query("CHECK TABLE non_replicated_mt PARTITION 201902",settings={"check_query_single_value_result":0}).strip()=="201902_1_1_0\t1\tChecksums recounted and written to disk."
assertnode1.query("SELECT COUNT() FROM non_replicated_mt")=="2\n"
assertnode1.query("CHECK TABLE non_replicated_mt PARTITION 201901")=="201901_2_2_0\t0\tCheck of part finished with error: \\'Cannot read all data. Bytes read: 2. Bytes expected: 16.\\'\n"
assertnode1.query("CHECK TABLE non_replicated_mt PARTITION 201901",settings={"check_query_single_value_result":0})=="201901_2_2_0\t0\tCheck of part finished with error: \\'Cannot read all data. Bytes read: 2. Bytes expected: 16.\\'\n"
assertnode1.query("CHECK TABLE replicated_mt PARTITION 201901")=="{p}\t0\tPart {p} looks broken. Removing it and queueing a fetch.\n".format(p=part_name)
assertnode1.query("CHECK TABLE replicated_mt PARTITION 201901",settings={"check_query_single_value_result":0})=="{p}\t0\tPart {p} looks broken. Removing it and queueing a fetch.\n".format(p=part_name)
assertnode2.query("CHECK TABLE replicated_mt PARTITION 201901")=="{p}\t0\tPart {p} looks broken. Removing it and queueing a fetch.\n".format(p=part_name)
assertnode2.query("CHECK TABLE replicated_mt PARTITION 201901",settings={"check_query_single_value_result":0})=="{p}\t0\tPart {p} looks broken. Removing it and queueing a fetch.\n".format(p=part_name)