Commit Graph

1744 Commits

Author SHA1 Message Date
Azat Khuzhin
92632bf0c1 Fix isLocalAddress() (ifa_addr maybe NULL)
From getifaddrs(3):

    The ifa_addr field points to a structure containing the interface
    address.  (The sa_family subfield should be consulted to
    determine the format of the address structure.)  This field may
    contain a null pointer.

I have the problem with tun0, that creates points-to-point address, so
getifaddrs() returns NULL ifa_addr for one of addrs for tun0.
You can check this, using this simple example - [1].

  [1]: https://gist.github.com/azat/cc667d145bc74215c40cdbb69f38189b
2021-05-20 00:04:11 +03:00
alexey-milovidov
57348632dc
Merge pull request #24196 from Algunenano/gcc11_compat
Gcc11 compatibility
2021-05-19 22:20:22 +03:00
Nikita Mikhaylov
aa58fc096c done 2021-05-19 14:44:39 +03:00
Nikolai Kochetov
0b8bf34aba
Merge pull request #24256 from ClickHouse/log-exception-for-allocator-free
Log exception in Allocator::free
2021-05-19 13:39:39 +03:00
alesapin
90f12a3002
Merge pull request #24203 from ClickHouse/simplier_is_local_address
Simplier isLocalAddress
2021-05-19 10:53:35 +03:00
Nikolai Kochetov
342486e321 Log exception in Allocator::free 2021-05-18 19:15:48 +03:00
alesapin
2b62ce9044 Add smoke test for local address 2021-05-18 11:35:51 +03:00
Maksim Kita
a208e3cdb5 Removed commented code 2021-05-17 22:13:50 +03:00
Raúl Marín
c312121ced gtest_sensitive_data_masker: Adapt error output after re2 update 2021-05-17 19:38:23 +02:00
alesapin
6127ba901e Small improvements 2021-05-17 19:29:11 +03:00
alesapin
acaf260a2e Better 2021-05-17 19:18:38 +03:00
alesapin
b4f07a017c Space 2021-05-17 18:32:34 +03:00
alesapin
5a0d0a1717 Much simplier isLocalAddress 2021-05-17 18:31:44 +03:00
Maksim Kita
cf43a3efe2 Updated LRUHashMap benchmarks 2021-05-17 11:08:22 +03:00
Maksim Kita
947f28d430 IFunction refactoring 2021-05-15 20:33:15 +03:00
Maksim Kita
b0bad25dd3
Merge pull request #24111 from kitaisreal/hash-table-performance
Added hash table benchmarks
2021-05-14 10:29:12 +03:00
Maksim Kita
1f9c9eda45 Added hash table benchmarks 2021-05-13 23:40:47 +03:00
Kseniia Sumarokova
135bed27f5
Merge pull request #23196 from Amesaru/progress_bar_for_LocalServer
Progress bar for local server
2021-05-13 13:13:53 +03:00
Amesaru
a95028bb43 UpdateProgress fix 2021-05-12 21:25:16 +03:00
Amesaru
e21899c854 Merge remote-tracking branch 'origin/progress_bar_for_LocalServer' into progress_bar_for_LocalServer 2021-05-12 19:26:42 +03:00
Amesaru
40cced96f4 UpdateProgress static 2021-05-12 19:25:12 +03:00
kssenii
8eb9e72f66 Fix bug 2021-05-12 12:33:04 +00:00
Yuriy Chernyshov
5a2bd0b6ba Enable thread_local in Arcadia build 2021-05-12 13:33:38 +03:00
Nikolai Kochetov
a1ba67e029
Merge pull request #20202 from amosbird/projection
Projections
2021-05-12 09:38:07 +03:00
Maksim Kita
d33f4750e1 Fix ArenaWithFreeLists test 2021-05-11 21:22:50 +03:00
Egor Savin
e51e13db61
Merge branch 'master' into progress_bar_for_LocalServer 2021-05-11 18:36:06 +03:00
Amesaru
fa8e904987 WriteProgress fix 2021-05-11 17:24:04 +03:00
Amesaru
6dd475cc76 Convert ProgressBar into a struct 2021-05-11 17:14:57 +03:00
Amos Bird
264cff6415
Projections
TODO (suggested by Nikolai)

1. Build query plan fro current query (inside storage::read) up to WithMergableState
2. Check, that plan is simple enough: Aggregating - Expression - Filter - ReadFromStorage (or simplier)
3. Check, that filter is the same as filter in projection, and also expression calculates the same aggregation keys as in projection
4. Return WithMergableState if projection applies

3 will be easier to do with ActionsDAG, cause it sees all functions, and dependencies are direct (but it is possible with ExpressionActions also)

Also need to figure out how prewhere works for projections, and
row_filter_policies.

wip
2021-05-11 18:12:23 +08:00
Kruglov Pavel
fb038c1985
Merge pull request #23894 from pingyu/datasketches-uniq-again
Add uniqThetaSketch again
2021-05-11 11:24:43 +03:00
Alexey Milovidov
b2ca5cd98b Merge branch 'master' into normalize-bigint 2021-05-11 02:05:40 +03:00
alexey-milovidov
6d0bd4f7d2
Merge pull request #23969 from ClickHouse/aku/long-trace-id
support longer query ids in trace log for perf tests
2021-05-10 23:35:40 +03:00
alexey-milovidov
066acc71b6
Merge pull request #8482 from ClickHouse/enable-compile-expressions
Enable "compile_expressions" by default
2021-05-10 21:09:18 +03:00
Alexey Milovidov
f4db7b63b4 Fix error 2021-05-09 23:13:19 +03:00
Alexey Milovidov
6d55812df5 Add TODO 2021-05-09 18:05:20 +03:00
Alexey Milovidov
9ccf7f4864 Maybe fix error 2021-05-09 01:55:05 +03:00
Alexey Milovidov
2be03d2e57 Maybe fix error 2021-05-09 01:54:46 +03:00
Alexey Milovidov
903c306e04 Fix some PVS-Studio warnings 2021-05-09 01:10:10 +03:00
Alexey Milovidov
ab9b116310 Fix some PVS-Studio warnings 2021-05-09 01:09:16 +03:00
Alexey Milovidov
ce9eda6a87 Fix warnings by PVS-Studio 2021-05-08 23:57:08 +03:00
Alexey Milovidov
367f7fe6c9 Fix warnings by PVS-Studio 2021-05-08 23:57:08 +03:00
Alexey Milovidov
58de177ed3 Fix warnings by PVS-Studio 2021-05-08 23:56:17 +03:00
Alexey Milovidov
037d06bb2a Fix warnings by PVS-Studio 2021-05-08 23:50:12 +03:00
Alexey Milovidov
3b767b4a64 Fix strange code 2021-05-08 22:41:14 +03:00
Alexey Milovidov
c412820e9c Fix warnings by PVS-Studio 2021-05-08 22:40:57 +03:00
Alexey Milovidov
9ad4157dbb Fix strange code 2021-05-08 22:40:23 +03:00
Alexey Milovidov
8a804f1e35 Fix warnings by PVS-Studio 2021-05-08 22:30:58 +03:00
Alexey Milovidov
fa5205b4c7 Get rid of ugly notation 2021-05-08 22:05:08 +03:00
Alexey Milovidov
ac9b43f103 Fix error 2021-05-08 21:16:46 +03:00
Alexey Milovidov
2b4f4e08c3 Fix error 2021-05-08 21:16:25 +03:00