GreptimeTeam / GreptimeTeam/dashboard

Optimising data type rendering

Open
#24 2 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Vue
Stars
110
Forks
29
Avg merge
14h 29m
Merged PRs (30d)
6

Description

As we have finished rendering data as table and chart, the next step is to visualize data type/table schema information.

## Date types

As of https://github.com/GreptimeTeam/greptimedb/tree/v0.1.0-alpha-20221205-weekly, we have following data types supported:

- Null (can be ignored when rendering schema)
- Boolean
- Numbers:
- Int8
- Int16
- Int32
- Int64
- UInt8
- UInt16
- UInt32
- UInt64
- Float32
- Float64
- Strings:
- Binary bytes (not supported for now)
- String
- Time and date:
- Date
- DateTime
- Timestamp
- Compound types
- List (not well supported at the moment, ignored for now)

https://github.com/GreptimeTeam/greptimedb/blob/v0.1.0-alpha-20221205-weekly/src/datatypes/src/data_type.rs#L34

So the main types we going to render are:

- Boolean
- Number
- Strings
- Date time types

## Rendering

How we are rendering these types:

- Use icon and tooltip for table schema tree
- Use icon and tooltip for result table row header
- Use custom styles for result table content:
- use special style for string, hex bytes
- use special style for date time types, add readable tooltip for timestamps

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.