Dmitry Novik
f9b71551d0
Cleanup ActionsVisitor
2022-06-16 15:11:16 +00:00
Suzy Wang
b80b9ec8b9
Merge branch 'master' into curl_upgrade
2022-06-16 08:09:15 -07:00
Maksim Kita
9a066ad29a
Merge pull request #38090 from kitaisreal/aggregate-functions-added-restrict-into-batch-methods
...
Aggregate functions added restrict into batch methods
2022-06-16 16:45:10 +02:00
kssenii
797482f132
Better
2022-06-16 16:40:29 +02:00
Maksim Kita
cd1bbc6a1b
SortDescription compile fix typo
2022-06-16 16:40:02 +02:00
Maksim Kita
f8d5e908d7
Update SortingTransform.cpp
2022-06-16 16:39:34 +02:00
Mikhail f. Shiryaev
2544b0d53e
Add retries with progressive sleep and dynamic page sice decreasing
2022-06-16 16:29:48 +02:00
Maksim Kita
aff66742e7
Disable parameters for non direct executable user defined functions
2022-06-16 16:29:04 +02:00
Mikhail f. Shiryaev
5f3de6f486
Use the best token instead of the constant
2022-06-16 16:27:49 +02:00
Alexander Tokmakov
1a4e1a0188
Merge pull request #38131 from ClickHouse/tavplubix-patch-1
...
More suppressions for backward compatibility check
2022-06-16 17:26:46 +03:00
Nikolay Degterinsky
2e68b5366d
Merge pull request #38141 from ClickHouse/DanRoscigno-patch-1
...
Update metrica.md
2022-06-16 16:16:39 +02:00
Kseniia Sumarokova
4e52f1e23c
Merge pull request #38123 from lirulei/patch-1
...
Update postgresql.md
2022-06-16 16:02:12 +02:00
Dan Roscigno
867c3cde59
Update metrica.md
...
Fix reference, change `What's Next` to `Next Steps`
2022-06-16 10:01:40 -04:00
Dmitry Novik
4d3ff7ee5e
Add more tests with window expressions
2022-06-16 13:40:12 +00:00
Anton Popov
13ec7e3092
Merge pull request #37978 from CurtizJ/fix-sparse-s3
...
Fix reading of sparse columns from s3
2022-06-16 15:32:54 +02:00
Dmitry Novik
0663f07e67
Rework expressions with window functions
2022-06-16 13:29:56 +00:00
Kruglov Pavel
489765aa6d
Fix ru docs
2022-06-16 14:51:49 +02:00
Kruglov Pavel
023e7132fc
Fix
2022-06-16 14:50:35 +02:00
vdimir
d50c51f262
Try to fix temporary name clash in partial merge join
2022-06-16 12:47:55 +00:00
alesapin
7000c4e003
Merge pull request #38107 from ClickHouse/random_container_name
...
Try random container name in integration tests runner
2022-06-16 14:47:18 +02:00
Kruglov Pavel
d14a2d3583
Fix docs about encryption functions
2022-06-16 14:47:15 +02:00
alesapin
379fff7318
Merge branch 'master' into disk_transaction
2022-06-16 14:36:19 +02:00
Mikhail f. Shiryaev
d7505d4de7
Change alignment, fix some f-strings
2022-06-16 14:33:39 +02:00
Mikhail f. Shiryaev
7ed305f9b1
Improvement of cherry-pick/backport script
...
- cherry_pick.py now can ba launched locally, with dry-run
- get rid of fallback import paths
- do not create a huge pile of objects for every sneezing
- the same for hidden imports in deep local functions
- improve logging
- fix imports for cherry_pick_utils entities
- Significantly reduced requests to GraphQL API
2022-06-16 14:32:32 +02:00
alesapin
b11439ff36
Compiles
2022-06-16 14:24:26 +02:00
Alexey Milovidov
72e0274888
Edits
2022-06-16 14:21:13 +02:00
mergify[bot]
f46f7257dd
Merge branch 'master' into fix-nothing-error
2022-06-16 10:58:03 +00:00
mergify[bot]
2557e8ad51
Merge branch 'master' into decimal_rounding_fix
2022-06-16 10:53:49 +00:00
avogar
a3a7cc7a5d
Fix logical error in array mapped functions with const nullable column
2022-06-16 10:41:53 +00:00
Alexander Tokmakov
3e8aa2dc47
Update run.sh
2022-06-16 13:24:21 +03:00
Alexander Tokmakov
ca649da97f
better comments
2022-06-16 12:12:44 +02:00
Alexey Milovidov
f203ef3536
Merge pull request #38129 from ClickHouse/revert-38043-revert-37810-trace-d3-gantt
...
Revert "Revert "add d3js based trace visualizer as gantt chart""
2022-06-16 13:02:58 +03:00
mergify[bot]
9e98c9db78
Merge branch 'master' into aggregate-functions-added-restrict-into-batch-methods
2022-06-16 09:53:55 +00:00
Alexey Milovidov
c737bc2bcf
Update README.md
2022-06-16 12:41:02 +03:00
Alexey Milovidov
d9e558720f
Fix typos
2022-06-16 11:38:54 +02:00
Alexey Milovidov
cf6f865f80
Revert "Revert "add d3js based trace visualizer as gantt chart""
2022-06-16 12:35:13 +03:00
Azat Khuzhin
68b4f3fbb3
Add backward compatiblity test for INSERT w/ and w/o ProfileEvents
...
v2: apply black formatting (sigh)
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2022-06-16 11:59:01 +03:00
Azat Khuzhin
20f0602c20
tests/integration: add ability to query specific host
...
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2022-06-16 11:59:01 +03:00
Azat Khuzhin
b3bf7589ef
Fix possible concurrent access in ProgressIndication
...
In case of all of the above:
- clickhouse-local
- input_format_parallel_parsing=true
- write_progress_on_update=true
It is possible concurrent access to the following:
- writeProgress() (class properties) (guarded with progress_mutex)
- thread_data/host_cpu_usage (guarded with profile_events_mutex)
v2: decrease number of rows for INSERT ProfileEvents test (10 times)
CI: https://s3.amazonaws.com/clickhouse-test-reports/37391/4bd5c335182279dcc5020aa081b13c3044135951/stateless_tests__debug__actions__[1/3].html
v3: decrease number of rows for INSERT ProfileEvents test (10 times) and add a comment
CI: https://s3.amazonaws.com/clickhouse-test-reports/37391/026d7f732cb166c90d6c287b02824b6c7fdebf0c/stateless_tests_flaky_check__address__actions_/runlog.log
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
f
2022-06-16 11:59:01 +03:00
Azat Khuzhin
4baa7690ae
Send profile events for INSERT queries (previously only SELECT was supported)
...
Reproducer:
echo "1" | clickhouse-client --query="insert into function null('foo String') format TSV" --print-profile-events --profile-events-delay-ms=-1
However, clickhouse-local is differnt, it does sent the periodically,
but only if query was long enough, i.e.:
# yes | head -n100000 | clickhouse-local --query="insert into function null('foo String') format TSV" --print-profile-events --profile-events-delay-ms=-1
[s1.ch] 2022.05.20 15:20:27 [ 0 ] ContextLock: 10 (increment)
[s1.ch] 2022.05.20 15:20:27 [ 0 ] DiskReadElapsedMicroseconds: 29 (increment)
[s1.ch] 2022.05.20 15:20:27 [ 0 ] IOBufferAllocBytes: 200000 (increment)
[s1.ch] 2022.05.20 15:20:27 [ 0 ] IOBufferAllocs: 1 (increment)
[s1.ch] 2022.05.20 15:20:27 [ 0 ] InsertQuery: 1 (increment)
[s1.ch] 2022.05.20 15:20:27 [ 0 ] InsertedBytes: 1000000 (increment)
[s1.ch] 2022.05.20 15:20:27 [ 0 ] InsertedRows: 100000 (increment)
[s1.ch] 2022.05.20 15:20:27 [ 0 ] MemoryTrackerUsage: 1521975 (gauge)
[s1.ch] 2022.05.20 15:20:27 [ 0 ] OSCPUVirtualTimeMicroseconds: 102148 (increment)
[s1.ch] 2022.05.20 15:20:27 [ 0 ] OSReadChars: 135700 (increment)
[s1.ch] 2022.05.20 15:20:27 [ 0 ] OSWriteChars: 8 (increment)
[s1.ch] 2022.05.20 15:20:27 [ 0 ] Query: 1 (increment)
[s1.ch] 2022.05.20 15:20:27 [ 0 ] RWLockAcquiredReadLocks: 2 (increment)
[s1.ch] 2022.05.20 15:20:27 [ 0 ] ReadBufferFromFileDescriptorRead: 5 (increment)
[s1.ch] 2022.05.20 15:20:27 [ 0 ] ReadBufferFromFileDescriptorReadBytes: 134464 (increment)
[s1.ch] 2022.05.20 15:20:27 [ 0 ] RealTimeMicroseconds: 293747 (increment)
[s1.ch] 2022.05.20 15:20:27 [ 0 ] SoftPageFaults: 382 (increment)
[s1.ch] 2022.05.20 15:20:27 [ 0 ] TableFunctionExecute: 1 (increment)
[s1.ch] 2022.05.20 15:20:27 [ 0 ] UserTimeMicroseconds: 102148 (increment)
v2: Proper support ProfileEvents in INSERTs (with protocol change)
v3: Receive profile events on INSERT queries
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2022-06-16 11:59:01 +03:00
Azat Khuzhin
3b29db6e9f
LocalServer: remove superfluous ProgressIndicator.h
...
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2022-06-16 11:59:01 +03:00
Alexey Milovidov
f2b665a799
Merge pull request #38120 from wangdh15/delete-unused-field-fix-build-error
...
Remove unused class member
2022-06-16 11:11:26 +03:00
Alexey Milovidov
01fd592dda
Update CHANGELOG.md
2022-06-16 10:55:17 +03:00
Yu, Peng
518a726c1d
Fix redundant memory reservation for output block in MergeSorter
2022-06-16 15:54:30 +08:00
Azat Khuzhin
0d4f78639e
Interpreters/Aggregator: cleaner interface for block release during merge
...
Suggested-by: @amosbird
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2022-06-16 09:58:36 +03:00
Azat Khuzhin
3e833b403d
tests: fix expectations for 00172_early_constant_folding
...
After AggregatingStep is used, there is not StrictResize processor,
since there is only one stream.
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2022-06-16 09:58:36 +03:00
Azat Khuzhin
4ff82eb9d5
Implement optimize_aggregation_in_order for projections
...
v2: use real column name instead of aliases from GROUP BY
Fixes the following error in 01710_projection_aggregation_in_order:
Not found column a in block. There are only columns: toStartOfHour(ts), sum(value). (NOT_FOUND_COLUMN_IN_BLOCK)
v2.1: Get back support for projected and non-projected parts
v2.2: merge tests and rename
v3: Reduce copy-paste for optimize_aggregation_in_order for projections
v4: rebase on top of QueryPlanResourceHolder
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2022-06-16 09:58:36 +03:00
Azat Khuzhin
14f9491619
MergeTreeData: preserve order for group_by_elements_order_descr
...
This is required for proper optimize_aggregation_in_order for
projections.
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2022-06-16 09:58:36 +03:00
Azat Khuzhin
4694929623
Implement merging only for AggregatingStep
...
v2: fill AggregateColumnsConstData only for only_merge
(fixes 01291_aggregation_in_order and some other tests)
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2022-06-16 09:58:36 +03:00
Azat Khuzhin
3559e35b70
AggregatingStep: remove unused forward decl
...
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2022-06-16 09:58:36 +03:00