databendlabs / databend

๐——๐—ฎ๐˜๐—ฎ, ๐—”๐—ป๐—ฎ๐—น๐˜†๐˜๐—ถ๐—ฐ๐˜€ & ๐—”๐—œ. Modern alternative to Snowflake. Cost-effective and simple for massive-scale analytics. https://databend.com
https://docs.databend.com
Other
7.71k stars 732 forks source link

fix: Multi-thread recreate view/table gives error #16465

Closed zhyass closed 1 week ago

zhyass commented 1 week ago

I hereby agree to the terms of the CLA available at: https://docs.databend.com/dev/policies/cla/

Summary

When executing DROP TABLE IF EXISTS, if the table metadata contains a drop_on flag, indicating that the table has already been marked for deletion, no error will be returned. This ensures the operation is idempotent, preventing unnecessary errors from being raised if the table has already been dropped.

Tests

Type of change


This change isโ€‚Reviewable

drmingdrmer commented 1 week ago

Nice shot!