Repository navigation
Conversation
|
Workflow [PR], commit [c3afc91] Summary: ❌
AI ReviewSummaryThis PR adds PR Metadata
Findings
Tests
Final Verdict
LLVM Coverage Report
Changed lines: Changed C/C++ lines covered: 93/370 (25.14%) · Uncovered code |
|
|
||
| /// Iceberg REST catalog for Amazon S3 Tables (SigV4, signing name `s3tables`). | ||
| /// https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-tables-integrating-open-source.html | ||
| class S3TablesCatalog final : public RestCatalog |
There was a problem hiding this comment.
S3TablesCatalog inherits RestCatalog::createTable unchanged, so CREATE TABLE still sends the generic Iceberg REST payload with stage-create = false (RestCatalog::createTable sets it unconditionally at src/Databases/DataLake/RestCatalog.cpp:1736). Amazon S3 Tables rejects any stage-create option on CreateTable with 400 Bad Request, so this catalog type will still fail on plain CREATE TABLE / CTAS even after the SigV4 work lands. This needs an S3 Tables-specific createTable override that omits that field before we expose the catalog as supporting writes.
There was a problem hiding this comment.
AWS: "The stage-create option is not supported […] This means you cannot create a table from query results using CREATE TABLE AS SELECT (CTAS)"
| } | ||
| /// We cannot use query context here, because drop is executed in the background. | ||
| configuration->drop(Context::getGlobalContextInstance()); | ||
| configuration->drop(drop_context); |
There was a problem hiding this comment.
After s3tables now purge-deletes the table bucket in catalog->dropTable(..., true), this unconditional second phase still runs the generic Iceberg cleanup. IcebergMetadata::drop starts by listFiles(*object_storage, persistent_components.table_path, ...) at src/Storages/ObjectStorage/DataLakes/Iceberg/IcebergMetadata.cpp:1486, and on S3 that becomes ListObjectsV2 with throwIfError(...) on any NoSuchBucket at src/Disks/DiskObjectStorage/ObjectStorages/S3/S3ObjectStorage.cpp:371-372. So a successful purge can still surface as a user-visible DROP TABLE exception after the destructive work already happened. We need to skip configuration->drop for s3tables (or make the Iceberg drop path tolerate a missing bucket after catalog-side purge).
Build profile diff (arm_release)Comparing Binary sizes
Only the stripped binary is compared: the official master build keeps debug symbols while PR builds strip them, so the other binaries differ by construction. Object file sizes
|
| Object file | Master | PR | Δ |
|---|---|---|---|
src/CMakeFiles/dbms.dir/Databases/DataLake/S3TablesCatalog.cpp.o |
new | 320.40 KiB | +320.40 KiB |
src/CMakeFiles/dbms.dir/Databases/DataLake/AWSV4Signer.cpp.o |
new | 66.27 KiB | +66.27 KiB |
src/CMakeFiles/clickhouse_common_io.dir/IO/S3/URI.cpp.o |
106.20 KiB | 142.43 KiB | +36.23 KiB (+34.12%) |
737 more object files are built by the master warmup baseline only (it builds every object-file target, a pull request build only clickhouse-bundle) and not compared.
Compile time of recompiled translation units
1880 translation units recompiled, 14176 s compile time in total, 1878 of them have a recent master baseline.
Translation units without a recent master baseline:
src/Databases/DataLake/S3TablesCatalog.cpp: 12.7 s
| case DB::DatabaseDataLakeCatalogType::S3_TABLES: | ||
| { | ||
| #if USE_AWS_S3 && USE_SSL | ||
| catalog_impl = std::make_shared<DataLake::S3TablesCatalog>( |
There was a problem hiding this comment.
This enables catalog_type = 's3tables' in the live DataLakeCatalog path, but the PR still ships with no focused coverage for the feature-specific contract. There are no tests in the diff for the CREATE DATABASE ... catalog_type='s3tables' flow, CREATE/INSERT/SELECT/DROP TABLE, or the AWS-specific auth paths introduced here (aws_external_id, temporary credential refresh, iceberg_delete_data_on_drop). Given how much behavior diverges from generic RestCatalog, I don't think the advertised "working INSERT" claim is proven yet without at least one focused integration test and one auth-path regression test.
|
I'll merge this PR as most of the work was done in parent PR. I just reviewed it and added support for inserts |
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
S3 tables engine catalog for datalakes. Same as #103220, but with working INSERT
Version info
26.8.1.1361(included in26.8and later)