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

Ignore exception for trying to resize a column with text255 compresssion encoding #1370

Merged
merged 3 commits into from
Dec 19, 2024

Conversation

spenes
Copy link
Contributor

@spenes spenes commented Dec 13, 2024

Jira ref: PDP-1621

Pre-0.27.0 Schema DDL was making the compression encoding of text255. However, text255 doesn't allow to alter the column therefore we get exception while trying to resize the column. In order to solve this problem, Schema DDL uses zstd compression encoding with enum fields as well starting with 0.27.0.

However compression encoding of the existing columns won't be updated after this change and we will continue to get exception when those columns are tried to be resized. This PR is for catching and ignoring those exceptions.

…text255 compresssion encoding (#1370)

Pre-0.27.0 Schema DDL was making the compression encoding of text255.
However, text255 doesn't allow to alter the column therefore we get
exception while trying to resize the column. In order to solve this
problem, Schema DDL uses zstd compression encoding with enum fields
as well starting with 0.27.0.

However compression encoding of the existing columns won't be updated
after this change and we will continue to get exception when those
columns are tried to be resized. This commit is for catching and ignoring
those exceptions.
spenes added a commit that referenced this pull request Dec 13, 2024
@spenes spenes force-pushed the fix/enum-resize-problem branch from dd27701 to 15eafda Compare December 13, 2024 13:34
spenes added a commit that referenced this pull request Dec 17, 2024
@spenes spenes force-pushed the fix/enum-resize-problem branch from 15eafda to 16c614e Compare December 17, 2024 20:49
spenes added a commit that referenced this pull request Dec 17, 2024
@spenes spenes force-pushed the fix/enum-resize-problem branch from 16c614e to 356c323 Compare December 17, 2024 20:58
@spenes spenes force-pushed the fix/enum-resize-problem branch from 356c323 to 5b2bb1b Compare December 19, 2024 14:14
Github removed sbt from the ubuntu runner image therefore we need to add sbt installation step to CI.
@spenes spenes force-pushed the fix/enum-resize-problem branch from 5b2bb1b to f3e44f4 Compare December 19, 2024 14:38
@spenes spenes changed the base branch from master to develop December 19, 2024 15:32
@spenes spenes merged commit f3e44f4 into develop Dec 19, 2024
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants