Salvatore Mesoraca
0488132133
Do not assume that the original query was valid when transforming JOINs
...
Before this change, during the JOIN transformation, the query
was rewritten in such a way that some references to non-existing
columns were replaced with references to columns with the same
name in other tables.
We now check that the original query was correct before making
changes that may fix it accidentally.
2022-11-24 09:48:51 +01:00
Maksim Kita
9b935694ca
Merge pull request #43572 from kitaisreal/analyzer-table-functions-untuple-fix
...
Analyzer table functions untuple fix
2022-11-24 11:28:56 +03:00
zzsmdfj
9de4167d9c
to MaterializeMySQL_support_drop_mulit_table-change ParserIdentifier
2022-11-24 12:19:22 +08:00
zzsmdfj
11b9cd761f
to MaterializeMySQL_support_drop_mulit_table-clean up unnecessary code
2022-11-24 12:08:40 +08:00
zvonand
e8d4176f5b
fix ubsan(2)
2022-11-24 03:38:16 +03:00
Azat Khuzhin
eea32a3beb
Make insertRangeFrom() more exception safe ( #43338 )
...
* Make ColumnArray::insertRangeFrom() more safe
This should avoid possible out of sync and LOGICAL_ERROR exception
'offsets_column has data inconsistent with nested_column.'
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
* Make ColumnString::insertRangeFrom() more exception safe
Otherwise it is possible for offsets and chars go out of sync and
eventually you will get LOGICAL_ERROR exception
'String offsets has data inconsistent with chars array'
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2022-11-23 23:41:14 +01:00
zvonand
d42a29ac0f
fix ubsan + expand docs
2022-11-24 01:23:59 +03:00
Nikita Taranov
dc9be92733
impl
2022-11-23 23:08:14 +01:00
Alexander Tokmakov
f0fc71f09f
Merge pull request #43489 from azat/drop-fix
...
Avoid possible DROP hung due to attached web disk
2022-11-23 23:54:55 +03:00
Alexander Tokmakov
f3b7193635
remove code that I do not understand
2022-11-23 21:49:44 +01:00
Vasily Nemkov
d7fc4fee5e
Update SettingsProfilesInfo.cpp
2022-11-23 22:07:11 +04:00
Vasily Nemkov
ccfe0e26b4
Merge branch 'master' into fix_profile_names_mismatch
2022-11-23 21:49:46 +04:00
Alexander Gololobov
85b1fb96a5
Iterate list without index-based access
2022-11-23 17:49:17 +01:00
Dan Roscigno
b2b4e1017f
Merge pull request #43363 from CamiloSierraH/patch-6
...
ATTACH query ignores the SELECT query on MV
2022-11-23 11:35:15 -05:00
Dan Roscigno
31f346e2e5
Merge pull request #43330 from CamiloSierraH/patch-5
...
adding one link and note about disk usage for projections
2022-11-23 11:32:56 -05:00
Antonio Andelic
c52ca6e10e
Merge branch 'master' into substitute-udf-create
2022-11-23 16:08:37 +00:00
Antonio Andelic
71fb4dc889
Fix visitor
2022-11-23 16:07:25 +00:00
Camilo Sierra
ca3f819401
Update docs/en/sql-reference/statements/create/view.md
...
Co-authored-by: Dan Roscigno <dan@roscigno.com>
2022-11-23 16:53:21 +01:00
Dan Roscigno
0e0fef4f51
Merge branch 'master' into patch-6
2022-11-23 10:41:39 -05:00
Dan Roscigno
02a0d4f2e5
Update docs/en/sql-reference/statements/alter/projection.md
2022-11-23 10:39:10 -05:00
xiedeyantu
304b6ebf3a
s3 table function can support select nested column using {column_name}.{subcolumn_name}
2022-11-23 23:36:12 +08:00
vdimir
6241ed65e5
Fixes for FuseFunctionsPass
2022-11-23 15:32:02 +00:00
vdimir
5791d8d0af
FuseFunctionsPass: do not add same node into mapping twice
2022-11-23 15:30:27 +00:00
Sema Checherinda
9f2c00d434
add tags to tests, fix error message
2022-11-23 15:16:10 +00:00
Sema Checherinda
7d748602c0
always write creation_csn
2022-11-23 15:16:10 +00:00
Sema Checherinda
e29d7c2e00
fix typos
2022-11-23 15:16:10 +00:00
Sema Checherinda
b4a21cab68
removal_csn can be PrehistoricCSN iff removal_tid is also PrehistoricCSN when cl removind an old part
2022-11-23 15:16:10 +00:00
Sema Checherinda
eccb62e4c3
work with the latest remarks
2022-11-23 15:16:09 +00:00
Sema Checherinda
a29437e179
delete verbose logging about cleaning old parts
2022-11-23 15:16:09 +00:00
Sema Checherinda
e54ca534b0
test 01167_isolation_hermitage uses fallback to recreate table
2022-11-23 15:16:09 +00:00
Sema Checherinda
06ac225425
canBeRemoved take into account creation_csn then no txn
2022-11-23 15:16:09 +00:00
Sema Checherinda
def63232d2
do not use bc
2022-11-23 15:16:09 +00:00
Sema Checherinda
f49936b9a0
remove tmp dir from inmemory part when freeze, more logs about old parts
2022-11-23 15:16:09 +00:00
Sema Checherinda
3a8024002d
fix race in read full path from deleting part, add more logs in grabOldParts
2022-11-23 15:16:09 +00:00
Sema Checherinda
4f592bc208
fix isolation breach, droping outdated part should't be ignored
2022-11-23 15:16:09 +00:00
Sema Checherinda
f0294cd6ed
fix test_merge_tree_s3_restore
2022-11-23 15:16:09 +00:00
Sema Checherinda
6b4cb25e25
fixed 01130_in_memory_parts_partitons, remove flushed tmp part from in memory part
2022-11-23 15:16:09 +00:00
Sema Checherinda
cf90692fb8
add more log for NamedSessionsStorage
2022-11-23 15:16:09 +00:00
Sema Checherinda
c976b28104
less pedantic checks in operations, rely on existed tx functionality
2022-11-23 15:16:09 +00:00
Sema Checherinda
a4d1adf945
in order to restore partition do not write empty inmemory part
2022-11-23 15:16:09 +00:00
Sema Checherinda
00e7b4e195
fix race on remove, add creation csn for removed parts
2022-11-23 15:16:09 +00:00
Sema Checherinda
33306359b2
stabilization 01167_isolation_hermitage
2022-11-23 15:16:09 +00:00
Sema Checherinda
9335fa68c9
stabilization 01168_mutations_isolation
2022-11-23 15:16:09 +00:00
Sema Checherinda
29bfe6b78e
fix and stable some tests
2022-11-23 15:16:09 +00:00
Sema Checherinda
c1e6b560f0
no groupping parts for cover with empty
2022-11-23 15:16:08 +00:00
Sema Checherinda
597421014e
fix style check
2022-11-23 15:16:08 +00:00
Sema Checherinda
db86cd0f0a
fix several critical races, fix tests
2022-11-23 15:16:08 +00:00
Sema Checherinda
49539e6862
fix test_partition
2022-11-23 15:16:08 +00:00
Sema Checherinda
62d3e9da4d
fix test_merge_tree_hdfs
2022-11-23 15:16:08 +00:00
Sema Checherinda
d43d7ed6ea
fix test_merge_tree_empty_parts and test_ttl_replicated
2022-11-23 15:16:08 +00:00