Skip to content
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

Failed to create table with negative default value #3204

Closed
WenyXu opened this issue Jan 19, 2024 · 0 comments · Fixed by #3217
Closed

Failed to create table with negative default value #3204

WenyXu opened this issue Jan 19, 2024 · 0 comments · Fixed by #3217
Labels
C-bug Category Bugs O-fuzz Found by fuzz tests
Milestone

Comments

@WenyXu
Copy link
Member

WenyXu commented Jan 19, 2024

What type of bug is this?

Unexpected error

What subsystems are affected?

Other

Minimal reproduce step

CREATE TABLE quidem(
  consequatur BIGINT DEFAULT 5664459986523542528,
  alias SMALLINT NOT NULL,
  velit FLOAT,
  repellendus SMALLINT,
  quod BIGINT DEFAULT -6372301239504951450,
  nihil TIMESTAMP(9) TIME INDEX
) ENGINE = mito;

What did you expect to see?

It should be able to create the table.

What did you see instead?

message: “Unsupported expr in default constraint: UnaryOp { op: Minus, expr: Value(Number(\“6372301239504951450\“, false)) } for column: quod”

What operating system did you use?

not matter

What version of GreptimeDB did you use?

0.6.0

Relevant log output and stack trace

No response

@WenyXu WenyXu added C-bug Category Bugs O-fuzz Found by fuzz tests labels Jan 19, 2024
@killme2008 killme2008 added this to the v0.7 milestone Mar 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category Bugs O-fuzz Found by fuzz tests
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants