Anton Popov
95611889dc
fix tests
2024-03-01 18:44:33 +00:00
Anton Popov
23f300b581
refactoring of virtual columns
2024-02-21 00:57:35 +00:00
avogar
319ae440b6
Implement Variant data type
2023-12-19 16:45:15 +00:00
Robert Schulze
5209bd2d51
Merge remote-tracking branch 'rschu1ze/master' into clang-17
2023-09-21 14:45:55 +00:00
Robert Schulze
f5137dd0b4
More clang-tidy fixes
2023-09-21 14:40:57 +00:00
SmitaRKulkarni
d8adf05de2
Added a new column _block_number ( #47532 )
...
Added a new virtual column _block_number which is persisted on merges when allow_experimental_block_number_column is enabled
2023-09-20 11:31:12 +02:00
Anton Popov
d43e76b147
fix reading of empty Nested(Array(LowCardinality(...)))
2023-08-02 16:48:08 +00:00
Nikolai Kochetov
650427614f
Fix block structure mismatch for nullable LowCardinality column with default expression.
2023-03-13 17:57:07 +00:00
avogar
01c42dd6f3
Fix
2023-02-09 12:03:56 +00:00
avogar
85dd330374
Add test, fix low cardinality again
2023-02-08 19:24:04 +00:00
avogar
738311c7fa
Use default of columnt type in insert_null_as_default if column DEFAULT values is not specified
2023-02-08 15:48:18 +00:00
Anton Popov
5a790b15b4
try to fix filling of missed Nested columns with multiple levels
2022-09-08 00:20:11 +00:00
Anton Popov
f76c1482bd
try to fix filling of missed Nested columns with multiple levels
2022-09-06 13:56:32 +00:00
Anton Popov
1523c9c9e5
fix filling of empty Nested + small refactoring
2022-06-17 01:10:52 +00:00
Anton Popov
56fffc8681
fix filling of missing columns
2022-05-12 17:21:30 +00:00
Anton Popov
0dbbca5b3e
fix filling of missed Nested columns with multiple levels
2022-05-12 12:04:26 +00:00
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