Commit Graph

8246 Commits

Author SHA1 Message Date
Pavel Kovalenko
cc3b5958b0 Ability to backup-restore metadata files for DiskS3 (WIP) 2020-12-23 15:35:52 +03:00
Pavel Kovalenko
18fe1c796b Ability to backup-restore metadata files for DiskS3 (WIP) 2020-12-22 21:47:47 +03:00
Nikita Mikhaylov
410d0a51b5
Merge pull request #18331 from nikitamikhaylov/async-metrics-fix
Provide extra constructor for Async metrics
2020-12-22 17:17:03 +03:00
hexiaoting
93d28ef5c9
Implement untuple field access (#18309) 2020-12-22 16:48:40 +03:00
flynn
4e580f7b7c
Add asynchronous metrics on MergeTree tables data volume (#17639)
Co-authored-by: Alexander Kazakov <Akazz@users.noreply.github.com>
2020-12-22 13:34:35 +03:00
tavplubix
0e807d0647
Merge pull request #18211 from zhang2014/fix/ISSUES-18186
ISSUES-18186 fix unique key convert crash
2020-12-22 11:51:31 +03:00
alexey-milovidov
a4b0d9ba4c
Merge pull request #16664 from FawnD2/switch-upstream-for-arrow-submodule
Switch upstream repo for Arrow submodule
2020-12-22 10:55:23 +03:00
alexey-milovidov
c1bd8d5df5
Merge pull request #18329 from azat/buffer-rollback-fix
Fix NULL dereference in Buffer rollback
2020-12-22 09:30:53 +03:00
alexey-milovidov
adab35003e
Merge pull request #18271 from ClickHouse/arrays-as-nested-csv
Support to parse Arrays in CSV as nested CSV in a String
2020-12-22 09:28:25 +03:00
alexey-milovidov
f578f83380
Update AsynchronousMetrics.h 2020-12-22 09:24:14 +03:00
alexey-milovidov
7985ed9778
Merge pull request #18050 from Enmk/DateTime64_DateTime_comparison
Fixed Date vs DateTime64 comparison
2020-12-22 05:12:14 +03:00
nikitamikhaylov
8501c7a831 better 2020-12-22 02:03:08 +03:00
Azat Khuzhin
6acefa7624 Suppress bugprone-use-after-move in Buffer rollback 2020-12-22 01:22:36 +03:00
nikitamikhaylov
3972c5cd82 style 2020-12-22 00:49:37 +03:00
nikitamikhaylov
cd3a73f9d3 done 2020-12-22 00:47:10 +03:00
Alexey Milovidov
667c6501bf Merge branch 'arrays-as-nested-csv' of github.com:yandex/ClickHouse into arrays-as-nested-csv 2020-12-22 00:33:24 +03:00
Alexey Milovidov
e4c1d17219 Addition 2020-12-22 00:32:57 +03:00
Alexey Milovidov
3ab2a167e8 Merge branch 'master' into arrays-as-nested-csv 2020-12-22 00:05:50 +03:00
Azat Khuzhin
ba57c418d0 Fix NULL dereference in Buffer rollback
<details>

Stacktrace:

```
(gdb) bt
0  DB::appendBlock (from=..., to=...) at ../src/Storages/StorageBuffer.cpp:411
1  DB::BufferBlockOutputStream::insertIntoBuffer (this=<optimized out>, block=..., buffer=...) at ../src/Storages/StorageBuffer.cpp:541
2  0x000000000f2e9d5f in DB::BufferBlockOutputStream::write (this=<optimized out>, block=...) at ../src/Storages/StorageBuffer.cpp:508
3  0x000000000ec426c4 in DB::PushingToViewsBlockOutputStream::write (this=0x7f74660faa18, block=...) at ../src/DataStreams/PushingToViewsBlockOutputStream.cpp:160
4  0x000000000ec49633 in DB::AddingDefaultBlockOutputStream::write (this=0x7f74660f1b18, block=...) at ../src/DataStreams/AddingDefaultBlockOutputStream.cpp:10
5  0x000000000ec483ac in DB::SquashingBlockOutputStream::finalize (this=0x7f74660f1d18) at ../src/DataStreams/SquashingBlockOutputStream.cpp:30
6  0x000000000ec48429 in DB::SquashingBlockOutputStream::writeSuffix (this=0x7f74660f1d18) at ../src/DataStreams/SquashingBlockOutputStream.cpp:50
7  0x000000000ec43f8f in DB::PushingToViewsBlockOutputStream::writeSuffix (this=0x7f74660f8258) at ../src/DataStreams/PushingToViewsBlockOutputStream.cpp:280
8  0x000000000ec43f8f in DB::PushingToViewsBlockOutputStream::writeSuffix (this=0x7f74b7ddea18) at ../src/DataStreams/PushingToViewsBlockOutputStream.cpp:280
9  0x000000000f2e6748 in DB::StorageBuffer::writeBlockToDestination (this=<optimized out>, block=..., table=...) at ../src/Storages/StorageBuffer.cpp:820
10 0x000000000f2ea00b in DB::BufferBlockOutputStream::write (this=0x7f7574e11748, block=...) at ../src/Storages/StorageBuffer.cpp:469
11 0x000000000ec426c4 in DB::PushingToViewsBlockOutputStream::write (this=0x7f7574ed3658, block=...) at ../src/DataStreams/PushingToViewsBlockOutputStream.cpp:160
12 0x000000000ec49633 in DB::AddingDefaultBlockOutputStream::write (this=0x7f7574e84518, block=...) at ../src/DataStreams/AddingDefaultBlockOutputStream.cpp:10
13 0x000000000ec482f4 in DB::SquashingBlockOutputStream::write (this=0x7f7574e84718, block=...) at ../src/DataStreams/SquashingBlockOutputStream.cpp:17
14 0x000000000ebe8bce in DB::CountingBlockOutputStream::write (this=0x7f7574ed3720, block=...) at ../src/DataStreams/CountingBlockOutputStream.cpp:17
15 0x000000000f68e834 in DB::TCPHandler::receiveData (this=<optimized out>, scalar=<optimized out>) at ../src/Server/TCPHandler.cpp:1168
16 0x000000000f68737c in DB::TCPHandler::receivePacket (this=0x7f7574f17000) at ../src/Server/TCPHandler.cpp:918
17 0x000000000f688d2f in DB::TCPHandler::readDataNext (this=0x7f7574f17000, poll_interval=@0x7f6f1dff1f78: 10000000, receive_timeout=@0x7f6f1dff1f68: 300) at ../src/Server/TCPHandler.cpp:460
18 0x000000000f6878be in DB::TCPHandler::readData (this=0x7f7574f17000, connection_settings=...) at ../src/Server/TCPHandler.cpp:490
19 DB::TCPHandler::processInsertQuery (this=0x7f7574f17000, connection_settings=...) at ../src/Server/TCPHandler.cpp:519
20 0x000000000f680ab9 in DB::TCPHandler::runImpl (this=0x7f7574f17000) at ../src/Server/TCPHandler.cpp:268
21 0x000000000f68f297 in DB::TCPHandler::run (this=0x7f7574f17000) at ../src/Server/TCPHandler.cpp:1414
22 0x0000000011fb81cf in Poco::Net::TCPServerConnection::start (this=0x0) at ../contrib/poco/Net/src/TCPServerConnection.cpp:43
23 0x0000000011fb9be1 in Poco::Net::TCPServerDispatcher::run (this=0x7f752ab5fd00) at ../contrib/poco/Net/src/TCPServerDispatcher.cpp:112
24 0x00000000120e71c9 in Poco::PooledThread::run (this=0x7f747d3a4580) at ../contrib/poco/Foundation/src/ThreadPool.cpp:199
25 0x00000000120e315a in Poco::ThreadImpl::runnableEntry (pThread=<optimized out>) at ../contrib/poco/Foundation/src/Thread_POSIX.cpp:345
26 0x00007f760620aea7 in start_thread (arg=<optimized out>) at pthread_create.c:477
27 0x00007f760613aeaf in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

(gdb) p to.data.__end_-to.data.__begin_
$17 = 10
(gdb) p to.data.__begin_[9].column.px
$19 = (const DB::IColumn *) 0x7f7328392720
(gdb) p to.data.__begin_[8].column.px
$20 = (const DB::IColumn *) 0x0
(gdb) p to.data.__begin_[7].column.px
$21 = (const DB::IColumn *) 0x7f746f33d360
```

Line numbers matched with this version -
f0e7cb16a7/src/Storages/StorageBuffer.cpp (L411)

</details>
2020-12-21 23:56:56 +03:00
alexey-milovidov
351a40493d
Merge pull request #18286 from ClickHouse/remove-useless-code-2
Remove useless code
2020-12-21 18:19:23 +03:00
Nikolai Kochetov
c2d2e74d6a
Merge pull request #18182 from zhangjmruc/master
Try to fix issue #17712 for wrong importing of rows with last bad column
2020-12-21 12:17:40 +03:00
Alexey Milovidov
571520964c Remove useless code 2020-12-21 10:48:15 +03:00
Alexey Milovidov
558e9d270f Whitespace 2020-12-21 10:41:05 +03:00
Alexey Milovidov
febf63aec3 Merge branch 'master' into FawnD2-switch-upstream-for-arrow-submodule 2020-12-21 10:22:43 +03:00
Alexey Milovidov
252f2ae876 Merge branch 'master' into FawnD2-switch-upstream-for-arrow-submodule 2020-12-21 10:22:14 +03:00
alexey-milovidov
fa68af02d7
Merge pull request #18278 from traceon/odbc-dict-fixes
Fixes in ODBC dictionary reload and ODBC bridge reachability
2020-12-21 10:18:04 +03:00
zhang2014
e4ba190853 Merge branch 'fix/ISSUES-18186' of github.com:zhang2014/ClickHouse into fix/ISSUES-18186 2020-12-21 11:34:23 +08:00
zhang2014
3f6cfc230f ISSUES-18186 try fix code style 2020-12-21 11:34:08 +08:00
Alexey Milovidov
70983eae65 Merge branch 'master' into Enmk-DateTime64_DateTime_comparison 2020-12-21 04:20:18 +03:00
Alexey Milovidov
9c1516bd74 Slightly better for gcc-9 2020-12-21 03:41:22 +03:00
Alexey Milovidov
31b955e14a Slightly better for gcc-9 2020-12-21 03:38:53 +03:00
alexey-milovidov
6eba45821b
Merge pull request #17846 from Enmk/Optimize_deduplicate
OPTIMIZE DEDUPLICATE BY COLUMNS
2020-12-21 02:47:15 +03:00
Denis Glazachev
0c39539c76 Apply path workaround on actual uri_ argument
Print out actual uri_ argument being used
2020-12-21 03:29:11 +04:00
Denis Glazachev
da7aa25e01 Store copies instead of refs in ExternalQueryBuilder instances 2020-12-21 03:27:35 +04:00
Denis Glazachev
ea7e94f3eb Use 127.0.0.1 as a default listen-host for ODBC bridge 2020-12-21 03:26:31 +04:00
alexey-milovidov
38dec4ccaf
Update DataTypeArray.cpp 2020-12-20 14:07:53 +03:00
Alexey Milovidov
ae9b67fefa Support to parse Arrays in CSV as nested CSV in a String 2020-12-20 13:26:08 +03:00
Alexey Milovidov
9be5fa9ef2 Merge branch 'master' into Enmk-Optimize_deduplicate 2020-12-20 09:57:10 +03:00
alexey-milovidov
af4c3956da
Merge pull request #17273 from zhang2014/fix/ISSUES-17244
ISSUES-17244 try fix indeterministic functions with predicate optimizer
2020-12-20 09:51:20 +03:00
Alexey Milovidov
bf2df558d4 Merge branch 'master' into FawnD2-switch-upstream-for-arrow-submodule 2020-12-20 09:38:46 +03:00
Alexey Milovidov
e4b1cd0d4f Merge branch 'master' into Enmk-DateTime64_DateTime_comparison 2020-12-20 07:44:54 +03:00
alexey-milovidov
252fc733bd
Merge pull request #18214 from amosbird/fix-15651
Fix enum = Int8 in KeyCondition
2020-12-20 07:39:22 +03:00
Vasily Nemkov
e5ec81f7cd Single quotes around column names 2020-12-19 20:58:23 +02:00
alexey-milovidov
41b2503d1a
Merge pull request #18114 from azat/20.13-gcc10-sanitizers
gcc10 sanitizers support
2020-12-19 12:54:36 +03:00
alexey-milovidov
021aba5769
Merge pull request #18217 from ClickHouse/fix_stranges_in_testkeeper
Fix watches processing in TestKeeper
2020-12-19 03:29:51 +03:00
alexey-milovidov
03bc2d328a
Merge pull request #17726 from amosbird/querylog
Extensive information in system.query_log
2020-12-18 21:24:21 +03:00
alexey-milovidov
e0c2de9a8c
Merge pull request #17463 from amosbird/threadmetrics
Add connection thread metrics
2020-12-18 21:22:51 +03:00
Nikolai Kochetov
591e0a744b
Merge pull request #18183 from spongedu/fix_show_hint
complete hints for show statement
2020-12-18 18:50:27 +03:00
Nikolai Kochetov
d7fc426458
Merge pull request #18216 from ClickHouse/fix-18137
Fix 18137
2020-12-18 18:49:02 +03:00
Vasily Nemkov
5ff7baf663 Fixed comparing Date and DateTime64
With a less flakky test
2020-12-18 17:47:08 +02:00