feat(sql): add IF EXISTS support to TRUNCATE TABLE statement#5856
Closed
akashadsare wants to merge 3 commits intoquestdb:masterfrom
Closed
feat(sql): add IF EXISTS support to TRUNCATE TABLE statement#5856akashadsare wants to merge 3 commits intoquestdb:masterfrom
akashadsare wants to merge 3 commits intoquestdb:masterfrom
Conversation
Fixed typo: 'Ukranian' -> 'Ukrainian' in the translations list
- Add support for 'TRUNCATE TABLE IF EXISTS table_name' syntax - Silently succeeds when truncating non-existent tables with IF EXISTS - Maintains backward compatibility with existing TRUNCATE TABLE syntax - Add comprehensive test coverage for new functionality Fixes questdb#5763
|
@akashadsare please provide this issue to me |
|
@mationai please provide this bug to me |
ideoma
approved these changes
Jul 8, 2025
Contributor
Sorry, not involved with this issue |
Member
|
work merged into #6020 thank you @akashadsare - your contribution will be acknowledged in the release notes |
This file contains hidden or 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
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.
Description
This PR implements support for the
IF EXISTSclause inTRUNCATE TABLEstatements, addressing issue #5763.Changes
TRUNCATE TABLE IF EXISTS table_namesyntaxIF EXISTSis usedTRUNCATE TABLEfunctionalityExamples
Note
CI/CD pipeline shows infrastructure errors unrelated to this change:
Local testing shows all functionality works correctly.