Repository navigation
Conversation
zvonand
force-pushed
the
zvonand-create-iceberg-table
branch
from
March 4, 2026 17:59
5133bc3 to
a81e99e
Compare
Contributor
|
Workflow [PR], commit [f3c6b87] Summary: ❌
|
zvonand
force-pushed
the
zvonand-create-iceberg-table
branch
from
March 26, 2026 15:10
b3846c8 to
b381484
Compare
zvonand
force-pushed
the
zvonand-create-iceberg-table
branch
from
March 31, 2026 12:22
b381484 to
97a60e7
Compare
Member
|
The Stress test (arm_msan) failure is fixed by #101239, which should be merged first. After it is merged, please update the branch to include the fix. |
1 task done
CREATE TABLE / DROP TABLE for DataLakeCatalog; optionally prune on DROP
…erg-table Conflict resolutions: - `master` added `IDatabase::maybeCreateTableInExternalCatalog`: an explicit Iceberg engine without arguments is created through a catalog that writes the first metadata file. It is kept as is; a `CREATE TABLE` without `ENGINE` still goes through this PR's `DatabaseDataLake::createTable`, and the removed `getDefaultTableEngineName` hook stays removed. - `DatabaseDataLake`: keep this PR's `getNewTableLocation`, and port `master`'s handling of a namespace location that is not a URI (e.g. Databricks `not_used`) into it. Keep `master`'s `tryGetNewTableMetadata` and `checkStorageTypeMatchesEngine`, which `maybeCreateTableInExternalCatalog` uses. - `RestCatalog::createTable`: use `master`'s `getCreateTableEndpoint` / `buildCreateTableRequestBody` and keep this PR's table name checks, `decodeTableName` and `IF NOT EXISTS` handling. - `GlueCatalog`: `master` removed the timestamp type resolution and fills `StorageDescriptor.Columns`; keep this PR's `getIcebergMetadataObject`. The partition and sorting keys are now read before the schema, because the schema code returns early for tables with a metadata file. - `ITableFunction::execute` was restructured on `master`; pass `canDeleteDataOnDrop` to the proxy there. - `test_create_without_engine_arguments_namespace_location_not_a_uri`: drop the check that a `CREATE TABLE` without `ENGINE` reports `cannot tell where table`; this PR places such a table itself. - Add `[[nodiscard]]` to the new getters and consume the results of validation-only calls that became `[[nodiscard]]` on `master`. Co-Authored-By: Claude Opus 5.5 <[email protected]>
- `05509_s3tables_catalog_sigv4_signed_headers`: a `CREATE TABLE` without `ENGINE` now checks whether the table exists before it registers the namespace. That `GET` carries no `X-Iceberg-Access-Delegation`, so the stub requires the header to be signed only when it is sent. The create still ends with `BAD_ARGUMENTS` after the signed namespace `POST`. - `05562_create_table_deltalake_catalog_register_conflict`: `DataLakeCatalog` tables take only the location (plus the database engine arguments), so drop the redundant `Parquet` argument of `DeltaLakeLocal`. Otherwise the create is refused before it reaches the registration path the test covers. - Remove `05394_iceberg_drop_temporary_table_delete_data`: `master` refuses temporary tables with engines that do not support them (74af670), `IcebergLocal` included. CI report: https://s3.amazonaws.com/clickhouse-test-reports/praktika.html?PR=98670&sha=27370c82ed6da0e2cb6e95ee34e7d4d5015637f7&name_0=PR Co-Authored-By: Claude Opus 5.5 <[email protected]>
Member
|
🕵 I merged Merge decisions worth a look:
CI fixes:
Both tests pass locally on the merged build, as do this PR's other stateless tests. I did not rerun the integration tests locally. The open review thread about persisting the purge decision for deferred drop recovery still needs a decision from the authors (format of |
The decision captured by `prepareForDrop` lived only in the storage object, so a drop still pending at a server restart was recovered by `DatabaseCatalog::enqueueDroppedTableCleanup` without it, and the data of the table was kept. `DatabaseAtomic::dropTableImpl` now writes a marker file next to the dropped metadata (`metadata_dropped/<db>.<table>.<uuid>.del`) when `deletesDataOnDrop` is true, and removes a stale one otherwise. On recovery, a table with the marker gets `prepareForDrop` again with `data_lake_delete_data_on_drop` enabled. The marker is removed by `dropTableFinally` and `undropTable`; the dropped `.sql` file itself is unchanged, so `UNDROP TABLE` is not affected. Address review: ClickHouse#98670 (comment)
This branch has not been deployed
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.
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Supports
CREATE TABLE,CREATE TABLE … AS source, andDROP TABLEforDataLakeCatalog;DROP TABLEcan request catalog-side data purge via the newdata_lake_delete_data_on_dropsetting.Documentation entry for user-facing changes
Workflow [PR]
Sync PR [sync-upstream/pr/98670]