-
Notifications
You must be signed in to change notification settings - Fork 316
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create columns with tag semantic type #2183
Comments
I'd like to work on this issue, but do I need to wait until |
@NiwakaDev You can checkout a branch from |
Thank you. But we don't want this feature yet. It needs more discussion. |
Until this discussion land, I think that we can add a section about relationship between primary keys and tags in the document so that user can easily understand: |
Can't agree more with it, thank u. |
What type of enhancement is this?
API improvement, User experience
What does the enhancement do?
If the users write data by influxdb, opentsdb or Prometheus remote write, GreptimeDB will auto-create the table with the correct semantic types:
SemanticType::Tag
for tags(or labels in Prometheus)SematicType::Field
for fields(or values)SematicType::Timestamp
for time index columnBut when using SQL to create table, it doesn't provide a way to create columns with
tag
semantic type,all the columns not in the primary key except time index arefield
semantic type.I think we can provide a SQL extension to create tables with tag columns, for example:
It's the same as:
Then the
host
andidc
will be created withtag
semantics. The columns except time index withoutTAG
option will be created withfield
semantics.Implementation challenges
tag
option.tag
semantic type to create table request.The text was updated successfully, but these errors were encountered: