feature drop detached table by k-morozov · Pull Request #62490 · ClickHouse/ClickHouse · GitHub
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

feature drop detached table#62490
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

@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 tests/integration/test_drop_detached_table/test.py Outdated
Comment thread tests/integration/test_drop_detached_table/test.py Outdated
Comment thread tests/integration/test_drop_detached_table/test.py Outdated
Comment thread src/Databases/IDatabase.h Outdated
{
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/Interpreters/InterpreterDropQuery.cpp Outdated
Comment thread src/Databases/DatabaseOnDisk.cpp Outdated
Comment thread src/Databases/DatabaseAtomic.cpp Outdated
Comment thread src/Databases/DatabaseOnDisk.cpp
@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

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