-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
feat(sql): add column type validation for ALTER COLUMN statements #3633
Merged
bluestreak01
merged 4 commits into
master
from
puzpuzpuz_alter_table_char_sequence_race
Aug 15, 2023
Merged
feat(sql): add column type validation for ALTER COLUMN statements #3633
bluestreak01
merged 4 commits into
master
from
puzpuzpuz_alter_table_char_sequence_race
Aug 15, 2023
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
puzpuzpuz
added
Bug
Incorrect or unexpected behavior
SQL
Issues or changes relating to SQL execution
labels
Aug 10, 2023
puzpuzpuz
changed the title
feat(sql): add column type validation for ALTER COLUMN ADD INDEX
feat(sql): add column type validation for ALTER COLUMN statements
Aug 10, 2023
puzpuzpuz
force-pushed
the
puzpuzpuz_alter_table_char_sequence_race
branch
from
August 10, 2023 13:13
19ee2a1
to
f69b168
Compare
Also fixes races around CharSequence usage in AlterOperation. The sequences originated in SqlCompiler and were used after the compiler was returned back to the pool leading to data races.
puzpuzpuz
force-pushed
the
puzpuzpuz_alter_table_char_sequence_race
branch
from
August 10, 2023 15:07
f69b168
to
81f547e
Compare
…le_char_sequence_race
core/src/main/java/io/questdb/griffin/engine/ops/AlterOperationBuilder.java
Outdated
Show resolved
Hide resolved
…able_char_sequence_race
ideoma
previously approved these changes
Aug 15, 2023
[PR Coverage check]😍 pass : 45 / 50 (90.00%) file detail
|
@bluestreak01 the PR is all green and should be ready for review. |
bluestreak01
approved these changes
Aug 15, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Closes #3515
Also fixes races around
CharSequence
usage inAlterOperation
. The sequences originated inSqlCompiler
and were used after the compiler was returned back to the pool leading to data races. The fix is as simple as keeping the compiler around while we execute the statement (see theOperationExecutor
class).