ClickHouse® is a real-time analytics DBMS
Go to file
Azat Khuzhin a063097fdf Fix INSERT SELECT incorrectly fills MATERIALIZED column based of Nullable column
Required columns of the default expression should not be converted to NULL,
since this map value to default and MATERIALIZED values will not work.

Consider the following structure:
- A Nullable(Int64)
- X Int64 materialized coalesce(A, -1)

With recursive_null_as_default=true you will get:

    _CAST(coalesce(A, -1), 'Int64') AS X, NULL AS A

And this will ignore default expression.

Fixes: #23524 (Cc: @kssenii)
Fixes: #29729 (Cc: @tavplubix)
Backport: 21.7+
2021-10-15 01:36:09 +03:00
.github
base Fixed tests 2021-10-14 00:33:18 +03:00
benchmark
cmake
contrib
debian
docker Merge branch 'master' into clickhouse-test-http-interface 2021-10-13 16:46:26 +00:00
docs Doc. fix optimize_skip_unused_shards description (#30114) 2021-10-14 15:47:43 +03:00
programs Merge pull request #30179 from kitaisreal/clickhouse-local-support-sql-user-defined-functions 2021-10-14 23:14:18 +03:00
src Fix INSERT SELECT incorrectly fills MATERIALIZED column based of Nullable column 2021-10-15 01:36:09 +03:00
tests Fix INSERT SELECT incorrectly fills MATERIALIZED column based of Nullable column 2021-10-15 01:36:09 +03:00
utils Fixed tests 2021-10-14 00:33:18 +03:00
website Merge pull request #30152 from flickerbox/crb-update-yandex-logo 2021-10-14 01:55:12 +03:00
.clang-format
.clang-tidy
.editorconfig
.gitattributes
.gitignore
.gitmodules
.potato.yml
.pylintrc
.vimrc
.yamllint
AUTHORS
CHANGELOG.md
CMakeLists.txt
CODE_OF_CONDUCT.md
CONTRIBUTING.md
docker-compose.yml
format_sources
LICENSE
PreLoad.cmake
README.md
release
SECURITY.md Update SECURITY.md 2021-10-07 20:30:07 +03:00
uncrustify.cfg

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.