From 6710bca8a6999ea8ab1f91788bdfd02b047e93df Mon Sep 17 00:00:00 2001 From: Yunyu Lin Date: Mon, 8 Jan 2024 15:14:33 -0500 Subject: [PATCH 1/2] Disable output_format_json_quote_64bit_integers --- src/Core/Settings.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Core/Settings.h b/src/Core/Settings.h index 9237e41c8dd..b77b0e857ab 100644 --- a/src/Core/Settings.h +++ b/src/Core/Settings.h @@ -979,7 +979,7 @@ class IColumn; M(UInt64, format_binary_max_array_size, 1_GiB, "The maximum allowed size for Array in RowBinary format. It prevents allocating large amount of memory in case of corrupted data. 0 means there is no limit", 0) \ M(URI, format_avro_schema_registry_url, "", "For AvroConfluent format: Confluent Schema Registry URL.", 0) \ \ - M(Bool, output_format_json_quote_64bit_integers, true, "Controls quoting of 64-bit integers in JSON output format.", 0) \ + M(Bool, output_format_json_quote_64bit_integers, false, "Controls quoting of 64-bit integers in JSON output format.", 0) \ M(Bool, output_format_json_quote_denormals, false, "Enables '+nan', '-nan', '+inf', '-inf' outputs in JSON output format.", 0) \ M(Bool, output_format_json_quote_decimals, false, "Controls quoting of decimals in JSON output format.", 0) \ M(Bool, output_format_json_quote_64bit_floats, false, "Controls quoting of 64-bit float numbers in JSON output format.", 0) \ From 08d105a47bb25854ba7ea54ccf481d0a01f006ca Mon Sep 17 00:00:00 2001 From: Yunyu Lin Date: Mon, 8 Jan 2024 15:17:37 -0500 Subject: [PATCH 2/2] Update dbapi test to use Int64 type --- tests/test_dbapi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_dbapi.py b/tests/test_dbapi.py index 4bc973488f5..0ed283e4b9b 100644 --- a/tests/test_dbapi.py +++ b/tests/test_dbapi.py @@ -32,7 +32,7 @@ def test_insert_and_read_data(self): cur.execute(""" CREATE TABLE rate ( day Date, - value Int32 + value Int64 ) ENGINE = ReplacingMergeTree ORDER BY day""") # Insert single value