Robert Schulze
118e94523c
Activate clang-tidy warning "readability-container-contains"
...
This check suggests replacing <Container>.count() by
<Container>.contains() which is more speaking and in case of
multimaps/multisets also faster.
2022-04-18 23:53:11 +02:00
Anton Popov
fcdebea925
Merge remote-tracking branch 'upstream/master' into HEAD
2022-02-25 13:41:30 +03:00
Anton Popov
edd686e1d9
fix unit test
2022-02-16 17:18:03 +03:00
Nikolai Kochetov
4d2c53c32b
Fix clang tidy
2022-02-15 09:59:51 +00:00
Nikolai Kochetov
22a938f83d
Simplify a little bit.
2022-02-14 14:53:32 +01:00
Anton Popov
587d7399ba
support dynamic subcolumns for Memory engine
2022-02-09 03:18:53 +03:00
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
Maksim Kita
a87ffdff92
Column default dictGet identifier fix
2021-09-10 17:41:09 +03:00
kssenii
9ca422f0c5
Introduce CAST for internal usage
2021-08-07 09:03:10 +00:00
alesapin
d91380cd71
Fix bug when default column reference non materialized column
2021-07-28 15:04:42 +03:00
kssenii
7c3b074891
Better
2021-04-23 12:40:34 +00:00
kssenii
8f34199538
Fixes
2021-04-23 12:36:40 +00:00
kssenii
54a7a6ef0d
Allow null to default convertion only if column has default
2021-04-23 09:55:57 +00:00
kssenii
ac55183d2e
Null as default for insert select / with union
2021-04-22 18:11:36 +00:00
Ivan
495c6e03aa
Replace all Context references with std::weak_ptr ( #22297 )
...
* Replace all Context references with std::weak_ptr
* Fix shared context captured by value
* Fix build
* Fix Context with named sessions
* Fix copy context
* Fix gcc build
* Merge with master and fix build
* Fix gcc-9 build
2021-04-11 02:33:54 +03:00
Nikolai Kochetov
9a39459888
Refactor ActionsDAG
2021-03-04 20:38:12 +03:00
Nikolai Kochetov
15921fbfcb
Remove index by name from ActionsDAG
2021-03-03 23:01:07 +03:00
Amos Bird
2dc7ba160a
Better
2021-02-18 20:20:28 +08:00
Amos Bird
77fd060665
Normalize function names
2021-02-18 20:20:28 +08:00
Nikolai Kochetov
27d607a955
Respect header in addMissingDefaults
2021-02-09 22:48:34 +03:00
Nikolai Kochetov
85c175883e
Rename functions.
2021-02-05 18:11:26 +03:00
Nikolai Kochetov
872d2a8ad5
Fix test.
2021-02-05 17:42:41 +03:00
Nikolai Kochetov
8c49e84668
Fix test.
2021-02-05 16:42:45 +03:00
Nikolai Kochetov
d9aa1096cf
Build actions dag to evaluate missing defaults.
2021-02-04 23:36:50 +03:00
Ivan
315ff4f0d9
ANTLR4 Grammar for ClickHouse and new parser ( #11298 )
2020-12-04 05:15:44 +03:00
alesapin
ef9728da79
Fix comment
2020-10-02 15:54:51 +03:00
alesapin
17b86dec96
Recursive defaults
2020-10-02 15:38:50 +03:00
Artem Zuikov
2afd123eda
Refactoring: extract TreeOptimizer from SyntaxAnalyzer ( #12645 )
2020-07-22 20:13:05 +03:00
Ivan Lezhankin
06446b4f08
dbms/ → src/
2020-04-03 18:14:31 +03:00