-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
cli/dump: COMMENT ON missing #42875
Comments
@jordanlewis Of course. It's likely that I will be able to create the first PR on December 15th. It seems appropriate to be implemented this on |
@hueypark It certainly looks like it. |
This reminds me that this is not the first time we've discovered a new SQL feature that was never added to SHOW CREATE TABLE when it was introduced, and the current setup is prone to such mistakes. Filed #42917 to try to address this testing gap. |
@dt this sounds almost like fuzzing. If you can decouple it enough from the transactional layers, you might be able to fuzz directly for round-trip idempotence. Thnaks for adressing this. |
Fixes cockroachdb#42875 Release note (sql change): SHOW CREATE TABLE now prints comments.
43152: sql: print comments in SHOW CREATE TABLE r=knz a=hueypark Fixes #42875 Release note (sql change): SHOW CREATE TABLE now prints comments. Co-authored-by: Jaewan Park <[email protected]>
Describe the problem
Please describe the issue you observed, and any steps we can take to reproduce it:
If a column has a comment (via
COMMENT ON
), the comment will be missing in thecockroach dumo --dump-mode schema
output.To Reproduce
What did you do? Describe in your own words.
If possible, provide steps to reproduce the behavior:
cockroach dump --dump-mode schema <database>
| grep COMMENTExpected behavior
The schema is dumped with all comments.
Environment:
Additional context
What was the impact?
It silently swallowed my comments, which specified preliminary enum mappings for int2 columns. Thankfully it wasn't much.
The text was updated successfully, but these errors were encountered: