Skip to content

feature drop detached table - #62490

Closed
k-morozov wants to merge 118 commits into
ClickHouse:masterfrom
k-morozov:feature/drop_detached_tables
Closed

k-morozov wants to merge 118 commits into
ClickHouse:masterfrom
k-morozov:feature/drop_detached_tables

Conversation

@k-morozov

@k-morozov k-morozov commented Apr 10, 2024 •

Copy link
Copy Markdown
Contributor

Changelog category (leave one):

  • New Feature

Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):

Feature for drop detached table.

Documentation entry for user-facing changes

  • Documentation is written (mandatory for new features)

Add feature to execute DROP TABLE for detached tables.

Information about CI checks: https://clickhouse.com/docs/en/development/continuous-integration/


Modify your CI run:

NOTE: If your merge the PR with modified CI you MUST KNOW what you are doing
NOTE: Checked options will be applied if set before CI RunConfig/PrepareRunConfig step

Include tests (required builds will be added automatically):

  • Fast test
  • Integration Tests
  • Stateless tests
  • Stateful tests
  • Unit tests
  • Performance tests
  • All with ASAN
  • All with TSAN
  • All with Analyzer
  • Add your option here

Exclude tests:

  • Fast test
  • Integration Tests
  • Stateless tests
  • Stateful tests
  • Performance tests
  • All with ASAN
  • All with TSAN
  • All with MSAN
  • All with UBSAN
  • All with Coverage
  • All with Aarch64
  • Add your option here

Extra options:

  • do not test (only style check)
  • disable merge-commit (no merge from master before tests)
  • disable CI cache (job reuse)

Only specified batches in multi-batch jobs:

  • 1
  • 2
  • 3
  • 4

@robot-ch-test-poll3 robot-ch-test-poll3 added the pr-feature Pull request with new product feature label Apr 10, 2024
@robot-ch-test-poll3

robot-ch-test-poll3 commented Apr 10, 2024 •

Copy link
Copy Markdown
Contributor

This is an automated comment for commit fe8699d with description of existing statuses. It's updated for the latest CI running

❌ Click here to open a full report in a separate page

Check nameDescriptionStatus
Integration testsThe integration tests report. In parenthesis the package type is given, and in square brackets are the optional part/total tests❌ failure
Successful checks
Check nameDescriptionStatus
BuildsThere's no description for the check yet, please add it to tests/ci/ci_config.py:CHECK_DESCRIPTIONS✅ success
Fast testNormally this is the first check that is ran for a PR. It builds ClickHouse and runs most of stateless functional tests, omitting some. If it fails, further checks are not started until it is fixed. Look at the report to see which tests fail, then reproduce the failure locally as described here✅ success
Flaky testsChecks if new added or modified tests are flaky by running them repeatedly, in parallel, with more randomization. Functional tests are run 100 times with address sanitizer, and additional randomization of thread scheduling. Integration tests are run up to 10 times. If at least once a new test has failed, or was too long, this check will be red. We don't allow flaky tests, read the doc✅ success
Stateless testsRuns stateless functional tests for ClickHouse binaries built in various configurations -- release, debug, with sanitizers, etc✅ success
Style checkRuns a set of checks to keep the code style clean. If some of tests failed, see the related log from the report✅ success
Unit testsRuns the unit tests for different release types✅ success

@yariks5s yariks5s added the can be tested Allows running workflows for external contributors label Apr 10, 2024
@k-morozov k-morozov changed the title addd feature drop detached table feature drop detached table Apr 10, 2024
@clickhouse-ci

clickhouse-ci Bot commented Apr 10, 2024

Copy link
Copy Markdown

This is an automatic comment. The PR descriptions does not match the template.

Please, edit it accordingly.

The error is: Changelog entry required for category 'New Feature'

Comment thread src/Databases/IDatabase.h Resolved
{
if (query.kind == ASTDropQuery::Kind::Drop)
{
auto database = DatabaseCatalog::instance().getDatabase(table_id.getDatabaseName());

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

In general it's a strange case, because we have to check the query.if_exists, otherwise the exception (database does not exist) will occurs . But as for me IF EXISTS statement should check that table exists and ready to use, but it is detached (does this mean that the table exists or not?). Assume that we won't have such questions if alter table drop detached is used.

Let's keep it as is, the folks from ch will help.

Comment thread src/Databases/DatabaseOnDisk.cpp Resolved
Comment thread src/Databases/DatabaseAtomic.cpp Resolved
Comment thread src/Databases/DatabaseOnDisk.cpp Resolved
@clickhouse-gh

clickhouse-gh Bot commented Dec 17, 2024

Copy link
Copy Markdown
Contributor

Dear @tavplubix, this PR hasn't been updated for a while. You will be unassigned. Will you continue working on it? If so, please feel free to reassign yourself.

@tavplubix

Copy link
Copy Markdown
Member

The Fast test failure is probably related, I don't think merging master will help

@k-morozov
k-morozov force-pushed the feature/drop_detached_tables branch from 1577dad to fe8699d Compare January 11, 2025 08:26
@k-morozov

Copy link
Copy Markdown
Contributor Author

The Fast test failure is probably related, I don't think merging master will help

The issue was related to the length of the table's name.

@clickhouse-gh

clickhouse-gh Bot commented Apr 14, 2025 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [006d51c]

@k-morozov

Copy link
Copy Markdown
Contributor Author

Here we see that test_storage_rabbitmq is flaky.

Other tests were completed without errors.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

can be tested Allows running workflows for external contributors pr-feature Pull request with new product feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants