owner stringclasses 14
values | repo stringclasses 14
values | id int64 116k 4.61B | issue_number int32 1 181k | author stringlengths 1 39 | body stringlengths 1 262k | created_at timestamp[us]date 2000-06-06 02:40:44 2026-06-02 20:16:18 | updated_at timestamp[us]date 2000-06-06 02:40:44 2026-06-02 20:22:56 | reactions unknown | author_association stringclasses 5
values |
|---|---|---|---|---|---|---|---|---|---|
ClickHouse | ClickHouse | 833,885,850 | 23,871 | alexey-milovidov | Need to add exception for ANTLR. | 2021-05-06T21:38:48 | 2021-05-06T21:38:48 | {} | MEMBER |
ClickHouse | ClickHouse | 834,632,520 | 23,722 | alexey-milovidov | For the reference: we have investigated it *further* and fixed the issue. | 2021-05-07T17:15:31 | 2021-05-07T17:15:31 | {} | MEMBER |
ClickHouse | ClickHouse | 833,958,249 | 23,871 | CurtizJ | Also seems that antlr test works only for .sh tests.
```
$ zgrep "using production parser" clickhouse-server.log.gz | wc -l
37244
$ zgrep "using experimental parser" clickhouse-server.log.gz | wc -l
5011
$ zgrep "using experimental parser" clickhouse-server.log.gz | grep "comment:.*\.sh" | wc -l
4164
$ zgrep "... | 2021-05-07T00:05:26 | 2021-05-07T00:06:03 | {} | MEMBER |
ClickHouse | ClickHouse | 834,349,262 | 17,623 | alexey-milovidov | > Hi. Any ideas on when to expect Window Functions to become stable and generally available?
@dima898 We plan to remove experimental flag this summer. | 2021-05-07T12:49:03 | 2021-05-07T12:49:18 | {} | MEMBER |
ClickHouse | ClickHouse | 834,359,986 | 23,931 | kolykhalov | Thank you very much for your help!
But it is still not working, and now I can see where the trouble is. Your example covers all the same principles just like in example sqls in docs with the help of random numbers. And all of them have single number per row that is given to lagInFrame, but my initial subquery has mu... | 2021-05-07T13:00:28 | 2021-05-07T13:00:28 | {} | NONE |
ClickHouse | ClickHouse | 834,650,682 | 23,931 | UnamedRus | It produces some result with multiple qty per day also. | 2021-05-07T17:46:52 | 2021-05-07T17:46:52 | {} | CONTRIBUTOR |
ClickHouse | ClickHouse | 833,336,443 | 23,911 | vdimir | > I don't know how to write test to reproduce it. Could you give me some help?
Can you reproduce it locally? If you can, see integration tests
https://github.com/ClickHouse/ClickHouse/blob/master/tests/integration/test_storage_s3/test.py
https://github.com/ClickHouse/ClickHouse/blob/master/tests/integration/README... | 2021-05-06T08:27:07 | 2021-05-06T08:28:34 | {} | MEMBER |
ClickHouse | ClickHouse | 833,339,302 | 23,911 | ucasfl | > > I don't know how to write test to reproduce it. Could you give me some help?
>
> Can you reproduce it locally? If you can, see integration tests
> https://github.com/ClickHouse/ClickHouse/blob/master/tests/integration/test_storage_s3/test.py
> https://github.com/ClickHouse/ClickHouse/blob/master/tests/integrat... | 2021-05-06T08:31:02 | 2021-05-06T08:31:02 | {} | COLLABORATOR |
ClickHouse | ClickHouse | 833,373,781 | 23,911 | ucasfl | > > > I don't know how to write test to reproduce it. Could you give me some help?
> >
> >
> > Can you reproduce it locally? If you can, see integration tests
> > https://github.com/ClickHouse/ClickHouse/blob/master/tests/integration/test_storage_s3/test.py
> > https://github.com/ClickHouse/ClickHouse/blob/maste... | 2021-05-06T09:20:54 | 2021-05-06T09:20:54 | {} | COLLABORATOR |
ClickHouse | ClickHouse | 833,550,114 | 23,915 | alexey-milovidov | Duplicate #23901. | 2021-05-06T14:04:17 | 2021-05-06T14:04:17 | {} | MEMBER |
ClickHouse | ClickHouse | 833,607,040 | 23,196 | Amesaru | > may be you forgot to checkout on master branch and build it.
Nope, I am on origin/master and have it built. | 2021-05-06T15:18:06 | 2021-05-06T15:19:19 | {} | CONTRIBUTOR |
ClickHouse | ClickHouse | 834,124,299 | 17,956 | zba | I tried with synthetic data, not expirienced any errors, so It probably related to engine:
```
WITH frontendLog as (
select data.1 as uri,
toDateTime(data.2) as event_time,
event_date
from (
with toUnixTimestamp(now()+((rand(t)/4294967295)*43200))... | 2021-05-07T07:10:24 | 2021-05-07T07:10:24 | {} | NONE |
ClickHouse | ClickHouse | 834,144,866 | 23,901 | kubantsev | > @alexey-milovidov
> If we simply remove these two lines it will work as expected:
> https://github.com/ClickHouse/ClickHouse/blob/master/src/Server/HTTP/ReadHeaders.cpp#L71
Nope, it will fails further on `ch == '\n'` as `skipWhitespaceIfAny(in, true);` skips `\r` too | 2021-05-07T07:47:55 | 2021-05-07T07:47:55 | {} | NONE |
ClickHouse | ClickHouse | 834,371,921 | 23,912 | alexey-milovidov | Need to return some headers back... | 2021-05-07T13:13:06 | 2021-05-07T13:13:06 | {} | MEMBER |
ClickHouse | ClickHouse | 834,421,973 | 23,936 | den-crane | https://github.com/ClickHouse/ClickHouse/issues/4176 | 2021-05-07T13:58:10 | 2021-05-07T13:58:10 | {} | CONTRIBUTOR |
ClickHouse | ClickHouse | 833,557,607 | 23,911 | ucasfl | > @ucasFL Can you provide trace log of the error which was not fixed by #22988 ? Actually `offset + already_read_bytes` shall always be equal to `getPosition()`
```
2021.05.06 22:12:53.772123 [ 52439 ] {3193061b-f6d8-4046-83d1-db9dc16a6c4e} <Error> TCPHandler: Code: 40, e.displayText() = DB::Exception: Checksum doe... | 2021-05-06T14:14:19 | 2021-05-06T14:14:42 | {} | COLLABORATOR |
ClickHouse | ClickHouse | 833,672,770 | 23,918 | kssenii | Already done in https://github.com/ClickHouse/ClickHouse/pull/23887. It is not yet merged though. | 2021-05-06T16:38:01 | 2021-05-06T16:38:01 | {
"+1": 1
} | MEMBER |
ClickHouse | ClickHouse | 833,942,883 | 23,926 | den-crane | https://kb.altinity.com/engines/altinity-kb-atomic-database-engine/altinity-kb-how-to-convert-atomic-to-ordinary#schemas-with-materialized-view | 2021-05-06T23:26:40 | 2021-05-06T23:26:40 | {} | CONTRIBUTOR |
ClickHouse | ClickHouse | 834,347,324 | 16,775 | alexey-milovidov | @filimonov Only ZLO and ZSTD are general purpose compression codecs. We already have ZSTD. And there is zero sense to add ZLO as it is inferior than LZ4. This task is not to add specialized compression codecs. | 2021-05-07T12:46:50 | 2021-05-07T12:47:14 | {} | MEMBER |
ClickHouse | ClickHouse | 834,367,656 | 23,871 | alexey-milovidov | It's strange - the file is broken. Could you reupload it? | 2021-05-07T13:08:36 | 2021-05-07T13:08:36 | {} | MEMBER |
ClickHouse | ClickHouse | 834,501,230 | 17,623 | RoadTrain | Any chance for https://github.com/ClickHouse/ClickHouse/issues/8687 ?
Looks like it might fall into 'nested types improvements' category.
My use-case is several nested columns in a single table, I'd like to conveniently select/filter by nested data. | 2021-05-07T15:12:08 | 2021-05-07T15:15:09 | {} | NONE |
ClickHouse | ClickHouse | 833,544,203 | 23,917 | alexey-milovidov | @l1t1 It is a very minor issue, I doubt we should fix it.
The culprit is that basic JavaScript types do not support 64-bit integers (all numbers are double precision floats).
We transfer data into UI in JSON format. JSON format has support for arbitrary numbers. But we also use JSON deserialization routines in Java... | 2021-05-06T13:56:29 | 2021-05-06T13:56:29 | {} | MEMBER |
ClickHouse | ClickHouse | 833,596,987 | 23,196 | Amesaru | > BTW, executing a query like `select number from numbers(1000000000) format Null;` in clickhouse-client on your branch does not render any progress bar, but it does so on master, looks like there is a bug..
It doesn't render progress bar on master. And it shouldn't, because it doesn't take much time and if the quer... | 2021-05-06T15:05:24 | 2021-05-06T15:05:24 | {} | CONTRIBUTOR |
ClickHouse | ClickHouse | 833,613,240 | 23,196 | kssenii | > Still don't know what's the problem with my master build and why it doesn't show progress bar
Did you also check `clickhouse-client` ? I checked the client, not local.
> And still, as I said before, it shouldn't output progress bar if the execution is quick enough. Or should it?
I would not call that query q... | 2021-05-06T15:26:37 | 2021-05-06T15:26:37 | {} | MEMBER |
ClickHouse | ClickHouse | 833,981,730 | 23,904 | electrical | I've tried to check what I can. In the meantime the error actually disappeared which is super confusing since it's been around for quite a long time.
Going to close this for now. If it happens again I'll try to do more digging and open a new issue.
Thank you for the assistance. | 2021-05-07T00:59:32 | 2021-05-07T00:59:32 | {} | NONE |
ClickHouse | ClickHouse | 834,196,042 | 17,623 | silashansen | Looking at this list, I think it's missing some operational development.
As awesome as I found Clickhouse to be, I find that the operational burden is higher than it should be:
- Lack of automatic rebalancing of shards when changing topolgy.
- Lack of automatic replica placement that always ensures high availabi... | 2021-05-07T09:08:49 | 2021-05-07T10:09:47 | {
"+1": 4
} | NONE |
ClickHouse | ClickHouse | 833,343,649 | 23,911 | ucasfl | BTW, I'm very confusing about why `count()` always return 0? | 2021-05-06T08:37:00 | 2021-05-06T08:37:00 | {} | COLLABORATOR |
ClickHouse | ClickHouse | 833,489,698 | 23,914 | den-crane | MergeScheduler wakes up every second and computes does it need to merge parts or not, and if it does need, then scheduler a new merge and merge parts. | 2021-05-06T12:40:01 | 2021-05-06T12:40:01 | {} | CONTRIBUTOR |
ClickHouse | ClickHouse | 833,548,442 | 23,911 | excitoon | @ucasFL Can you provide trace log of the error which was not fixed by #22988 ? Actually `offset + already_read_bytes` shall always be equal to `getPosition()` :man_shrugging: | 2021-05-06T14:02:05 | 2021-05-06T14:02:15 | {} | CONTRIBUTOR |
ClickHouse | ClickHouse | 833,601,320 | 23,196 | Amesaru | > It does:
> 
Hm... Then idk why it doesn't on my master
Btw why is your progress bar pink? | 2021-05-06T15:10:57 | 2021-05-06T15:12:08 | {} | CONTRIBUTOR |
ClickHouse | ClickHouse | 833,609,535 | 23,196 | Amesaru | > may be you forgot to checkout on master branch and build it.
And still, as I said before, it shouldn't output progress bar if the execution is quick enough. Or should it? | 2021-05-06T15:21:29 | 2021-05-06T15:25:03 | {} | CONTRIBUTOR |
ClickHouse | ClickHouse | 833,629,130 | 23,196 | kssenii | > When i execute this command it takes around 1 second, so after 0.5 seconds the query is around halfway done, so that's why it doesn't show progress bar.
Are you sure you made the same query - `clickhouse-client --progress --query "select number from numbers(1000000000) format Null;" ` ? | 2021-05-06T15:46:37 | 2021-05-06T15:47:02 | {} | MEMBER |
ClickHouse | ClickHouse | 833,953,756 | 23,871 | CurtizJ | I've added tests to skip list. Let's implement it with antlr parser in separate pr. | 2021-05-06T23:54:06 | 2021-05-06T23:54:06 | {} | MEMBER |
ClickHouse | ClickHouse | 834,020,139 | 23,932 | CurtizJ | This PR depends on #22535 and contains changes from it. If you want to see changes, that related only to implementation of dynamic subcolumns without `ColumnSparse`, you can use link https://github.com/CurtizJ/ClickHouse/compare/sparse-serialization...CurtizJ:dynamic-columns. | 2021-05-07T02:47:46 | 2021-05-07T02:47:46 | {} | MEMBER |
ClickHouse | ClickHouse | 834,088,474 | 6,757 | arjenzhou | @zhuyoucui0909
https://clickhouse.tech/docs/en/engines/database-engines/atomic/#exchange-tables
This may resolve your question. | 2021-05-07T05:56:17 | 2021-05-07T05:56:17 | {} | NONE |
ClickHouse | ClickHouse | 834,368,044 | 23,871 | alexey-milovidov | Then it's ok to merge immediately. | 2021-05-07T13:09:01 | 2021-05-07T13:09:01 | {} | MEMBER |
ClickHouse | ClickHouse | 834,479,012 | 23,062 | tavplubix | > The biggest problem we currently encounter is that the node is unavailable due to hardware failure, such as a disk or network card failure.
Creation of an ephemeral node on `DDLWorker` initialization will solve the problem. Existence of such node will indicate that host is available and `DDLWorker` is active. `DDL... | 2021-05-07T14:51:30 | 2021-05-07T14:51:30 | {
"+1": 1
} | MEMBER |
ClickHouse | ClickHouse | 834,665,238 | 20,159 | alexey-milovidov | Reading in order reduces maximum parallelism of data processing.
Also it cannot be used in the first example:
> PRIMARY KEY (cust id, some other cols, toDateTime(time))
because of `cust id, some other cols` | 2021-05-07T18:10:29 | 2021-05-07T18:10:29 | {} | MEMBER |
ClickHouse | ClickHouse | 834,666,576 | 20,159 | alexey-milovidov | Also it's possible that storing data in two columns:
```
time DateTime,
milliseconds UInt16
```
instead of DateTime64 will be beneficial, because it can compress better;
you will read less amount of data if milliseconds are unneeded,
and also the conditions in your query will be simpler. | 2021-05-07T18:12:48 | 2021-05-07T18:12:48 | {} | MEMBER |
ClickHouse | ClickHouse | 833,332,747 | 17,956 | vdimir | > experiencing same issue using "WITH clause" as alias - query can execute as usual, or give this error, usually it stuck for some time and start to work after sometime (like something cached). It is something similar or need further investigation ?
@zba
Does it reproduced only with `Join` table engine? Could you p... | 2021-05-06T08:22:00 | 2021-05-06T08:22:18 | {} | MEMBER |
ClickHouse | ClickHouse | 833,334,946 | 23,907 | UnamedRus | Support for argMax in SimpleAggregateFunction was removed here: https://github.com/ClickHouse/ClickHouse/pull/23393
Because it has crash: https://github.com/ClickHouse/ClickHouse/issues/22384 | 2021-05-06T08:25:01 | 2021-05-06T08:25:01 | {} | CONTRIBUTOR |
ClickHouse | ClickHouse | 833,564,954 | 23,919 | ucasfl | > Ok. Also I see that the commit message has strange characters: `â�”â�`
> Could you please push --force with another commit message?
Ok. | 2021-05-06T14:23:46 | 2021-05-06T14:23:46 | {} | COLLABORATOR |
ClickHouse | ClickHouse | 833,721,192 | 23,928 | kreuzerkrieg | @KochetovNicolai as discussed a couple of days before. Please take a look, we have a concensus on totals, not sure about extremes. WDYT?
| 2021-05-06T17:37:57 | 2021-05-06T17:37:57 | {} | CONTRIBUTOR |
ClickHouse | ClickHouse | 833,781,698 | 23,871 | alexey-milovidov | Proper test:
```
milovidov@milovidov-desktop:~/work/ClickHouse/build$ echo "SELECT [$(seq 1 999999 | tr '\n' ',')0] FORMAT Null" | time clickhouse-client --max_query_size 100000000
0.42user 0.07system 0:01.54elapsed 31%CPU (0avgtext+0avgdata 402808maxresident)k
0inputs+0outputs (0major+86580minor)pagefaults 0swaps
... | 2021-05-06T18:58:10 | 2021-05-06T18:58:58 | {} | MEMBER |
ClickHouse | ClickHouse | 834,010,294 | 12,567 | lelezhan | So when we could use the view function? I tested it, it also executes subquery in view for local shard firstly,then executes remote shard. Compared with distribute table, can it improve the performance of query execution when combining it with clusters function, like WITH CTE subquery | 2021-05-07T02:21:05 | 2021-05-07T02:21:05 | {} | NONE |
ClickHouse | ClickHouse | 834,352,480 | 17,623 | alexey-milovidov | > Lack of automatic rebalancing of shards when changing topolgy.
We keep this task in mind - I did not add it to the roadmap for 2021, because the chance it will be ready is not high. | 2021-05-07T12:52:35 | 2021-05-07T12:52:35 | {
"heart": 3
} | MEMBER |
ClickHouse | ClickHouse | 834,667,574 | 23,937 | alexey-milovidov | Also consider materialized views and live views.
But materialized views are not very different to tables, so the scope of SHOW VIEWS remains unclear. | 2021-05-07T18:14:31 | 2021-05-07T18:14:31 | {} | MEMBER |
ClickHouse | ClickHouse | 833,343,921 | 23,822 | Enmk | > > ```
> > Неправильная строка для changelog.
> >
> > Если попадает в категорию bugfix - необходимо написать, какое поведение ClickHouse с точки зрения пользователя было ошибочным (какая ошибка исправлена).
> >
> > Внутренности кода никого не волнуют, их не надо писать в changelog.
> >
> > Ты написал:
> > ... | 2021-05-06T08:37:28 | 2021-05-06T08:37:38 | {} | CONTRIBUTOR |
ClickHouse | ClickHouse | 833,493,132 | 23,914 | sileiH | Sometimes I don't need this merge, and it causes the disks to explode and crash. Will he merge the part from different disks? My each disk capacity is relatively small, is there any way to avoid this? | 2021-05-06T12:45:31 | 2021-05-06T12:45:31 | {} | NONE |
ClickHouse | ClickHouse | 833,581,767 | 6,286 | excitoon | @Akazz what does `ded moroz` label mean? | 2021-05-06T14:45:42 | 2021-05-06T14:45:50 | {} | CONTRIBUTOR |
ClickHouse | ClickHouse | 833,595,518 | 6,286 | alexey-milovidov | @Akazz supposed to act like a real Ded Moroz and deliver this feature on Jan 1st 2021. It did not happen. | 2021-05-06T15:03:28 | 2021-05-06T15:03:28 | {} | MEMBER |
ClickHouse | ClickHouse | 833,599,718 | 6,286 | excitoon | @alexey-milovidov It's hard time for Ded Moroz these days, because borders are mostly closed due to coronavirus. | 2021-05-06T15:09:03 | 2021-05-06T15:09:03 | {} | CONTRIBUTOR |
ClickHouse | ClickHouse | 834,241,557 | 23,931 | kolykhalov | > Can you check this?
Sure! :)
` DB::Exception: Unknown aggregate function lag (version 21.4.6.55 (official build))`
Had to modify it to lagInFrame like this and group by date:
```
select date
, ABS(sum(qty - lag_qty)) as orders
from (select product_id,date_trunc('day',lastupdated) as date, qty,
lagIn... | 2021-05-07T10:17:37 | 2021-05-07T10:44:39 | {} | NONE |
ClickHouse | ClickHouse | 834,293,492 | 16,775 | filimonov | List of codecs supported by redshift:
https://docs.aws.amazon.com/redshift/latest/dg/c_Compression_encodings.html | 2021-05-07T11:36:10 | 2021-05-07T11:36:10 | {} | CONTRIBUTOR |
ClickHouse | ClickHouse | 834,357,020 | 17,623 | alexey-milovidov | @zhicwu By the way - is it possible to solve packaging, so the clickhouse-jdbc-bridge (whatever name it has) will be always available after installing ClickHouse? The only requirement - it's better to be independent of Ubuntu and Linux version.
I want to increase adoption of clickhouse-jdbc-bridge... | 2021-05-07T12:57:28 | 2021-05-07T12:59:49 | {} | MEMBER |
ClickHouse | ClickHouse | 834,366,540 | 23,871 | alexey-milovidov | > set_index | xml.etree.ElementTree.ParseError: no element found: line 96, column 9982
| 2021-05-07T13:07:24 | 2021-05-07T13:07:24 | {} | MEMBER |
ClickHouse | ClickHouse | 833,463,721 | 23,917 | l1t1 | select [toUInt32(4)] a,[toUInt64(4)]b, [toUInt8(4)]c
returns
a | b | c
-- | -- | --
[4] | ["4"] | [4]
| 2021-05-06T11:55:06 | 2021-05-06T11:55:06 | {} | NONE |
ClickHouse | ClickHouse | 833,552,850 | 23,911 | ucasfl | > @ucasFL which build of ClickHouse have you tried to reproduce it?
Latest master branch. | 2021-05-06T14:08:00 | 2021-05-06T14:08:00 | {} | COLLABORATOR |
ClickHouse | ClickHouse | 833,578,279 | 23,911 | ucasfl | > @ucasFL Can you also tell what's going on in log before that? When connection drops and new request is being made?
> […](#)
> On Thu, May 6, 2021, 5:14 PM flynn ***@***.***> wrote: @ucasFL <https://github.com/ucasFL> Can you provide trace log of the error which was not fixed by #22988 <#22988> ? Actually offset + a... | 2021-05-06T14:40:54 | 2021-05-06T14:40:54 | {} | COLLABORATOR |
ClickHouse | ClickHouse | 834,200,740 | 23,062 | marising | Thank you @tavplubix for your reply, I will explain my thoughts below.
1. The biggest problem we currently encounter is that the node is unavailable due to hardware failure, such as a disk or network card failure. At this time, the execution of DDL will fail. As you said, there are many optional optimization soluti... | 2021-05-07T09:16:21 | 2021-05-07T09:16:21 | {} | CONTRIBUTOR |
ClickHouse | ClickHouse | 834,370,696 | 23,647 | alexey-milovidov | https://clickhouse-test-reports.s3.yandex.net/23894/c60c975125f3806710c7f3184dfcead64bb237b2/functional_stateless_tests_(release,_databasereplicated)/test_run.txt.out.log | 2021-05-07T13:11:49 | 2021-05-07T13:11:49 | {} | MEMBER |
ClickHouse | ClickHouse | 826,934,440 | 23,647 | tavplubix | Log: https://gist.github.com/tavplubix/7d4835190eca4c664e33300f8c804f54
Exception was thrown from here: https://github.com/ClickHouse/ClickHouse/blob/495c6e03aa9437dac3cd7a44ab3923390bef9982/src/Interpreters/executeDDLQueryOnCluster.cpp#L325
Looks like some issue with Keeper, because it should not respond with `ZRU... | 2021-04-26T15:32:55 | 2021-05-07T13:12:03 | {} | MEMBER |
ClickHouse | ClickHouse | 834,650,862 | 23,931 | UnamedRus | Can you make some example which is failing in clickhouse? | 2021-05-07T17:47:12 | 2021-05-07T17:47:12 | {} | CONTRIBUTOR |
ClickHouse | ClickHouse | 834,667,944 | 23,937 | alexey-milovidov | If we will implement SHOW VIEWs straight as proposed, people will always wonder if materialized and live views are included. | 2021-05-07T18:15:08 | 2021-05-07T18:15:08 | {} | MEMBER |
ClickHouse | ClickHouse | 833,475,903 | 23,917 | l1t1 | select [toUInt32(4)] a,[toUInt64(4)]b, [toUInt8(4)]c,[toUInt16(4)] d,[toInt128(4)]e, [toUInt256(4)]f
returns
a | b | c | d | e | f
-- | -- | -- | -- | -- | --
[4] | ["4"] | [4] | [4] | ["4"] | ["4"]
| 2021-05-06T12:16:40 | 2021-05-06T12:16:40 | {} | NONE |
ClickHouse | ClickHouse | 833,616,400 | 23,196 | Amesaru | > Did you also check `clickhouse-client` ? I checked the client, not local.
Yes, I checked the client.
> I would not call that query quick - it takes some seconds.
> And in the code it starts showing progress if the query takes more than half a second.
When i execute this command it takes around 1 second, s... | 2021-05-06T15:29:56 | 2021-05-06T15:32:40 | {} | CONTRIBUTOR |
ClickHouse | ClickHouse | 834,205,940 | 17,623 | UnamedRus | > Lack of atomically updating a distributed table to point to another underlying table (for migrating data without downtime)
You can do this with Atomic database engine and `EXCHANGE TABLES` query
> I think there is room for some more declarative configuration that doesn't require me to have to pay attention to... | 2021-05-07T09:24:17 | 2021-05-07T09:24:17 | {
"+1": 2
} | CONTRIBUTOR |
ClickHouse | ClickHouse | 834,321,964 | 22,165 | vzakaznikov | @MyroTk, let's close this PR. I will take over this work. | 2021-05-07T12:15:50 | 2021-05-07T12:15:50 | {} | CONTRIBUTOR |
ClickHouse | ClickHouse | 833,546,445 | 23,917 | alexey-milovidov | I prefer to avoid fixing this issue just to keep the code of Web UI simple.
JavaScript programming language is a field where it's too easy to get buried in complexity :) | 2021-05-06T13:59:23 | 2021-05-06T14:00:12 | {} | MEMBER |
ClickHouse | ClickHouse | 833,554,817 | 23,919 | alexey-milovidov | Ok. Also I see that the commit message has strange characters: `â�”â�`
Could you please push --force with another commit message? | 2021-05-06T14:10:37 | 2021-05-06T14:10:37 | {} | MEMBER |
ClickHouse | ClickHouse | 833,599,946 | 23,196 | kssenii | > It doesn't render progress bar on master.
It does:

