trinodb / grafana-trino

The Trino datasource allows to query and visualize Trino data from within Grafana.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Recognize numeric data types

nineinchnick opened this issue · comments

I tried running a query like this:

select date_trunc('day', created_at), count(*) as num_issues from hive.v2.issues group by 1 order by 1

and got:

Data is missing a number field

after checking the query inspector, it turned out that the count is recognized as a string, not an integer.

String is default type when it is not able to find respective converter based on InputTypeName and ScanType is not provided.

What is database column type ?
we can just add converter based on that type and it should work

Done in 18fb8d9