clickhouse-java
clickhouse-java copied to clipboard
Returned JSON column not presented as JSON but as HashMap
Description
I'm on version 0.9.4. Continuation of Issue #2598. First off, thanks for listening and solving the exceptions! However, I want to highlight another thing regarding this matter.
When you query for these JSON columns they are not returned representable as JSON, but as HashMap.
Steps to reproduce
Create a table with id and JSON as columns
CREATE TABLE test (id UInt64, data JSON) ENGINE = MergeTree ORDER BY id;
Insert data
INSERT INTO test (id, data) VALUES
(
1,
'{"Works":"bye"}'
);
Query it
SELECT * from test where id=1;
Expected Behaviour
Return
1 : {"Works":"bye"}
Actual Behaviour
Return
1 : {Works=bye}
Hello again,
After some more investigating I've deduced that this shouldn't matter. Please ignore the bug report!