| 2021-05-06T15:09:20 | 2021-05-06T15:09:20 | {} | MEMBER |
ClickHouse | ClickHouse | 834,152,427 | 23,926 | Felixoid | Sorry, Denis, it's otherwise. I rename ordinary TO atomic. | 2021-05-07T08:00:32 | 2021-05-07T08:00:32 | {} | MEMBER |
ClickHouse | ClickHouse | 834,168,765 | 23,537 | JackyWoo | got it, thanks | 2021-05-07T08:26:49 | 2021-05-07T08:26:49 | {} | CONTRIBUTOR |
ClickHouse | ClickHouse | 834,209,242 | 23,931 | UnamedRus | Probably the same issue as here:
https://github.com/ClickHouse/ClickHouse/issues/19857
You can't calculate expression over window functions for now, you need to use separate subquery for this. | 2021-05-07T09:29:03 | 2021-05-07T09:29:03 | {} | CONTRIBUTOR |
ClickHouse | ClickHouse | 834,240,392 | 23,880 | filimonov | > Another idea is to add IO throttling for merges and moves. E.g. merges and moves occupy not more than 50% IO bandwidth.
Static throttling is not very nice: if clickhouse has nothing more important to do (no running queries) - why should we make merges / moves slower. Because of that something like priorities (or m... | 2021-05-07T10:15:44 | 2021-05-07T10:15:44 | {} | CONTRIBUTOR |
ClickHouse | ClickHouse | 834,514,286 | 17,623 | alexey-milovidov | @RoadTrain This task will be taken not earlier than #23932 and #23194. | 2021-05-07T15:19:04 | 2021-05-07T15:19:04 | {
"heart": 1
} | MEMBER |
ClickHouse | ClickHouse | 833,457,678 | 23,911 | ucasfl | > > But it's happened when I using `DiskS3` to store `star schema benchmark` flat schema table, which data size is 1.4 TB, seems it is not easy to reproduce it with integration tests.
>
> Got it, yes, so we should try to find minimal example or figure out what is actual problem with code.
>
> > The reason is beca... | 2021-05-06T11:44:01 | 2021-05-06T14:28:23 | {} | COLLABORATOR |
ClickHouse | ClickHouse | 833,995,387 | 23,914 | sileiH | Thank you | 2021-05-07T01:39:21 | 2021-05-07T01:39:21 | {} | NONE |
ClickHouse | ClickHouse | 834,517,663 | 23,035 | stone-wlg | > @stone-wlg How does the parameter "database_atomic_delay_before_drop_table_sec" connect with your problem? I also encountered this problem some time ago.
if we drop a table, clickhouse will remove it from zookeeper after <database_atomic_delay_before_drop_table_sec> 8 mins. During this phase, we get error message ... | 2021-05-07T15:22:24 | 2021-05-07T15:22:24 | {} | NONE |
ClickHouse | ClickHouse | 833,575,831 | 23,911 | ucasfl | The log shows the difference:
```
tail -f clickhouse-server.log |grep DIFF
2021.05.06 22:29:20.831195 [ 60271 ] {c2a03554-bfc3-4a4d-830c-6b4769567e91} <Trace> ReadBufferFromS3: DIFF: position:1048576, getPosition():0, already_read_bytes:1048576, offset:0, count():0
2021.05.06 22:29:51.858845 [ 60209 ] {c2a03554-bfc... | 2021-05-06T14:37:52 | 2021-05-06T14:37:52 | {
"heart": 1
} | COLLABORATOR |
ClickHouse | ClickHouse | 833,676,391 | 23,918 | ismailakpolat | Oh thank you. Hope to be released soon. | 2021-05-06T16:43:24 | 2021-05-06T16:43:24 | {} | CONTRIBUTOR |
ClickHouse | ClickHouse | 833,567,471 | 23,911 | excitoon | @ucasFL Can you also tell what's going on in log before that? When
connection drops and new request is being made?
On Thu, May 6, 2021, 5:14 PM flynn ***@***.***> wrote:
> @ucasFL <https://github.com/ucasFL> Can you provide trace log of the
> error which was not fixed by #22988
> <https://github.com/ClickHouse/ClickH... | 2021-05-06T14:27:03 | 2021-05-06T14:27:03 | {} | CONTRIBUTOR |
ClickHouse | ClickHouse | 833,605,143 | 23,196 | kssenii | > Hm... Then idk why it doesn't on my master
may be you forgot to checkout on master branch and build it. | 2021-05-06T15:15:35 | 2021-05-06T15:15:35 | {} | MEMBER |
ClickHouse | ClickHouse | 833,761,880 | 23,871 | CurtizJ | Performance of parsing large arrays is increased. The queries are taken from added perf test.
```
cat array.sql | clickhouse benchmark --cumulative
localhost:9000, queries 144, QPS: 12.525, RPS: 12.525, MiB/s: 0.000, result RPS: 12.525, result MiB/s: 0.000.
0.000% 0.010 sec.
10.000% 0.011 sec.... | 2021-05-06T18:32:12 | 2021-05-06T18:38:56 | {
"+1": 1
} | MEMBER |
ClickHouse | ClickHouse | 833,968,434 | 23,704 | vzakaznikov | @alexey-milovidov, these tests are ready to be merged. | 2021-05-07T00:25:09 | 2021-05-07T00:25:09 | {} | CONTRIBUTOR |
ClickHouse | ClickHouse | 834,070,959 | 17,956 | zba | the full error is
```
received exception from server:
Code: 10, e.displayText() = DB::Exception: Received from dbhost:9000. DB::Exception: Not found column and(serverTime, equals(action, 'Rendered')) in block. There are only columns: equals(action, 'Rendered'), toInt64OrNull(extractURLParameter(uri, 'serverTime'))... | 2021-05-07T05:08:16 | 2021-05-07T05:09:18 | {} | NONE |
ClickHouse | ClickHouse | 834,212,641 | 23,931 | kolykhalov | > You can't calculate expression over window functions for now, you need to use separate subquery for this.
@UnamedRus thanks for brief answer! :) Can you point in the direction how to subquery it? I do not quite follow what is the logic of subquery. I have several groups over time and product that have diminishing ... | 2021-05-07T09:33:57 | 2021-05-07T09:36:59 | {} | NONE |
ClickHouse | ClickHouse | 834,231,517 | 23,931 | UnamedRus | ```
select date, ABS(sum(qty - lag_qty)) as orders from ( select date_trunc('day',lastupdated) as date, qty, lag(qty) over (PARTITION BY product_id, date_trunc('day',lastupdated) order by date_trunc('day',lastupdated)) as lag_qty from goods) t group by product_id order by date desc
```
Can you check this? | 2021-05-07T10:01:49 | 2021-05-07T10:02:20 | {} | CONTRIBUTOR |
ClickHouse | ClickHouse | 834,358,415 | 17,623 | alexey-milovidov | @dengc367
> Subquery operators: INTERSECT/EXCEPT, ANY/ALL/EXISTS.
Not earlier than July. | 2021-05-07T12:58:55 | 2021-05-07T12:58:55 | {} | MEMBER |
ClickHouse | ClickHouse | 834,727,492 | 23,931 | kolykhalov | Sure, thanks a lot for your engaging! 👍
The query looks like this (according to your example):
````sql
select date,lag from (
select product_id,date,qty
,lagInFrame(qty) over (PARTITION by product_id,date order by date) as lag
from (
select product_id, date_trunc('day',lastupdated) as date, min(qty... | 2021-05-07T19:42:42 | 2021-05-07T19:42:42 | {} | NONE |
ClickHouse | ClickHouse | 833,448,927 | 23,892 | mindrb | Thank you. Clear now. Also did some tests.
I suggest to improve [OPTIMIZE documentation](https://clickhouse.tech/docs/en/sql-reference/statements/optimize/). Important nuance is that to optimize one 20GB partition I need up to 40GB of empty space. But out of those 40GB 20GB will be released into OS after operation b... | 2021-05-06T11:27:34 | 2021-05-06T11:27:34 | {} | NONE |
ClickHouse | ClickHouse | 833,454,952 | 23,911 | vdimir | > But it's happened when I using `DiskS3` to store `star schema benchmark` flat schema table, which data size is 1.4 TB, seems it is not easy to reproduce it with integration tests.
Got it, yes, so we should try to find minimal example or figure out what is actual problem with code.
> The reason is because that cou... | 2021-05-06T11:38:43 | 2021-05-06T11:38:43 | {} | MEMBER |
ClickHouse | ClickHouse | 833,517,547 | 23,919 | ucasfl | ```
:) SELECT CAST('Helo' AS Enum('Hello' = 1, 'World' = 2))
SELECT CAST('Helo', 'Enum(\'Hello\' = 1, \'World\' = 2)')
Query id: c963ddd6-1db7-4841-9257-b90fbdbdc5e4
0 rows in set. Elapsed: 0.002 sec.
Received exception from server (version 21.6.1):
Code: 36. DB::Exception: Received from localhost:9000... | 2021-05-06T13:20:49 | 2021-05-06T13:20:49 | {} | COLLABORATOR |
ClickHouse | ClickHouse | 834,109,215 | 21,538 | mjh568412187 | > For Kafka engine authentication, server-level settings in ClickHouse config file is the way to go now.
https://github.com/ClickHouse/ClickHouse/issues/23933
Thank you, waiting for your reply. | 2021-05-07T06:40:41 | 2021-05-07T06:40:41 | {} | NONE |
ClickHouse | ClickHouse | 834,282,717 | 23,931 | UnamedRus | ```
SELECT
date,
ABS(sum(qty - lag_qty)) AS orders
FROM
(
SELECT
product_id,
date_trunc('day', lastupdated) AS date,
qty,
lagInFrame(qty) OVER (PARTITION BY product_id, date_trunc('day', lastupdated) ORDER BY date_trunc('day', lastupdated) ASC) AS lag_qty
FROM
... | 2021-05-07T11:20:54 | 2021-05-07T11:20:54 | {
"+1": 1
} | CONTRIBUTOR |
ClickHouse | ClickHouse | 834,650,378 | 23,931 | UnamedRus | ```
SELECT
product_id,
date,
ABS(sum(qty - lag_qty)) AS orders,
count()
FROM
(
SELECT
product_id,
date_trunc('day', lastupdated) AS date,
qty,
lagInFrame(qty) OVER (PARTITION BY product_id, date_trunc('day', lastupdated) ORDER BY date_trunc('day', lastupda... | 2021-05-07T17:46:22 | 2021-05-07T17:46:22 | {} | CONTRIBUTOR |
ClickHouse | ClickHouse | 822,594,963 | 23,257 | alexey-milovidov | ```
2021.04.17 17:29:34.942093 [ 307 ] {f5d476d4-a1d0-44d2-94ae-2265b77862b5} <Debug> executeQuery: (from [::ffff:127.0.0.1]:52722, initial_query_id: 9fc2572c-55ec-4818-adef-1e16fe047a5f, using production parser) (comment: '/usr/share/clickhouse-test/queries/0_stateless/01602_max_distributed_connections.sh') SELECT sl... | 2021-04-19T16:15:00 | 2021-04-19T16:15:30 | {} | MEMBER |
ClickHouse | ClickHouse | 822,659,336 | 23,182 | sevirov | Internal documentation ticket: DOCSUP-8709. | 2021-04-19T17:53:11 | 2021-04-19T17:53:11 | {} | CONTRIBUTOR |
ClickHouse | ClickHouse | 823,015,915 | 23,140 | azat | >Fix multiple block insertion into distributed table with random_shard_insert = 1. This is a marginal feature. Mark as improvement.
For changelog it is better to use name of the setting `insert_distributed_one_random_shard` | 2021-04-20T06:40:07 | 2021-04-20T06:40:07 | {} | MEMBER |
ClickHouse | ClickHouse | 822,739,568 | 23,298 | alexey-milovidov | File can be truncated for two reasons:
- there is no space on device and the file was not written completely;
- the file is larger than 2 GiB or 4 GiB and linker does not support large files.
Here is the release branch for version 20.8: https://github.com/ClickHouse/ClickHouse/pull/14297
You can find the build lo... | 2021-04-19T19:49:33 | 2021-04-19T19:50:58 | {} | MEMBER |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.