-
Notifications
You must be signed in to change notification settings - Fork 24
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
chore(web-console): Add DEDUP
support for Copy schema to clipboard
#190
base: main
Are you sure you want to change the base?
Conversation
DEDUP
support for Copy schema to clipboard
DEDUP
support for Copy schema to clipboard
DEDUP
support for Copy schema to clipboard
DEDUP
support for Copy schema to clipboard
DEDUP
support for Copy schema to clipboard
DEDUP
support for Copy schema to clipboard
I've found a weird issue. If you create a table with dedup, then disable, it might still generate a DEDUP with empty keys (invalid). But not always? Check this out
|
When using the web console to create table, I can create a table using DEDUP columns even if the designated timestamp is not part of the dedup. Designated timestamp must be selected if dedup is enabled. Not sure what the right action would be here:
|
@javier I've been able to replicate the above issue and provide a fix. Could you pull the branch and check again? Thanks! 🙂 |
@javier I have fixed the above issue, and added a check that even if user selects a dedup key first and disables WAL afterwards, the system will detect it and won't try to set |
@javier I have decided to add the designated timestamp if user forgot to do it, instead of throwing an error. |
This works now. But I have the contrary effect. If I disable upsert on a table and then enable again, when I get the schema it comes with no DEDUP. If I alter a second time, then it is actually updated when I get the schema. Same if I change the schema on a different tab or via REST API. The get table schema gets the former version rather than the updated one. |
tried it and seems to work fine :) |
This works fine now |
@javier Fixed the above issues:
Additionally:
|
Closes #184
Adding dedup configuration to table schema
If
DEDUP UPSERT KEYS(key1, key2)
has been used when creating a table, it should also be included in the generated DDL statement inCopy schema to clipboard
.Steps to test:
Copy schema to clipboard
. The copied statement should include theDEDUP...
statement from the first CREATE query above.Adding dedup option to Create Table UI
This PR also adds the new "dedup" button in each column row, so that user might mark these as deduplication keys.
Disabled - incompatible column type or WAL not enabled:
Can be enabled - all good: