Skip to content

Instantly share code, notes, and snippets.

View alexey-milovidov's full-sized avatar

Alexey Milovidov alexey-milovidov

View GitHub Profile
@alexey-milovidov
alexey-milovidov / gist_note.md
Created September 13, 2026 19:44
ClickHouse Web UI: digit-group separators (PR #119839) screenshot
@alexey-milovidov
alexey-milovidov / README.md
Last active August 19, 2026 19:59
Screenshots: box-drawing font fix for ClickHouse Fiddle / Click-UI

Before/after screenshots for clickhouse-fiddle and click-ui monospace font fix (box drawing alignment).

```
2022.08.24 14:08:36.908985 [ 2805621 ] {} <Error> ZooKeeperClient: Code: 999. Coordination::Exception: Operation timeout (no response) for request Create for path: /clickhouse/tables/7af94bd6-f5de-4f7f-bb31-c2bc6af692d3/1/part_moves_shard (Operation timeout). (KEEPER_EXCEPTION), Stack trace (when copying this message, always include the lines below):
0. DB::Exception::Exception(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, int, bool) @ 0xa360bfa in /usr/bin/clickhouse
1. Coordination::Exception::Exception(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, Coordination::Error, int) @ 0x168f8af5 in /usr/bin/clickhouse
2. Coordination::Exception::Exception(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, Coordination::Error) @ 0x168f8e47 in /usr/bin/clickhouse
3. Coordination::ZooKeeper::receiveThread() @ 0x1694bbd5 in /usr/bin/clickhouse
4. void std::__1::__function::__pol
ip-172-31-22-38.eu-central-1.compute.internal :) SET max_memory_usage = '100G', max_insert_threads = 72, max_threads = 72
SET max_memory_usage = '100G', max_insert_threads = 72, max_threads = 72
Query id: 09aa6c85-71fa-44e1-a830-f51ba512b2ee
Ok.
0 rows in set. Elapsed: 0.001 sec.
SELECT
CAST(time, 'Date') AS d,
sum(hits) AS c,
bar(c, 0, 10000000, 100)
FROM wikistat
WHERE path = 'Donald_Trump'
GROUP BY d
ORDER BY d ASC
Query id: 29b2a97b-acbb-4922-b6ab-73775eabd169
milovidov@milovidov-desktop:~/work/ClickHouse/docs/tools$ clickhouse-client
ClickHouse client version 22.2.1.1.
Connecting to localhost:9000 as user default.
Connected to ClickHouse server version 22.2.1 revision 54455.
milovidov-desktop :) ALTER TABLE test.hits ADD COLUMN all MATERIALIZED formatRow('TSV', *)
ALTER TABLE test.hits
ADD COLUMN `all` MATERIALIZED formatRow('TSV', *)
memcpy.S:
/*-*- mode:unix-assembly; indent-tabs-mode:t; tab-width:8; coding:utf-8 -*-│
│vi: set et ft=asm ts=8 tw=8 fenc=utf-8 :vi│
╞══════════════════════════════════════════════════════════════════════════════╡
│ Copyright 2020 Justine Alexandra Roberts Tunney │
│ │
│ Permission to use, copy, modify, and/or distribute this software for │
│ any purpose with or without fee is hereby granted, provided that the │
│ above copyright notice and this permission notice appear in all copies. │
# -*- coding: utf-8 -*-
import logging
import sandbox.sdk2.helpers
import subprocess
import os
from sandbox import sdk2
import sandbox.common.types.resource as ctr
import sandbox.common.types.client as ctc
from sandbox.projects.clickhouse.BaseOnCommitTask.base import NeedToRunDescription
$ clickhouse-client
ClickHouse client version 21.3.1.1.
Connecting to localhost:9000 as user default.
Connected to ClickHouse server version 21.3.1 revision 54447.
milovidov-desktop :) SELECT toDateTime(1234567890, 'Europe/Moscow')
SELECT toDateTime(1234567890, 'Europe/Moscow')
Query id: 99607776-8d7a-47f7-a3ca-ed00baa20c08
#include <cstddef>
#include <cstdint>
#include <vector>
#include <iostream>
#define ALWAYS_INLINE __attribute__((__always_inline__))
namespace
{