clickhouse-java icon indicating copy to clipboard operation
clickhouse-java copied to clipboard

Returned JSON column not presented as JSON but as HashMap

Open philip-dbvis opened this issue 1 year ago • 1 comments

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}

philip-dbvis avatar Nov 10 '25 09:11 philip-dbvis

Hello again,

After some more investigating I've deduced that this shouldn't matter. Please ignore the bug report!

philip-dbvis avatar Nov 10 '25 14:11 philip-dbvis