should be it

This commit is contained in:
2025-10-24 19:21:19 -05:00
parent a4b23fc57c
commit f09560c7b1
14047 changed files with 3161551 additions and 1 deletions

View File

@@ -0,0 +1,26 @@
# name: test/sql/json/issues/issue16684.test
# description: Test issue 16684 - When using read_json to read data, it always converts the md5 string to uuid format.
# group: [issues]
require json
statement ok
PRAGMA enable_verification
statement ok
copy (select '00000000000000000000000000000000' md5) to '__TEST_DIR__/issue16684.json'
# should be varchar, not uuid (no hyphens)
query II
select md5, typeof(md5) from '__TEST_DIR__/issue16684.json'
----
00000000000000000000000000000000 VARCHAR
statement ok
copy (select '00000000-0000-0000-0000-000000000000' id) to '__TEST_DIR__/issue16684.json'
# if we add hyphens we get a uuid
query II
select id, typeof(id) from '__TEST_DIR__/issue16684.json'
----
00000000-0000-0000-0000-000000000000 UUID