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

{171428666}: column character encoding #4990

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

riverszhang89
Copy link
Contributor

This pull request allows users to specify a text column's character set, e.g, CREATE TABLE t(a TEXT ENCODING 'utf8').

Copy link

@roborivers roborivers left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coding style check: Success ✓.
Smoke testing: Success ✓.
Cbuild submission: Success ✓.
Regression testing: 4/596 tests failed ⚠.

The first 10 failing tests are:
comdb2sys_queueodh_generated
comdb2sys_pagesize_generated
comdb2sys
reco-ddlk-sql

A new `ENCODING` keyword is introduced in this patch, that specifies
a character set for a column. Invalid character encoding will be
rejected. So far only `"utf8"` and `NONE` are supported.

This allows users to conveniently create an indexable utf8 cstring column.
It's implemented as a check constraint using the `utf8_validate()` function.

Signed-off-by: Rivers Zhang <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants