chore(query): only enable overflow-checks in profile.test
@@ -58,6 +58,7 @@ exclude = ["tools/fuzz"]
[profile.release]
debug = 1
lto = "thin"
+overflow-checks = false
codegen-units = 1 # Reduce number of codegen units to increase optimizations.
[profile.release.package]
@@ -67,9 +68,14 @@ databend-query = { codegen-units = 4 }
[profile.bench]
debug = true
+overflow-checks = false
[profile.dev]
split-debuginfo = "unpacked"
+overflow-checks = false
+
+[profile.test]
+overflow-checks = true
[profile.dev.package]
addr2line = { opt-level = 3 }
