timeplus-io / proton-go-driver

Go driver for Timeplus Proton
https://timeplus.com
Apache License 2.0
4 stars 2 forks source link

The error message show the `json` type is not supported #19

Open gangtao opened 2 years ago

gangtao commented 2 years ago

the query from front end returns following error: image

proton-client works fine:

show create jsonstream

SHOW CREATE TABLE jsonstream

Query id: 5de49d3e-c632-46dd-9b30-4294a7b1e9fb

┌─statement──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│ CREATE STREAM default.jsonstream
(`c1` json, `_tp_time` datetime64(3, 'UTC') DEFAULT now64(3, 'UTC') CODEC(DoubleDelta, LZ4), `_tp_index_time` datetime64(3, 'UTC') CODEC(DoubleDelta, LZ4)
)
ENGINE = Stream(1, 1, rand())
PARTITION BY to_YYYYMM(_tp_time)
ORDER BY to_YYYYMMDD(_tp_time)
SETTINGS subtype = 'tabular', index_granularity = 8192 │
└────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘

1 rows in set. Elapsed: 0.005 sec. 
select * from table(jsonstream);

SELECT
  *
FROM
 table(jsonstream)

Query id: 6c8785aa-9cd4-4ece-827a-888c64a8c959

┌─c1────────────┬────────────────_tp_time─┬──────────_tp_index_time─┐
│ {"a":1,"b":0} │ 2022-06-09 17:51:14.499 │ 2022-06-09 17:51:16.499 │
│ {"a":2,"b":1} │ 2022-06-09 17:51:14.499 │ 2022-06-09 17:51:16.499 │
└───────────────┴─────────────────────────┴─────────────────────────┘

2 rows in set. Elapsed: 0.004 sec. 
jovezhong commented 2 years ago

(Jove Github Bot) assuming it is not done, deferred this ticket to the next sprint.

jovezhong commented 2 years ago

is this resolved? @qijun-niu-timeplus , @chenziliang ?

jovezhong commented 2 years ago

(Jove Github Bot) assuming it is not done, deferred this ticket to the next sprint.

jovezhong commented 2 years ago

(Jove Github Bot) assuming it is not done, deferred this ticket to the next sprint.

jovezhong commented 2 years ago

(Jove Github Bot) assuming it is not done, deferred this ticket to the next sprint.

jovezhong commented 2 years ago

(Jove Github Bot) assuming it is not done, deferred this ticket to the next sprint.