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

Incorrect default value #3479

Closed
WenyXu opened this issue Mar 11, 2024 · 1 comment · Fixed by #3483
Closed

Incorrect default value #3479

WenyXu opened this issue Mar 11, 2024 · 1 comment · Fixed by #3483
Labels
O-fuzz Found by fuzz tests

Comments

@WenyXu
Copy link
Member

WenyXu commented Mar 11, 2024

What type of bug is this?

Unexpected error

What subsystems are affected?

Table Engine

Minimal reproduce step

  1. Create a table
CREATE TABLE `ExcePTuRi`(
non TIMESTAMP(6) TIME INDEX,
`iUSTO` DOUBLE DEFAULT 0.047318541668048164
)
ENGINE=mito
  1. Check the column default value
SELECT table_name,column_name,column_default FROM information_schema.columns WHERE table_name = 'ExcePTuRi'; 

What did you expect to see?

+------------+-------------+----------------------+
| table_name | column_name | column_default       |
+------------+-------------+----------------------+
| ExcePTuRi  | non         | NULL                 |
| ExcePTuRi  | iUSTO       | 0.047318541668048164 |
+------------+-------------+----------------------+

What did you see instead?

+------------+-------------+---------------------+
| table_name | column_name | column_default      |
+------------+-------------+---------------------+
| ExcePTuRi  | non         | NULL                |
| ExcePTuRi  | iUSTO       | 0.04731854166804816 |
+------------+-------------+---------------------+

What operating system did you use?

doesn't matter

What version of GreptimeDB did you use?

main

Relevant log output and stack trace

No response

@WenyXu WenyXu added the O-fuzz Found by fuzz tests label Mar 11, 2024
@WenyXu
Copy link
Member Author

WenyXu commented Mar 11, 2024

See also: serde-rs/json#536

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
O-fuzz Found by fuzz tests
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant