ClickHouse® is a real-time analytics DBMS
Go to file
Azat Khuzhin 71a99ab27c Accept real file size in createReadBufferFromFileBase()
Right now streams relies on correct file size not the number of bytes
that will be read from the stream, to overcome one bug in the linux
kernel that may return EIINVAL for pread() with offset pass the EOF.

v2: Swap read_hint and file_size (since it is easy to miss something)

Before the first argument to readFile()/createReadBufferFromFileBase()
was read_hint, not the file_size, and let's preserve the order, since
it is easy to miss something

This will also fix 02051_read_settings test automatically because now
MergeTreeReaderStream will pass estimated_sum_mark_range_bytes to
read_hint not file_size, previously it cause on of the following errors:
- Attempt to read after EOF w/ O_DIRECT
- and LOGICAL_ERROR while adjusting granulas w/o O_DIRECT

This will also improve zero-length reads guard (via
ReadBufferFromEmptyFile), that had been added in #30190

v3: fix for other storages that wasn't enabled in fast-test
v4: ignore ENOENT/ENOTSUP in readFile
2022-01-04 10:53:17 +03:00
.github Update CODEOWNERS 2022-01-03 02:08:36 +03:00
base Enable query profiler 2021-12-24 12:25:27 +03:00
benchmark Add benchmark for DuckDB 2021-10-31 21:05:07 +03:00
cmake Fix 2021-12-31 20:53:03 +08:00
contrib Merge pull request #32484 from Algunenano/libcxx13_take2 2021-12-25 10:14:12 +03:00
debian Merge pull request #32415 from ClickHouse/arm64_workers 2021-12-17 08:46:52 +03:00
docker Add retries to AST fuzzer 2021-12-28 16:12:51 +03:00
docs Update string-search-functions.md 2022-01-03 16:19:54 -04:00
programs Reimplement #33054 2021-12-29 22:09:07 +03:00
src Accept real file size in createReadBufferFromFileBase() 2022-01-04 10:53:17 +03:00
tests Merge pull request #26559 from nikitamikhaylov/merging-dev-sum-bug 2022-01-03 19:46:54 +03:00
utils Merge pull request #33175 from Alex-Burmak/clickhouse-diagnostics 2021-12-29 10:12:55 +03:00
website Add benchmark results from Lorenzo 2021-12-28 16:49:41 +03:00
.clang-format Fixed wrong code around Memory Profiler 2020-03-03 03:24:44 +03:00
.clang-tidy Revert "Revert "Fix tidy"" 2021-09-06 12:16:52 +03:00
.editorconfig Changed tabs to spaces in editor configs and in style guide [#CLICKHOUSE-3]. 2017-04-01 11:35:09 +03:00
.gitattributes Cleanup .gitattributes 2021-12-11 21:27:36 +03:00
.gitignore fix style check 2021-09-21 10:28:33 +03:00
.gitmodules Use ClickHouse-Extras for the submodules 2021-12-23 09:19:10 +01:00
.potato.yml Fix yamllint issues 2021-02-20 23:25:21 +03:00
.pylintrc Add pylintrc config 2021-01-26 23:35:56 +03:00
.vimrc Changed tabs to spaces in editor configs and in style guide [#CLICKHOUSE-3]. 2017-04-01 11:35:09 +03:00
.yamllint Drop truthy.check-keys from yamllint (does not supported on CI) 2021-02-21 06:15:36 +03:00
AUTHORS Update AUTHORS 2021-09-22 11:38:03 +03:00
CHANGELOG.md Update CHANGELOG.md 2021-12-15 20:40:42 -04:00
CMakeLists.txt Fix shared hermetic builds on Arch linux 2021-12-24 23:43:12 +03:00
CODE_OF_CONDUCT.md Add minimal code of conduct #9676 2020-03-16 12:44:28 +03:00
CONTRIBUTING.md Mention ClickHouse CLA in CONTRIBUTING.md (#32697) 2021-12-14 03:47:19 +03:00
docker-compose.yml Change Docker org name 2021-09-20 01:52:21 +03:00
format_sources allow several <graphite> targets (#603) 2017-03-21 23:08:09 +04:00
LICENSE Sync copyrights 2021-10-04 09:16:18 +03:00
PreLoad.cmake Hermetic shared build 2021-12-20 16:59:42 +08:00
README.md Update README.md 2021-10-12 15:38:40 +03:00
release Add aarch64 deb package 2021-12-16 12:42:49 +01:00
SECURITY.md Update SECURITY.md 2021-11-25 00:59:52 +03:00
uncrustify.cfg Better .clang-format and uncrustify.cfg 2018-11-29 15:45:34 +03:00

ClickHouse — open source distributed column-oriented DBMS

ClickHouse® is an open-source column-oriented database management system that allows generating analytical data reports in real-time.

  • Official website has a quick high-level overview of ClickHouse on the main page.
  • Tutorial shows how to set up and query a small ClickHouse cluster.
  • Documentation provides more in-depth information.
  • YouTube channel has a lot of content about ClickHouse in video format.
  • Slack and Telegram allow chatting with ClickHouse users in real-time.
  • Blog contains various ClickHouse-related articles, as well as announcements and reports about events.
  • Code Browser with syntax highlight and navigation.
  • Contacts can help to get your questions answered if there are any.