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 #4366

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

Conversation

riverszhang89
Copy link
Contributor

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.

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.

Lint check:

@@ sqlite/src/parse.y @@
+ Custom tokens and rules must be defined after SQLite's.
+ Please update SQL documentation and bubble diagrams to reflect the changes you've made, if necessary.

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: Error ⚠.
Regression testing: 11/528 tests failed ⚠.

The first 10 failing tests are:
lostwrite [setup failure]
schemalk
auth_twofiles_generated
auth_queueodh_generated
auth
comdb2sys
comdb2sys_queueodh_generated
comdb2sys_pagesize_generated
sc_downgrade
truncatesc_offline_generated

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.

Lint check:

@@ sqlite/src/parse.y @@
+ Custom tokens and rules must be defined after SQLite's.
+ Please update SQL documentation and bubble diagrams to reflect the changes you've made, if necessary.

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: 6/529 tests failed ⚠.

The first 10 failing tests are:
schemalk_logicalsc_generated
schemalk_extralock_generated
schemalk
queuedb_rollover
truncatesc_offline_generated

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 <hzhang320@bloomberg.net>
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.

None yet

2 participants