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.") \
$CLICKHOUSE_CLIENT--query="select toUInt64(pow(2, 62)) as value format JSON"--output_format_json_quote_64bit_integers=0 | grep value
$CLICKHOUSE_CLIENT--query="select toUInt64(pow(2, 62)) as value format JSON"--output_format_json_quote_64bit_integers=1 | grep value
$CLICKHOUSE_CLIENT--readonly=1 --multiquery--query="set output_format_json_quote_64bit_integers=1 ; select toUInt64(pow(2, 63)) as value format JSON"--server_logs_file=/dev/null 2>&1 | grep-o'value\|Cannot execute SET query in readonly mode.'
$CLICKHOUSE_CLIENT--readonly=1 --multiquery--query="set output_format_json_quote_64bit_integers=0 ; select toUInt64(pow(2, 63)) as value format JSON"--server_logs_file=/dev/null 2>&1 | grep-o'value\|Cannot execute SET query in readonly mode.'
$CLICKHOUSE_CLIENT--readonly=1 --multiquery--query="set output_format_json_quote_64bit_integers=1 ; select toUInt64(pow(2, 63)) as value format JSON"--server_logs_file=/dev/null 2>&1 | grep-o'value\|Cannot modify .* setting in readonly mode'
$CLICKHOUSE_CLIENT--readonly=1 --multiquery--query="set output_format_json_quote_64bit_integers=0 ; select toUInt64(pow(2, 63)) as value format JSON"--server_logs_file=/dev/null 2>&1 | grep-o'value\|Cannot modify .* setting in readonly mode'
${CLICKHOUSE_CURL}-sS"${CLICKHOUSE_URL}?query=SELECT+toUInt64(pow(2,+63))+as+value+format+JSON&output_format_json_quote_64bit_integers=1" | grep value
${CLICKHOUSE_CURL}-sS"${CLICKHOUSE_URL}?query=SELECT+toUInt64(pow(2,+63))+as+value+format+JSON&output_format_json_quote_64bit_integers=0" | grep value