Skip to content

Integrate with Iceberg REST Catalog - #71542

Merged
kssenii merged 48 commits into
masterfrom
rest-catalog
Dec 12, 2024
Merged

kssenii merged 48 commits into
masterfrom
rest-catalog

Conversation

@kssenii

@kssenii kssenii commented Nov 6, 2024 •

Copy link
Copy Markdown
Member

Changelog category (leave one):

  • New Feature

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

Integrate with Iceberg REST Catalog.

Documentation entry for user-facing changes

  • Documentation is written (mandatory for new features)

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

CI Settings (Only check the boxes if you know what you are doing):

  • Allow: All Required Checks
  • Allow: Stateless tests
  • Allow: Stateful tests
  • Allow: Integration Tests
  • Allow: Fast test
  • Allow: All Builds
  • Allow: batch 1, 2 for multi-batch jobs
  • Allow: batch 3, 4, 5, 6 for multi-batch jobs

  • Exclude: Style check
  • Exclude: Fast test
  • Exclude: All with ASAN
  • Exclude: All with TSAN, MSAN, UBSAN, Coverage
  • Exclude: All with aarch64, release, debug

  • Run only fuzzers related jobs (libFuzzer fuzzers, AST fuzzers, etc.)
  • Exclude: AST fuzzers

  • Do not test
  • Woolen Wolfdog
  • Upload binaries for special builds
  • Disable merge-commit
  • Disable CI cache

@robot-ch-test-poll3 robot-ch-test-poll3 added the pr-feature Pull request with new product feature label Nov 6, 2024
@robot-ch-test-poll1

robot-ch-test-poll1 commented Nov 6, 2024 •

Copy link
Copy Markdown
Contributor

This is an automated comment for commit 11dc8fa 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
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

@alesapin alesapin self-assigned this Nov 13, 2024
@kssenii
kssenii marked this pull request as ready for review November 14, 2024 12:56
@kssenii
kssenii marked this pull request as draft November 19, 2024 13:48
@melvynator melvynator mentioned this pull request Nov 19, 2024
@kssenii
kssenii added this pull request to the merge queue Dec 11, 2024
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Dec 11, 2024
@kssenii

kssenii commented Dec 12, 2024

Copy link
Copy Markdown
Member Author

Integration tests (release) [3/4]

test_refreshable_mat_view/test.py::test_real_wait_refresh[to_clause0-False-False]
test_replicated_merge_tree_s3_zero_copy/test.py::test_drop_table

@kssenii
kssenii added this pull request to the merge queue Dec 12, 2024
Merged via the queue into master with commit 352e9d7 Dec 12, 2024
@kssenii
kssenii deleted the rest-catalog branch December 12, 2024 10:22
@robot-ch-test-poll1 robot-ch-test-poll1 added the pr-synced-to-cloud The PR is synced to the cloud repo label Dec 12, 2024
Comment thread src/Core/Settings.cpp
DECLARE(Int64, prefer_warmed_unmerged_parts_seconds, 0, R"(
Only available in ClickHouse Cloud. If a merged part is less than this many seconds old and is not pre-warmed (see cache_populated_by_fetch), but all its source parts are available and pre-warmed, SELECT queries will read from those parts instead. Only for ReplicatedMergeTree. Note that this only checks whether CacheWarmer processed the part; if the part was fetched into cache by something else, it'll still be considered cold until CacheWarmer gets to it; if it was warmed, then evicted from cache, it'll still be considered warm.
)", 0) \
DECLARE(Bool, allow_experimental_database_iceberg, false, R"(

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

The setting should use the EXPERIMENTAL flag (instead of 0) and ideally it should be in the experimental block (at the end of the list)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Fixed in #73262

@CheSema

CheSema commented Dec 13, 2024 •

Copy link
Copy Markdown
Member

binary_tidy
Builds_2 / s (binary_tidy, builder) / Build-binary_tidy

Has been broken by it

Dec 12 18:21:47 FAILED: src/CMakeFiles/dbms.dir/Databases/Iceberg/RestCatalog.cpp.o 
Dec 12 18:21:47 /build/src/Databases/Iceberg/RestCatalog.cpp:56:5: error: multiple declarations in a single statement reduces readability [readability-isolate-declaration,-warnings-as-errors]
Dec 12 18:21:47    56 |     std::string client_id, client_secret;
Dec 12 18:21:47       |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Dec 12 18:21:47 /build/src/Databases/Iceberg/RestCatalog.cpp:626:17: error: multiple declarations in a single statement reduces readability [readability-isolate-declaration,-warnings-as-errors]
Dec 12 18:21:47   626 |                 std::string access_key_id, secret_access_key, session_token;

It is strange, but that build type was OK in tis PR before the commit
binary_tidy
Builds_2 / s (binary_tidy, builder) / Build-binary_tidy

@rschu1ze rschu1ze mentioned this pull request Dec 13, 2024
@rschu1ze

Copy link
Copy Markdown
Member

Fix for the clang-tidy build: #73265

@clickgapai

Copy link
Copy Markdown
Contributor

Hi @kssenii @alesapin — while reviewing this PR I found the following:

Happy to discuss — close anything that's wrong or already addressed.

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

Labels

pr-feature Pull request with new product feature pr-synced-to-cloud The PR is synced to the cloud repo

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants