We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Incorrect result
Other
CREATE TABLE `phy`(ts timestamp time index, val double) engine=metric with ("physical_metric_table" = "");
CREATE TABLE t1(ts timestamp time index, val double, host string not null primary key) engine=metric with ("on_physical_table" = "phy");
mysql> desc t1; +--------+----------------------+------+------+---------+---------------+ | Column | Type | Key | Null | Default | Semantic Type | +--------+----------------------+------+------+---------+---------------+ | host | String | PRI | NO | | TAG | | ts | TimestampMillisecond | PRI | NO | | TIMESTAMP | | val | Float64 | | YES | | FIELD | +--------+----------------------+------+------+---------+---------------+ 3 rows in set (0.00 sec) mysql> desc phy; +------------+----------------------+------+------+---------+---------------+ | Column | Type | Key | Null | Default | Semantic Type | +------------+----------------------+------+------+---------+---------------+ | ts | TimestampMillisecond | | NO | | FIELD | | val | Float64 | | YES | | FIELD | | __table_id | UInt32 | PRI | NO | | TAG | | __tsid | UInt64 | PRI | NO | | TAG | | host | String | PRI | YES | | TAG | +------------+----------------------+------+------+---------+---------------+ 5 rows in set (0.00 sec)
The physical table's host column also has the not null constraint.
host
not null
It does not.
doesn't matter
0.7.2
No response
The text was updated successfully, but these errors were encountered:
It seems it's by design. The engine will ignore the constraint on the logical table columns. @waynexia
Sorry, something went wrong.
Track in #3780
No branches or pull requests
What type of bug is this?
Incorrect result
What subsystems are affected?
Other
Minimal reproduce step
What did you expect to see?
The physical table's
host
column also has thenot null
constraint.What did you see instead?
It does not.
What operating system did you use?
doesn't matter
What version of GreptimeDB did you use?
0.7.2
Relevant log output and stack trace
No response
The text was updated successfully, but these errors were encountered: