id
stringlengths
36
36
document
stringlengths
3
3k
metadata
stringlengths
23
69
embeddings
listlengths
384
384
50bd0c49-a045-47f7-b9cc-754c3257e883
slug: '/examples/aggregate-function-combinators/groupArrayResample' title: 'groupArrayResample' description: 'Example of using the Resample combinator with groupArray' keywords: ['groupArray', 'Resample', 'combinator', 'examples', 'groupArrayResample'] sidebar_label: 'groupArrayResample' doc_type: 'reference' group...
{"source_file": "groupArrayResample.md"}
[ -0.0334571935236454, 0.04147496074438095, -0.01857909746468067, 0.009065435267984867, -0.08038917183876038, 0.01637049950659275, 0.03394204005599022, 0.026446767151355743, -0.042450107634067535, -0.032860420644283295, -0.03660868853330612, -0.004881930537521839, 0.08130308240652084, -0.048...
534580a0-1039-458c-90ca-e551ec53fad8
slug: '/examples/aggregate-function-combinators/avgIf' title: 'avgIf' description: 'Example of using the avgIf combinator' keywords: ['avg', 'if', 'combinator', 'examples', 'avgIf'] sidebar_label: 'avgIf' doc_type: 'reference' avgIf {#avgif} Description {#description} The If combinator can be applied to the ...
{"source_file": "avgIf.md"}
[ -0.030103694647550583, 0.015890251845121384, -0.03387553244829178, 0.016217177733778954, -0.12766960263252258, 0.00312243914231658, 0.12300441414117813, 0.08191534876823425, 0.0541369691491127, 0.0342235341668129, -0.0055503943003714085, -0.049543190747499466, 0.04380548745393753, -0.03589...
a6985191-a8c3-463e-b446-690be20e2c8c
slug: '/examples/aggregate-function-combinators/maxSimpleState' title: 'maxSimpleState' description: 'Example of using the maxSimpleState combinator' keywords: ['max', 'state', 'simple', 'combinator', 'examples', 'maxSimpleState'] sidebar_label: 'maxSimpleState' doc_type: 'reference' maxSimpleState {#maxsimplestate...
{"source_file": "maxSimpleState.md"}
[ -0.011268286034464836, -0.0032782775815576315, 0.044117555022239685, 0.005002915393561125, -0.08222074061632156, 0.03653719276189804, -0.02008495293557644, 0.12731194496154785, -0.05682089552283287, -0.02614896558225155, -0.035098496824502945, -0.004363690037280321, 0.07261857390403748, -0...
ba5455c6-bccb-4427-b6b1-3ab3aa6d4660
slug: '/examples/aggregate-function-combinators/argMinIf' title: 'argMinIf' description: 'Example of using the argMinIf combinator' keywords: ['argMin', 'if', 'combinator', 'examples', 'argMinIf'] sidebar_label: 'argMinIf' doc_type: 'reference' argMinIf {#argminif} Description {#description} The If combinator...
{"source_file": "argMinIf.md"}
[ -0.056487321853637695, -0.001465103356167674, -0.03509093448519707, 0.05072447657585144, -0.0520755909383297, 0.0234078299254179, 0.16892853379249573, 0.07911623269319534, -0.017845233902335167, 0.000824799994006753, 0.018848802894353867, -0.04753480479121208, 0.09146735072135925, -0.03601...
0c1bcda7-2b7e-4cc1-a978-0ce5308f8099
slug: '/examples/aggregate-function-combinators/minMap' title: 'minMap' description: 'Example of using the minMap combinator' keywords: ['min', 'map', 'combinator', 'examples', 'minMap'] sidebar_label: 'minMap' doc_type: 'reference' minMap {#minmap} Description {#description} The Map combinator can be applied...
{"source_file": "minMap.md"}
[ 0.020174294710159302, 0.042638204991817474, 0.05391319468617439, 0.026234935969114304, -0.10670614242553711, 0.042676474899053574, 0.04383949935436249, 0.10521887987852097, -0.00019162491662427783, 0.0318739078938961, 0.04663796350359917, -0.08972744643688202, 0.09506341814994812, -0.02497...
bb6cc0bf-d604-4f5f-8d7e-c3843a4e79ef
slug: '/examples/aggregate-function-combinators/countResample' title: 'countResample' description: 'Example of using the Resample combinator with count' keywords: ['count', 'Resample', 'combinator', 'examples', 'countResample'] sidebar_label: 'countResample' doc_type: 'reference' countResample {#countResample} De...
{"source_file": "countResample.md"}
[ -0.03934033215045929, -0.008353724144399166, 0.03559162840247154, 0.034515731036663055, -0.10935699194669724, 0.014102143235504627, 0.006318810861557722, 0.08667366951704025, -0.021645573899149895, -0.007501059677451849, 0.0010822853073477745, -0.03273065388202667, 0.08157810568809509, -0....
812bafb3-6716-4864-8e5d-db23b6ad69e6
slug: '/examples/aggregate-function-combinators/argMaxIf' title: 'argMaxIf' description: 'Example of using the argMaxIf combinator' keywords: ['argMax', 'if', 'combinator', 'examples', 'argMaxIf'] sidebar_label: 'argMaxIf' doc_type: 'reference' argMaxIf {#argmaxif} Description {#description} The If combinator...
{"source_file": "argMaxIf.md"}
[ -0.05963308736681938, -0.01744123548269272, -0.02043168433010578, -0.02475057542324066, -0.04161219671368599, 0.036799993366003036, 0.1103224903345108, 0.0854041576385498, -0.040516480803489685, -0.016757601872086525, 0.007647468242794275, 0.007460466120392084, 0.102023184299469, -0.011643...
a3c73093-47d7-453f-8f83-ea6e27737080
slug: '/examples/aggregate-function-combinators/avgMergeState' title: 'avgMergeState' description: 'Example of using the avgMergeState combinator' keywords: ['avg', 'MergeState', 'combinator', 'examples', 'avgMergeState'] sidebar_label: 'avgMergeState' doc_type: 'reference' import Tabs from '@theme/Tabs'; import Ta...
{"source_file": "avgMergeState.md"}
[ -0.05490066483616829, -0.02016613259911537, 0.03653664514422417, 0.06451437622308731, -0.037277646362781525, 0.028151659294962883, 0.08036521077156067, 0.057375211268663406, -0.007291099056601524, 0.005956313572824001, -0.06824959069490433, -0.05912485718727112, 0.01399574801325798, 0.0124...
54c50d0c-9b40-4e32-9921-e90bb8fef328
We'll then insert sample raw data into the source table: sql INSERT INTO raw_server_metrics (timestamp, server_id, region, datacenter, response_time_ms) VALUES (now(), 101, 'us-east', 'dc1', 120), (now(), 101, 'us-east', 'dc1', 130), (now(), 102, 'us-east', 'dc1', 115), (now(), 201, 'us-west', 'dc1', ...
{"source_file": "avgMergeState.md"}
[ 0.050523653626441956, -0.022808140143752098, -0.012817883864045143, 0.060879990458488464, -0.06284798681735992, -0.04930058866739273, -0.01615188829600811, -0.0022085628006607294, 0.007332769688218832, 0.05298518389463425, 0.003275175578892231, -0.15796497464179993, 0.04420539364218712, -0...
4db51e18-8437-49d5-9e82-8765251b92da
slug: '/examples/aggregate-function-combinators/sumMap' title: 'sumMap' description: 'Example of using the sumMap combinator' keywords: ['sum', 'map', 'combinator', 'examples', 'sumMap'] sidebar_label: 'sumMap' doc_type: 'reference' sumMap {#summap} Description {#description} The Map combinator can be applied...
{"source_file": "sumMap.md"}
[ -0.0009643809753470123, 0.018690356984734535, 0.04346086084842682, 0.03386828303337097, -0.11768486350774765, 0.03259209170937538, 0.060680098831653595, 0.07354189455509186, 0.0016686089802533388, 0.050508998334407806, 0.01979415863752365, -0.07716478407382965, 0.07778358459472656, -0.0287...
d17240fc-bf7c-4c1b-941f-efe01fbf3d71
slug: '/examples/aggregate-function-combinators/avgState' title: 'avgState' description: 'Example of using the avgState combinator' keywords: ['avg', 'state', 'combinator', 'examples', 'avgState'] sidebar_label: 'avgState' doc_type: 'reference' avgState {#avgState} Description {#description} The State combina...
{"source_file": "avgState.md"}
[ -0.03098784200847149, -0.0359821617603302, 0.003540599951520562, 0.08797239512205124, -0.08327476680278778, 0.040349770337343216, 0.07313743233680725, 0.06764184683561325, -0.01837029680609703, 0.025467433035373688, -0.06274843215942383, -0.07237912714481354, 0.03682409226894379, -0.026715...
315c2d54-aad4-4a1b-9904-10321c084245
Examine the target table page_performance : sql SELECT page_id, page_name, avg_response_time, toTypeName(avg_response_time) FROM page_performance response β”Œβ”€page_id─┬─page_name─┬─avg_response_time─┬─toTypeName(avg_response_time)──┐ β”‚ 1 β”‚ Homepage β”‚ οΏ½ β”‚ AggregateFunction(avg,...
{"source_file": "avgState.md"}
[ -0.055386997759342194, -0.015095003880560398, -0.052420724183321, 0.07842761278152466, -0.014406242407858372, -0.01811540499329567, 0.05954962596297264, 0.017409823834896088, 0.012679224833846092, 0.014271436259150505, 0.03723018243908882, -0.041802357882261276, 0.012997196987271309, -0.09...
172ffe42-e3a1-4082-8924-0ee763ee874a
slug: /guides/sre/keeper/clickhouse-keeper sidebar_label: 'Configuring ClickHouse Keeper' sidebar_position: 10 keywords: ['Keeper', 'ZooKeeper', 'clickhouse-keeper'] description: 'ClickHouse Keeper, or clickhouse-keeper, replaces ZooKeeper and provides replication and coordination.' title: 'ClickHouse Keeper' doc_typ...
{"source_file": "index.md"}
[ -0.0640333741903305, -0.036463700234889984, -0.05929073691368103, -0.03903617337346077, -0.04752664640545845, -0.14853714406490326, 0.025409836322069168, -0.03023294173181057, -0.04630452021956444, 0.04275169596076012, -0.014039228670299053, 0.02536352351307869, 0.13250450789928436, -0.006...
a473cc60-29c3-4737-83cb-d761f0997101
| Parameter | Description | Default ...
{"source_file": "index.md"}
[ 0.027120506390929222, 0.0663352832198143, -0.047471147030591965, -0.0024363878183066845, -0.09090075641870499, 0.03879176452755928, 0.019684690982103348, 0.05261595919728279, -0.0025524666998535395, -0.05526917055249214, 0.03768141195178032, -0.05999469757080078, -0.006582620553672314, -0....
f1035bee-4589-425c-af31-190a3d919f78
| enable_reconfiguration | Enable dynamic cluster reconfiguration via reconfig . | False ...
{"source_file": "index.md"}
[ 0.0023206134792417288, -0.009074118919670582, -0.13705375790596008, 0.09035608172416687, -0.0368494912981987, -0.041361596435308456, -0.02088981121778488, 0.0513080433011055, -0.008739849552512169, 0.012403967790305614, 0.04773642495274544, -0.048515286296606064, 0.001728318864479661, -0.0...
0586f46d-56fd-4f67-96f4-15e34c66e925
| hostname_checks_enabled | Enable sanity hostname checks for cluster configuration (e.g. if localhost is used with remote endpoints) | True ...
{"source_file": "index.md"}
[ 0.053190041333436966, -0.043071918189525604, -0.096128448843956, -0.020728228613734245, 0.0648389607667923, -0.01564498245716095, -0.0693085640668869, -0.030750149860978127, -0.07657217234373093, 0.02924102358520031, 0.04072543978691101, -0.048537734895944595, 0.014949738048017025, -0.0307...
af521337-532c-43d2-85ca-65b77150d4d2
Other common parameters are inherited from the ClickHouse server config ( listen_host , logger , and so on). Internal coordination settings {#internal-coordination-settings} Internal coordination settings are located in the <keeper_server>.<coordination_settings> section and have the following parameters:
{"source_file": "index.md"}
[ 0.018662715330719948, -0.057108134031295776, -0.12477549910545349, -0.049581706523895264, -0.03511141613125801, -0.04568781331181526, 0.027004340663552284, -0.06185847893357277, -0.0369625948369503, 0.01675778441131115, 0.07279109209775925, -0.0038101831451058388, 0.02945229597389698, -0.0...
d3bf9d4f-49b4-447a-824b-362dc8be8ce2
| Parameter | Description | Default ...
{"source_file": "index.md"}
[ 0.02717316336929798, 0.06621262431144714, -0.047387734055519104, -0.0025231654290109873, -0.09089458733797073, 0.03859204426407814, 0.019677266478538513, 0.05251079425215721, -0.002602292923256755, -0.05530773848295212, 0.037573471665382385, -0.05997846648097038, -0.006635729689151049, -0....
35ab2660-42ca-4eb5-96f0-98e6b31c07a0
. Ideally they shouldn't be equal. | 1000 | | election_timeout_upper_bound_ms | If the follower does not receive a heartbeat from the leader in this interval, then it must initiate leader election. ...
{"source_file": "index.md"}
[ 0.017903758212924004, -0.014348722994327545, -0.06053220108151436, 0.014707259833812714, 0.008577399887144566, -0.06524113565683365, -0.05587252974510193, 0.025171615183353424, -0.016773149371147156, 0.06247435510158539, 0.04435829073190689, -0.015749480575323105, 0.07513586431741714, -0.0...
30334682-b051-42a4-b4ee-b0bf8a5930f7
100 | | force_sync | Call fsync on each write to coordination log. ...
{"source_file": "index.md"}
[ -0.0018096375279128551, -0.03885184973478317, -0.09859637171030045, 0.04220475256443024, -0.07004331052303314, -0.03758282959461212, -0.12603729963302612, 0.008208870887756348, -0.018123982474207878, 0.08420123159885406, 0.027401139959692955, 0.06469330936670303, 0.047305405139923096, -0.0...
da79a421-c9ae-4482-ad22-9e61600edeb7
1GiB | | commit_logs_cache_size_threshold | Maximum total size of in-memory cache of log entries needed next for commit ...
{"source_file": "index.md"}
[ 0.03210820257663727, -0.05417294055223465, -0.027971943840384483, 0.04449402168393135, 0.005643643904477358, -0.05329791083931923, -0.011004874482750893, 0.06318841874599457, -0.015132353641092777, 0.101030632853508, 0.03204077109694481, -0.004208984784781933, 0.05166254937648773, -0.08724...
0631b25b-cde0-46e1-ad50-83c6711c52c3
Quorum configuration is located in the <keeper_server>.<raft_configuration> section and contain servers description. The only parameter for the whole quorum is secure , which enables encrypted connection for communication between quorum participants. The parameter can be set true if SSL connection is required fo...
{"source_file": "index.md"}
[ -0.023834779858589172, -0.017584746703505516, -0.07121702283620834, -0.012236068025231361, -0.10184618085622787, -0.032371196895837784, -0.03188347443938255, -0.05556777864694595, -0.015279467217624187, 0.02476729452610016, 0.031905386596918106, -0.010372613556683064, 0.07400421053171158, ...
7cd1fb53-d6e3-45d9-9568-dce141959ad1
bash clickhouse-keeper --config /etc/your_path_to_config/config.xml If you don't have the symlink ( clickhouse-keeper ) you can create it or specify keeper as an argument to clickhouse : bash clickhouse keeper --config /etc/your_path_to_config/config.xml Four letter word commands {#four-letter-word-commands} ...
{"source_file": "index.md"}
[ 0.03001239337027073, -0.04456938058137894, -0.09058164805173874, -0.02729310654103756, -0.014593029394745827, -0.04135803505778313, 0.047779373824596405, -0.0049676354974508286, -0.029920313507318497, 0.03218415752053261, 0.028064364567399025, -0.043348100036382675, 0.04761512950062752, 0....
f1396a49-2bcf-409d-9bc2-160dc5ddce5d
srst : Reset server statistics. The command will affect the result of srvr , mntr and stat . response Server stats reset. conf : Print details about serving configuration. response server_id=1 tcp_port=2181 four_letter_word_white_list=* log_storage_path=./coordination/logs snapshot_storage_path=./coordi...
{"source_file": "index.md"}
[ -0.015300778672099113, -0.004889458883553743, -0.0936804935336113, 0.05022574961185455, 0.0098881172016263, -0.05894302576780319, -0.04398948326706886, 0.07256574928760529, -0.004998732823878527, 0.05845194309949875, 0.025901883840560913, 0.06338880956172943, 0.036294255405664444, -0.03686...
91d9dab2-ca1f-46c7-a164-0231f3efb016
response 0x0000000000000001 /clickhouse/task_queue/ddl wchp : Lists detailed information on watches for the server, by path. This outputs a list of paths (znodes) with associated sessions. Note, depending on the number of watches this operation may be expensive (i.e., impact server performance), use it carefull...
{"source_file": "index.md"}
[ -0.03536424785852432, 0.008521844632923603, -0.05868826434016228, 0.035288628190755844, 0.05182778462767601, -0.09093309193849564, 0.016251863911747932, -0.03465067595243454, 0.05315997451543808, 0.06271572411060333, -0.05519172549247742, -0.025120342150330544, -0.015477913431823254, -0.02...
dc75f46b-608f-4f9f-9779-b12ca349ea26
response Sent yield leadership request to leader. pfev : Returns the values for all collected events. For each event it returns event name, event value, and event's description. response FileOpen 62 Number of files opened. Seek 4 Number of times the 'lseek' function was called. ReadBufferFr...
{"source_file": "index.md"}
[ -0.04623842611908913, 0.014254868030548096, -0.05086003988981247, 0.04859064519405365, 0.022779161110520363, -0.041407261043787, -0.05582709237933159, 0.09195445477962494, 0.050819236785173416, 0.062048014253377914, -0.06916220486164093, 0.04681376740336418, -0.025130925700068474, -0.06930...
cc23ed42-cb3d-47b4-8827-347fbb196dd6
Feature flags {#feature-flags} Keeper is fully compatible with ZooKeeper and its clients, but it also introduces some unique features and request types that can be used by ClickHouse client. Because those features can introduce backward incompatible change, most of them are disabled by default and can be enabled usin...
{"source_file": "index.md"}
[ 0.048392314463853836, -0.029997345060110092, -0.029882201924920082, 0.022376056760549545, 0.07518574595451355, -0.03511068597435951, 0.0009022298618219793, -0.07411220669746399, -0.048793379217386246, 0.004937094170600176, 0.012806514278054237, -0.06740295886993408, -0.008619909174740314, ...
3437e764-e90a-414e-a24a-74813a5565f3
Stop all ZooKeeper nodes. Optional, but recommended: find ZooKeeper leader node, start and stop it again. It will force ZooKeeper to create a consistent snapshot. Run clickhouse-keeper-converter on a leader, for example: bash clickhouse-keeper-converter --zookeeper-logs-dir /var/lib/zookeeper/versio...
{"source_file": "index.md"}
[ 0.0000011787318499045796, -0.008154612965881824, -0.01368881668895483, 0.0014942871639505029, 0.10345587134361267, -0.05204416438937187, -0.023770781233906746, -0.04179239645600319, -0.0027086155023425817, 0.06532604247331619, -0.0218820720911026, -0.05279717594385147, 0.041825126856565475, ...
ed3b38ff-2ef3-4055-9b2c-696d2e068cfe
Important things to note before continuing: - Make sure that the failed nodes cannot connect to the cluster again. - Do not start any of the new nodes until it's specified in the steps. After making sure that the above things are true, you need to do following: 1. Pick a single Keeper node to be your new leader. Be a...
{"source_file": "index.md"}
[ 0.0003996500454377383, -0.034740347415208817, -0.006795936729758978, 0.044129323214292526, 0.03467661142349243, -0.007487059570848942, -0.029959384351968765, 0.025413667783141136, -0.06493289768695831, 0.060788948088884354, 0.039492975920438766, -0.055435970425605774, 0.11902158707380295, ...
bac6d3d2-59c8-4f2a-b0c1-8a8dbde9673b
Supported types of disks are: - s3_plain - s3 - local Following is an example of disk definitions contained inside a config. xml <clickhouse> <storage_configuration> <disks> <log_local> <type>local</type> <path>/var/lib/clickhouse/coordination/logs/</path> ...
{"source_file": "index.md"}
[ -0.006709245499223471, -0.06786800920963287, -0.10125748813152313, -0.077529177069664, 0.07862396538257599, -0.0071176327764987946, -0.04582966864109039, -0.019927706569433212, 0.010333714075386524, 0.01128486730158329, 0.06972622126340866, 0.02930191159248352, 0.03197995573282242, -0.0393...
07843b27-4de5-4020-8846-f0b0b1ab5bae
A possible storage setup for a Keeper instance could look like following: ```xml log_s3_plain log_local <snapshot_storage_disk>snapshot_s3_plain</snapshot_storage_disk> <latest_snapshot_storage_disk>snapshot_local</latest_snapshot_storage_disk> </keeper_server> ``` This instance will store all ...
{"source_file": "index.md"}
[ -0.022607019171118736, -0.007394731510430574, -0.04496586322784424, -0.02572118118405342, 0.0782518982887268, -0.0672401562333107, -0.02775576151907444, -0.027662716805934906, 0.07179951667785645, 0.06914126127958298, 0.06325661391019821, 0.028328923508524895, 0.08518754690885544, -0.00593...
dff7d1a1-99cd-4a86-a979-4eff337c2204
Settings: endpoint – HTTP endpoint for scraping metrics by the Prometheus server. Start from '/'. port – Port for endpoint . metrics – Flag that sets to expose metrics from the system.metrics table. events – Flag that sets to expose metrics from the system.events table. asynchronous_metrics – Flag...
{"source_file": "index.md"}
[ -0.04503529518842697, 0.0164627842605114, -0.0716710090637207, 0.009631406515836716, -0.009258802980184555, -0.13551978766918182, -0.04154539108276367, -0.01871122233569622, 0.011346522718667984, -0.022554831579327583, 0.016544217243790627, -0.1015581339597702, -0.029484979808330536, -0.00...
e3e61d62-6b03-4a88-adf8-bed73d7b6287
``` These are the basic settings used above: |Parameter |Description |Example | |----------|------------------------------|---------------------| |tcp_port |port to be used by clients of keeper|9181 default equivalent of 2181 as in zookeeper| |server_id| identifier for each ClickHou...
{"source_file": "index.md"}
[ 0.011450255289673805, -0.019803117960691452, -0.11050821840763092, -0.013007531873881817, -0.006431553512811661, -0.05641113966703415, -0.0018420207779854536, -0.021910646930336952, -0.04223102703690529, 0.044497374445199966, 0.02117639034986496, -0.023932501673698425, 0.034961070865392685, ...
40881f7e-5bec-43e9-929f-f48d6c505c20
The table looks like: response β”Œβ”€name───────┬─value─┬─czxid─┬─mzxid─┬───────────────ctime─┬───────────────mtime─┬─version─┬─cversion─┬─aversion─┬─ephemeralOwner─┬─dataLength─┬─numChildren─┬─pzxid─┬─path────────┐ β”‚ clickhouse β”‚ β”‚ 124 β”‚ 124 β”‚ 2022-03-07 00:49:34 β”‚ 2022-03-07 00:49:34 β”‚ 0 β”‚ 2 β”‚ ...
{"source_file": "index.md"}
[ -0.014955244027078152, -0.04208356887102127, -0.04630333185195923, 0.010151175782084465, -0.035669635981321335, -0.03754901885986328, 0.03034546785056591, -0.0767143964767456, -0.017618954181671143, 0.08741053938865662, 0.021542245522141457, -0.10238365828990936, 0.05033578351140022, -0.01...
2984ee27-1748-4e3e-88eb-baebca8042b7
Restart ClickHouse and verify the cluster was created: bash SHOW clusters; You should see your cluster: response β”Œβ”€cluster───────┐ β”‚ cluster_2S_1R β”‚ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ 3. Create and test distributed table {#3-create-and-test-distributed-table} Create a new database on the new cluster using ClickH...
{"source_file": "index.md"}
[ 0.05141822621226311, -0.127030611038208, -0.07424689829349518, 0.03208862990140915, -0.03629738837480545, -0.06711957603693008, -0.010866329073905945, -0.025018073618412018, -0.06796108186244965, 0.020526140928268433, 0.0703950971364975, -0.07196632772684097, 0.11726139485836029, -0.103910...
a2a1c08d-0f7d-4d24-96da-cc4b15504812
Configuring ClickHouse Keeper with unique paths {#configuring-clickhouse-keeper-with-unique-paths} Description {#description} This article describes how to use the built-in {uuid} macro setting to create unique entries in ClickHouse Keeper or ZooKeeper. Unique paths help when creating and dropping tables freque...
{"source_file": "index.md"}
[ 0.017741959542036057, -0.050363920629024506, -0.025568371638655663, 0.013835727237164974, 0.029695071280002594, -0.07761798799037933, 0.04252869263291359, -0.10376341640949249, -0.014902221038937569, 0.024809498339891434, 0.0028201297391206026, -0.060823529958724976, 0.1017375960946083, -0...
3e771bef-16c0-46d2-a1f9-aa11a4ea91bd
Create a table on the cluster using the macros and {uuid} sql CREATE TABLE db_uuid.uuid_table1 ON CLUSTER 'cluster_1S_2R' ( id UInt64, column1 String ) ENGINE = ReplicatedMergeTree('/clickhouse/tables/{shard}/db_uuid/{uuid}', '{replica}' ) ORDER BY (id); ``response CREATE TABLE db_uuid.uuid...
{"source_file": "index.md"}
[ 0.024920010939240456, -0.019914813339710236, -0.044666945934295654, 0.04869076609611511, -0.018362965434789658, -0.049337610602378845, -0.038082681596279144, -0.05020846426486969, -0.04832380264997482, 0.05265815928578377, 0.043450579047203064, -0.06639990955591202, 0.11522882431745529, -0...
b2da03c1-0dcf-489b-8bc2-1ca682e639bd
Set default for tables on each node xml <default_replica_path>/clickhouse/tables/{shard}/db_uuid/{uuid}</default_replica_path> <default_replica_name>{replica}</default_replica_name> :::tip You can also define a macro {database} on each node if nodes are used for certain databases. ::: Create table without exp...
{"source_file": "index.md"}
[ 0.05372006818652153, -0.059051837772130966, -0.05278067663311958, 0.03712482377886772, -0.029357630759477615, -0.047603946179151535, -0.047745443880558014, -0.033578112721443176, -0.056688565760850906, 0.04880340397357941, 0.05744459107518196, -0.06911411881446838, 0.14078882336616516, -0....
de98abc6-c9fe-48fc-9f97-37b1d80eb3fa
section manually. Make sure you the edit files on all replicas as only the leader will apply changes. Alternatively, you can send a reconfig query through any ZooKeeper-compatible client. ::: A virtual node /keeper/config contains last committed cluster configuration in the following format: text server.id = se...
{"source_file": "index.md"}
[ 0.04026099294424057, -0.022360850125551224, -0.014474703930318356, 0.004493021406233311, -0.014479324221611023, 0.00010051994468085468, -0.03737431392073631, -0.04328763112425804, -0.05257200822234154, 0.12383688241243362, -0.02551317773759365, -0.040344756096601486, 0.08267788589000702, -...
e7187946-9cb4-4fda-843d-aa8af6ac93b0
You cannot use the returned znodestat value. The from_version field is not used. All requests with set from_version are declined. This is due to the fact /keeper/config is a virtual node, which means it is not stored in persistent storage, but rather generated on-the-fly with the specified node config for...
{"source_file": "index.md"}
[ -0.010607986710965633, -0.014293944463133812, -0.04909704625606537, 0.055867694318294525, 0.08328285068273544, -0.08896644413471222, -0.025802360847592354, -0.011980943381786346, -0.04944416880607605, 0.06337990611791611, 0.022939521819353104, -0.0597018226981163, 0.055073387920856476, -0....
7b2970e0-1f40-4fe0-afe8-065ca69d8744
sidebar_label: 'SSL user certificate authentication' sidebar_position: 3 slug: /guides/sre/ssl-user-auth title: 'Configuring SSL User Certificate for Authentication' description: 'This guide provides simple and minimal settings to configure authentication with SSL user certificates.' doc_type: 'guide' keywords: ['ssl',...
{"source_file": "ssl-user-auth.md"}
[ -0.04127507656812668, 0.03944989666342735, -0.07071986049413681, 0.029300455003976822, -0.011859945952892303, -0.03331698477268219, 0.020908433943986893, 0.0005644130287691951, -0.04152331128716469, -0.06844231486320496, 0.025620918720960617, -0.04363930970430374, 0.0915413349866867, 0.014...
377dce8c-889e-4b7c-9c3c-ae88b63c9213
:::note For details on how to enable SQL users and set roles, refer to Defining SQL Users and Roles user guide. ::: Create a SQL user defined to use the certificate authentication: sql CREATE USER cert_user IDENTIFIED WITH ssl_certificate CN 'chnode1.marsnet.local:cert_user'; Grant privileges to ...
{"source_file": "ssl-user-auth.md"}
[ 0.013667454943060875, -0.053364019840955734, -0.1707341969013214, 0.03131672367453575, -0.09755631536245346, -0.00311585096642375, 0.060913506895303726, 0.014355371706187725, -0.11476359516382217, -0.01975582353770733, 0.005600631702691317, -0.04887009412050247, 0.1375018209218979, 0.04665...
f32522e5-eb32-4ffd-addd-5df3dd9dc139
:::note Notice that no password was specified, the certificate is used in lieu of a password and is how ClickHouse will authenticate the user. ::: Summary {#summary} This article showed the basics of creating and configuring a user for SSL certificate authentication. This method can be used with clickh...
{"source_file": "ssl-user-auth.md"}
[ -0.06409861892461777, 0.04745084419846535, -0.11013221740722656, -0.024485047906637192, -0.10198706388473511, -0.028515156358480453, 0.026008639484643936, -0.033028364181518555, 0.0010772465029731393, -0.07224015146493912, 0.028052043169736862, -0.025556134060025215, 0.07665009051561356, 0...
948bd421-5da5-4fa2-9601-1c58ad5406ee
slug: /operations/access-rights sidebar_position: 1 sidebar_label: 'Users and roles' title: 'Access Control and Account Management' keywords: ['ClickHouse Cloud', 'Access Control', 'User Management', 'RBAC', 'Security'] description: 'Describes access control and account management in ClickHouse Cloud' doc_type: 'guide'...
{"source_file": "index.md"}
[ 0.013002901338040829, -0.07934901863336563, -0.09487150609493256, 0.030197037383913994, -0.09625352919101715, 0.04362761229276657, 0.104023277759552, -0.07081294804811478, -0.05078369379043579, 0.05047561973333359, 0.015655800700187683, -0.01615663431584835, 0.09700534492731094, -0.0337191...
bc5034af-fe1f-4a23-9f70-a5177ec92f8f
User account {#user-account-management} A user account is an access entity that allows to authorize someone in ClickHouse. A user account contains: Identification information. Privileges that define the scope of queries the user can execute. Hosts are allowed to connect to the ClickHouse server. Assigned a...
{"source_file": "index.md"}
[ -0.014355819672346115, 0.015355868265032768, -0.028805838897824287, 0.06481882184743881, -0.09840067476034164, 0.027759019285440445, 0.12287882715463638, -0.036949411034584045, -0.06490227580070496, -0.022073714062571526, 0.0248640738427639, -0.019852308556437492, 0.10245303064584732, 0.00...
60633b9f-8be4-4f47-ba79-3db75ade5dab
Management queries: CREATE SETTINGS PROFILE ALTER SETTINGS PROFILE DROP SETTINGS PROFILE SHOW CREATE SETTINGS PROFILE SHOW PROFILES Quota {#quotas-management} Quota limits resource usage. See Quotas . Quota contains a set of limits for some durations, as well as a list of roles and/or users which s...
{"source_file": "index.md"}
[ 0.03964398801326752, -0.03413449972867966, -0.08896404504776001, 0.07276182621717453, -0.08946678787469864, 0.05545007437467575, 0.0982237234711647, -0.008103299885988235, -0.02467694878578186, 0.06618257611989975, -0.011567749083042145, -0.060253869742155075, 0.09697358310222626, -0.00697...
63900727-b7cb-47d5-b5e2-4d51ced9dca5
This article is intended to provide you with a better understanding of how to define permissions, and how permissions work when using ALTER statements for privileged users. The ALTER statements are divided into several categories, some of which are hierarchical and some of which are not and must be explicitly def...
{"source_file": "index.md"}
[ 0.007655371446162462, 0.005985187832266092, -0.040864549577236176, 0.0002783700474537909, -0.09238409996032715, -0.015301593579351902, 0.031247595325112343, 0.044520530849695206, -0.028411608189344406, 0.027898374944925308, 0.019747119396924973, -0.02962399646639824, 0.06324959546327591, -...
a12b950d-7ef2-4a6d-b263-300f6ed5cd3c
This will grant all permissions under ALTER TABLE and ALTER VIEW from the example above, however, it will not grant certain other ALTER permissions such as ALTER ROW POLICY (Refer back to the hierarchy and you will see that ALTER ROW POLICY is not a child of ALTER TABLE or ALTER VIEW ). Those must be expli...
{"source_file": "index.md"}
[ -0.060554806143045425, -0.02158491313457489, 0.017302371561527252, -0.016332274302840233, -0.0473417192697525, 0.023172300308942795, 0.04584449902176857, -0.036180246621370316, -0.05202044919133186, 0.007474815007299185, -0.007241232320666313, -0.0684940442442894, 0.051419030874967575, -0....
dd92a48b-cc2a-4331-a861-763864d55d54
sql GRANT SELECT, ALTER COLUMN ON my_db.my_table TO my_alter_admin WITH GRANT OPTION; Now the user can grant or revoke ALTER COLUMN and all sub-privileges. Testing Add the SELECT privilege sql GRANT SELECT ON my_db.my_table TO my_user; Add the add column privilege to the user sql GRANT ADD COLUMN...
{"source_file": "index.md"}
[ 0.027474088594317436, -0.018824387341737747, -0.05167321860790253, 0.0052390871569514275, -0.11639780551195145, -0.02765413001179695, 0.043792035430669785, 0.024577448144555092, -0.04202771931886673, 0.05728665366768837, 0.00837213359773159, -0.046169742941856384, 0.05786953493952751, -0.0...
5e1a34e1-6707-4211-b46b-1435958344b3
```response GRANT ALTER UPDATE ON my_db.my_table TO my_user Query id: 191690dc-55a6-4625-8fee-abc3d14a5545 0 rows in set. Elapsed: 0.004 sec. Received exception from server (version 22.5.1): Code: 497. DB::Exception: Received from chnode1.marsnet.local:9440. DB::Exception: my_alter_admin: Not enough privileges. T...
{"source_file": "index.md"}
[ -0.02785639837384224, 0.013022871688008308, 0.024866780266165733, 0.050147973001003265, -0.07516495883464813, -0.009864351712167263, 0.029547708109021187, -0.010981331579387188, -0.013188255950808525, 0.07333558797836304, 0.009408815763890743, -0.031162984669208527, 0.06593650579452515, -0...
3c1f0e18-2b55-4b4c-8ca8-360617ee4e1a
sidebar_label: 'Configuring LDAP' sidebar_position: 2 slug: /guides/sre/configuring-ldap title: 'Configuring ClickHouse to Use LDAP for Authentication and Role Mapping' description: 'Describes how to configure ClickHouse to use LDAP for authentication and role mapping' keywords: ['LDAP configuration', 'LDAP authenticat...
{"source_file": "configuring-ldap.md"}
[ 0.008897651918232441, -0.047917820513248444, -0.07091935724020004, 0.017450764775276184, -0.02091914974153042, -0.023216959089040756, 0.04485448822379112, 0.034518051892519, -0.1518697291612625, -0.04395120218396187, 0.08440535515546799, -0.028958875685930252, 0.10028468817472458, -0.02234...
88285390-1acf-4a34-81d8-72e7f6bed2e3
:::note View the LDAP doc page for more details on the LDAP settings. ::: Add the <ldap> section to <user_directories> section to configure the user role mapping. This section defines when a user is authenticated and what role the user will receive. In this basic example, any user authenticating to LDAP wil...
{"source_file": "configuring-ldap.md"}
[ 0.019729360938072205, -0.011240349151194096, -0.04153687134385109, 0.008884533308446407, -0.04772574454545975, -0.026794027537107468, 0.05782660096883774, -0.010058490559458733, -0.11909878998994827, -0.06158910319209099, 0.05615702643990517, -0.07903942465782166, 0.05340060964226723, 0.00...
41e16cbb-4823-45d4-acf6-f539e3081bba
chnode1 :) ``` :::note Use the ldapsearch command in step 1 to view all of the users available in the directory and for all of the users the password is password ::: Test that the user was mapped correctly to the scientists_role role and has admin permissions sql SHOW DATABASES ```response Quer...
{"source_file": "configuring-ldap.md"}
[ 0.04905525967478752, -0.10350673645734787, -0.08326658606529236, 0.018172014504671097, -0.054713405668735504, -0.011251245625317097, 0.06090954318642616, 0.012872124090790749, -0.11087261140346527, -0.0017082010162994266, 0.03433908894658089, -0.04681191220879555, 0.08383625000715256, -0.0...
b659bb0d-2a73-4d6c-a7b8-559c6cb6a228
description: 'Page describing the Shared database engine, available in ClickHouse Cloud' sidebar_label: 'Shared' sidebar_position: 10 slug: /engines/database-engines/shared title: 'Shared' doc_type: 'reference' import CloudOnlyBadge from '@theme/badges/CloudOnlyBadge'; Shared database engine The Shared da...
{"source_file": "shared.md"}
[ -0.04210463911294937, -0.015442061237990856, -0.030889157205820084, 0.053895652294158936, 0.006420257035642862, 0.015091156587004662, -0.031355246901512146, -0.09456833451986313, -0.01694105565547943, -0.004122569225728512, -0.0034807382617145777, 0.046520113945007324, 0.041413478553295135, ...
f2217c63-cee2-431b-86e6-d4b41372c899
description: 'The engine is based on the Atomic engine. It supports replication of metadata via DDL log being written to ZooKeeper and executed on all of the replicas for a given database.' sidebar_label: 'Replicated' sidebar_position: 30 slug: /engines/database-engines/replicated title: 'Replicated' doc_type: 'ref...
{"source_file": "replicated.md"}
[ -0.023262672126293182, -0.13358476758003235, -0.04813087359070778, -0.007719762623310089, -0.04858246073126793, -0.09142826497554779, -0.025931917130947113, -0.09634450823068619, 0.0022755321115255356, -0.006979633588343859, -0.0028237442020326853, -0.04900006204843521, 0.13357016444206238, ...
98dfc319-8985-444d-a34d-e591505cb545
The behavior in case of errors is regulated by the distributed_ddl_output_mode setting, for a Replicated database it is better to set it to null_status_on_timeout β€” i.e. if some hosts did not have time to execute the request for distributed_ddl_task_timeout , then do not throw an exception, but show the NULL s...
{"source_file": "replicated.md"}
[ 0.005362072493880987, -0.053838230669498444, 0.033990997821092606, 0.06374900043010712, 0.0483718067407608, -0.11968941986560822, -0.05652952939271927, -0.02759266085922718, 0.06159916892647743, 0.03844349458813667, -0.008425090461969376, -0.03156883269548416, 0.08920972049236298, -0.00922...
024f8e28-e711-4a2d-badc-d6924b677ced
Showing the system table: sql SELECT cluster, shard_num, replica_num, host_name, host_address, port, is_local FROM system.clusters WHERE cluster='r'; text β”Œβ”€cluster─┬─shard_num─┬─replica_num─┬─host_name─┬─host_address─┬─port─┬─is_local─┐ β”‚ r β”‚ 1 β”‚ 1 β”‚ node3 β”‚ 127.0.0.1 β”‚ 9002 β”‚ 0 ...
{"source_file": "replicated.md"}
[ 0.04537137970328331, 0.004123948980122805, -0.03409184515476227, 0.05581512674689293, 0.019570181146264076, -0.0677751824259758, -0.01325285155326128, -0.06647282093763351, -0.05753336846828461, 0.03728323057293892, 0.026100054383277893, -0.07159259170293808, 0.08557095378637314, -0.092570...
66e6801c-0e26-4808-b768-6b4ce221fafc
| Setting | Default | Description | |-------------------------------------...
{"source_file": "replicated.md"}
[ 0.027377596125006676, 0.02894790656864643, -0.006911426782608032, -0.002339729806408286, -0.05832530930638313, 0.07408155500888824, 0.011692257598042488, 0.04591621086001396, 0.04093393683433533, -0.05727342143654823, 0.017689010128378868, -0.03912276029586792, -0.03153540566563606, -0.041...
fd497b8b-7e53-402b-a273-2385ba372f20
| default_replica_path | /clickhouse/databases/{uuid} | The path to the database in ZooKeeper. Used during database creation if arguments are omitted. | | default_replica_shard_name ...
{"source_file": "replicated.md"}
[ 0.0016264664009213448, -0.02377801015973091, -0.08483948558568954, 0.002516314620152116, 0.015627505257725716, -0.047589585185050964, 0.014202073216438293, -0.042843934148550034, -0.011481499299407005, 0.005616045091301203, 0.022933267056941986, -0.03156536445021629, 0.05399826914072037, 0...
5c886dc1-186f-42e2-b045-d0f508d2226f
Default values may be overwritten in the configuration file xml <clickhouse> <database_replicated> <max_broken_tables_ratio>0.75</max_broken_tables_ratio> <max_replication_lag_to_enqueue>100</max_replication_lag_to_enqueue> <wait_entry_commited_timeout_sec>1800</wait_entry_commited_timeout_...
{"source_file": "replicated.md"}
[ 0.042053669691085815, -0.09872181713581085, -0.058748092502355576, 0.0016382770845666528, -0.04553963989019394, -0.05870808660984039, -0.09555838257074356, -0.034865524619817734, -0.01563066802918911, 0.01911778561770916, 0.06417607516050339, -0.014438767917454243, -0.011577156372368336, -...
6b2d5f4b-3dc3-46bf-ac5a-32ad2fb6322a
description: 'Allows connecting to databases on a remote MySQL server and perform INSERT and SELECT queries to exchange data between ClickHouse and MySQL.' sidebar_label: 'MySQL' sidebar_position: 50 slug: /engines/database-engines/mysql title: 'MySQL' doc_type: 'reference' import CloudNotSupportedBadge from ...
{"source_file": "mysql.md"}
[ 0.024227766320109367, -0.07245464622974396, -0.04651380330324173, 0.054550640285015106, -0.10403606295585632, -0.015753088518977165, 0.02398814633488655, 0.00003224005195079371, -0.0186271034181118, 0.024680644273757935, 0.044681400060653687, -0.032166238874197006, 0.18151699006557465, -0....
67f4e416-62ae-4063-b5fc-1551550e3007
mysql> insert into mysql_table ( int_id , float ) VALUES (1,2); Query OK, 1 row affected (0,00 sec) mysql> select * from mysql_table; +------+-----+ | int_id | value | +------+-----+ | 1 | 2 | +------+-----+ 1 row in set (0,00 sec) ``` Database in ClickHouse, exchanging data with the MySQL server: sql C...
{"source_file": "mysql.md"}
[ 0.08167193084955215, -0.07239693403244019, -0.02436610870063305, 0.030504802241921425, -0.1135328859090805, -0.059229835867881775, 0.040912847965955734, 0.028507765382528305, -0.01760348491370678, 0.035573773086071014, 0.10026424378156662, -0.07324258983135223, 0.16397064924240112, -0.0823...
0643c5c0-94cd-4a13-b9e5-a7bcdf4f78b0
description: 'Creates a ClickHouse database with tables from PostgreSQL database.' sidebar_label: 'MaterializedPostgreSQL' sidebar_position: 60 slug: /engines/database-engines/materialized-postgresql title: 'MaterializedPostgreSQL' doc_type: 'reference' import ExperimentalBadge from '@theme/badges/ExperimentalBadge...
{"source_file": "materialized-postgresql.md"}
[ -0.03780871629714966, -0.08838741481304169, -0.02966592088341713, 0.003879041876643896, -0.03319094330072403, -0.027090832591056824, -0.026778819039463997, -0.07614835351705551, -0.02148463949561119, 0.048102907836437225, -0.018088145181536674, 0.01644103415310383, 0.03588777780532837, -0....
27259a51-da8c-4ae1-a17f-59944fb72cab
sql ATTACH TABLE postgres_database.new_table; :::warning Before version 22.1, adding a table to replication left a non-removed temporary replication slot (named {db_name}_ch_replication_slot_tmp ). If attaching tables in ClickHouse version before 22.1, make sure to delete it manually ( SELECT pg_drop_replication_slo...
{"source_file": "materialized-postgresql.md"}
[ 0.05008324608206749, -0.05188287794589996, 0.008588351309299469, 0.01340104267001152, -0.03899663686752319, -0.06840982288122177, 0.017978468909859657, -0.08367394655942917, 0.0005081165581941605, 0.09115859866142273, 0.06796299666166306, 0.04630144685506821, 0.05818638950586319, -0.001241...
98a1dc37-d2b6-4a37-b872-1cf79903cadc
Each replicated table must have one of the following replica identity : primary key (by default) index bash postgres# CREATE TABLE postgres_table (a Integer NOT NULL, b Integer, c Integer NOT NULL, d Integer, e Integer NOT NULL); postgres# CREATE unique INDEX postgres_table_index on postgres_table(a,...
{"source_file": "materialized-postgresql.md"}
[ -0.0013581918319687247, -0.04121336340904236, -0.032662853598594666, 0.009531169198453426, -0.06080459803342819, 0.0014741302002221346, 0.06689488887786865, -0.08433344960212708, 0.05084706470370293, -0.0010655713267624378, 0.005545048508793116, 0.0075286817736923695, -0.0061019472777843475,...
4304bdfb-f7dd-4aa3-b9d3-d96c4ff01eb5
SELECT * FROM database1.table1; ``` The settings can be changed, if necessary, using a DDL query. But it is impossible to change the setting `materialized_postgresql_tables_list`. To update the list of tables in this setting use the `ATTACH TABLE` query. ```sql ALTER DATABASE postgres_database MODIFY SETTING material...
{"source_file": "materialized-postgresql.md"}
[ -0.004913369193673134, -0.09237676858901978, -0.03959774598479271, 0.011549334041774273, -0.07740303128957748, -0.01827327534556389, -0.03532187640666962, -0.016525376588106155, -0.0550394207239151, 0.02868468314409256, 0.021115479990839958, 0.032312337309122086, 0.019227048382163048, -0.0...
7b7dc95e-7935-49dc-9ab1-0f43ac60e24e
Required permissions {#required-permissions} CREATE PUBLICATION -- create query privilege. CREATE_REPLICATION_SLOT -- replication privilege. pg_drop_replication_slot -- replication privilege or superuser. DROP PUBLICATION -- owner of publication ( username in MaterializedPostgreSQL engine i...
{"source_file": "materialized-postgresql.md"}
[ 0.0401424802839756, -0.03122572973370552, -0.09816116094589233, 0.006490154657512903, -0.11627977341413498, -0.03764393925666809, -0.06277360767126083, -0.05925514176487923, -0.035663582384586334, 0.0728677436709404, -0.006611701566725969, -0.03063875064253807, 0.04746360331773758, -0.0303...
f371aa05-d7b7-4298-af85-47a244eb4624
description: 'The Atomic engine supports non-blocking DROP TABLE and RENAME TABLE queries, and atomic EXCHANGE TABLES queries. The Atomic database engine is used by default.' sidebar_label: 'Atomic' sidebar_position: 10 slug: /engines/database-engines/atomic title: 'Atomic' doc_type: 'reference' Atomic...
{"source_file": "atomic.md"}
[ -0.041126981377601624, -0.06352085620164871, -0.04182762652635574, 0.05937795341014862, -0.02357902005314827, -0.039227161556482315, 0.0675991028547287, -0.018558038398623466, -0.02363904006779194, 0.018112273886799812, 0.07817300409078598, -0.022952059283852577, 0.07047241926193237, -0.06...
c5ca21ca-02bc-45e1-824e-147b94a7b96c
you can use an atomic one: sql title="Atomic" EXCHANGE TABLES new_table AND old_table; ReplicatedMergeTree in atomic database {#replicatedmergetree-in-atomic-database} For ReplicatedMergeTree tables, it is recommended not to specify the engine parameters for the path in ZooKeeper and the replica name. In this c...
{"source_file": "atomic.md"}
[ -0.014966213144361973, -0.040190406143665314, -0.04181328043341637, 0.012188898399472237, -0.0324750579893589, -0.10044527053833008, 0.020575057715177536, 0.02119855023920536, -0.03096410445868969, 0.06628163903951645, -0.005293603055179119, -0.07630395144224167, 0.0782044529914856, 0.0001...
c5dd0a04-5dfe-46fe-aaa6-287516bae110
description: 'Keeps tables in RAM only expiration_time_in_seconds seconds after last access. Can be used only with Log type tables.' sidebar_label: 'Lazy' sidebar_position: 20 slug: /engines/database-engines/lazy title: 'Lazy' doc_type: 'reference' Lazy Keeps tables in RAM only expiration_time_in_seconds se...
{"source_file": "lazy.md"}
[ 0.029264051467180252, 0.06638266891241074, -0.13531894981861115, 0.08976538479328156, -0.07182925939559937, -0.0036768552381545305, 0.02583124116063118, 0.06832089275121689, -0.04110237956047058, 0.032771896570920944, 0.047223854809999466, 0.0929892510175705, 0.08094432950019836, -0.002921...
d5c6a7da-50f1-400b-a95a-1421ba0a025b
description: 'Documentation for Database Engines' slug: /engines/database-engines/ toc_folder_title: 'Database Engines' toc_priority: 27 toc_title: 'Introduction' title: 'Database Engines' doc_type: 'landing-page' Database engines Database engines allow you to work with tables. By default, ClickHouse uses the At...
{"source_file": "index.md"}
[ -0.01852898858487606, -0.1441253125667572, -0.09130993485450745, 0.019537869840860367, -0.07438353449106216, -0.017240986227989197, -0.0011416448978707194, -0.028442196547985077, -0.08266890794038773, -0.007488257717341185, -0.017043255269527435, -0.013104422017931938, 0.05695727467536926, ...
b257c45f-b890-44c6-ade9-b3cef3f027db
description: 'Allows to connect to databases on a remote PostgreSQL server.' sidebar_label: 'PostgreSQL' sidebar_position: 40 slug: /engines/database-engines/postgresql title: 'PostgreSQL' doc_type: 'guide' PostgreSQL Allows to connect to databases on a remote PostgreSQL server. Supports read and write operatio...
{"source_file": "postgresql.md"}
[ 0.016763737425208092, -0.07333499938249588, -0.10795202106237411, 0.06627729535102844, -0.13100668787956238, -0.03194274380803108, -0.005875453818589449, 0.0009390448103658855, -0.04059247300028801, 0.036058638244867325, -0.009797054342925549, 0.0800168514251709, 0.021523229777812958, -0.0...
28454a54-86c0-470a-b024-a4ec1d793d2b
Consider the table structure was modified in PostgreSQL: sql postgre> ALTER TABLE test_table ADD COLUMN data Text As the use_table_cache parameter was set to 1 when the database was created, the table structure in ClickHouse was cached and therefore not modified: sql DESCRIBE TABLE test_database.test_table; ...
{"source_file": "postgresql.md"}
[ 0.04404635727405548, -0.0441591776907444, -0.029328692704439163, 0.03435489535331726, -0.028190117329359055, -0.06378066539764404, 0.026836946606636047, -0.09709309041500092, -0.003909605089575052, 0.017076127231121063, 0.1116856187582016, 0.06693655252456665, -0.01598505489528179, -0.0535...
2f31e5a8-6960-450b-ab02-0335e4e4410e
description: 'Allows to instantly attach table/database from backups in read-only mode.' sidebar_label: 'Backup' sidebar_position: 60 slug: /engines/database-engines/backup title: 'Backup' doc_type: 'reference' Backup Database backup allows to instantly attach table/database from backups in read-only mode. ...
{"source_file": "backup.md"}
[ -0.03943031653761864, -0.060963451862335205, -0.07823812961578369, 0.05463040992617607, -0.013524442911148071, -0.0369180403649807, -0.0029430126305669546, 0.04681454598903656, -0.048245176672935486, 0.02108059637248516, 0.05471980199217796, 0.0528520829975605, 0.14239931106567383, -0.0945...
0c06d3d0-3f11-4202-867b-ff1ee0ef2c20
SELECT id, value FROM test_database_backup.test_table_3; β”Œβ”€id─┬─value──────────────────────┐ β”‚ 0 β”‚ test_database.test_table_3 β”‚ β””β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ ``` It is also possible to work with this database Backup as with any ordinary database. For example query tables in it: ```sql SELECT database, name...
{"source_file": "backup.md"}
[ -0.01821807771921158, 0.011061858385801315, -0.06536801904439926, 0.04032164067029953, -0.019577879458665848, 0.01018915232270956, 0.05551857501268387, 0.027847163379192352, -0.08745954930782318, -0.024251971393823624, 0.029927538707852364, 0.022686854004859924, 0.11847513914108276, -0.078...
8c1ab70b-1564-446e-908d-dcdf68095b03
description: 'Allows to connect to SQLite databases and perform INSERT and SELECT queries to exchange data between ClickHouse and SQLite.' sidebar_label: 'SQLite' sidebar_position: 55 slug: /engines/database-engines/sqlite title: 'SQLite' doc_type: 'reference' SQLite Allows to connect to SQLite database a...
{"source_file": "sqlite.md"}
[ -0.017251405864953995, -0.09545736014842987, -0.11135323345661163, 0.0956682562828064, -0.09428068995475769, -0.03206818550825119, 0.05771668255329132, 0.03414497524499893, -0.08610229939222336, 0.012737395241856575, 0.012984338216483593, -0.051892008632421494, 0.04121502861380577, -0.0864...
fa5904ae-fd0b-4555-9266-84d7d1901206
description: 'The DataLakeCatalog database engine enables you to connect ClickHouse to external data catalogs and query open table format data' sidebar_label: 'DataLakeCatalog' slug: /engines/database-engines/datalakecatalog title: 'DataLakeCatalog' doc_type: 'reference' DataLakeCatalog The DataLakeCatalog data...
{"source_file": "datalake.md"}
[ -0.029304437339305878, -0.10083812475204468, -0.025762878358364105, 0.02804187312722206, -0.0921056866645813, -0.028171498328447342, -0.04500579833984375, 0.0006151740089990199, -0.06075345724821091, -0.027014244347810745, 0.010478360578417778, -0.009008313529193401, 0.08304978907108307, -...
e725bad4-09d0-451e-aeab-effe6a2fcb89
sql CREATE DATABASE database_name ENGINE = DataLakeCatalog(catalog_endpoint[, user, password]) SETTINGS catalog_type, [...] The following settings are supported: | Setting | Description | |-------------------------|---------...
{"source_file": "datalake.md"}
[ 0.008703969419002533, -0.06580943614244461, -0.0950160101056099, -0.005497032310813665, -0.14157970249652863, 0.03920913487672806, 0.05276815593242645, 0.031631987541913986, -0.08195933699607849, -0.03245503455400467, 0.010884912684559822, -0.10317549109458923, 0.08555946499109268, -0.0530...
d786fad7-4343-4cdc-af1d-3c36e3f002ad
description: 'Documentation for Table Engines' slug: /engines/table-engines/ toc_folder_title: 'Table Engines' toc_priority: 26 toc_title: 'Introduction' title: 'Table Engines' doc_type: 'reference' Table engines The table engine (type of table) determines: How and where data is stored, where to write it to, ...
{"source_file": "index.md"}
[ -0.0879526287317276, -0.09353197365999222, -0.03825991973280907, 0.035764601081609726, -0.08514824509620667, -0.0833941400051117, -0.07815267145633698, -0.0260081198066473, -0.04759083315730095, 0.006122089456766844, -0.021719951182603836, 0.0031507983803749084, 0.010420612059533596, -0.09...
991d7a17-3850-4d64-87cf-66f4ad308c8f
Special engines {#special-engines} Engines in the family: | Special Engines | |---------------------------------------------------------------| | Distributed | | Dictionary | | Merge | | Executable | | File | |...
{"source_file": "index.md"}
[ 0.002416649367660284, -0.0052662440575659275, -0.1387542486190796, 0.037067703902721405, -0.021092014387249947, -0.07111941277980804, -0.029224388301372528, 0.011122547090053558, -0.022730298340320587, 0.03995051980018616, 0.08320379257202148, -0.08587205410003662, 0.010402677580714226, -0...
6aa4b289-8942-476b-b241-8862cfdc4c20
description: 'Documentation for the StripeLog table engine' slug: /engines/table-engines/log-family/stripelog toc_priority: 32 toc_title: 'StripeLog' title: 'StripeLog table engine' doc_type: 'reference' import CloudNotSupportedBadge from '@theme/badges/CloudNotSupportedBadge'; StripeLog table engine This eng...
{"source_file": "stripelog.md"}
[ -0.03630475699901581, -0.03372776880860329, -0.09607428312301636, 0.029896367341279984, -0.02840600721538067, -0.05412723869085312, 0.02222321182489395, -0.008898003026843071, -0.007096686866134405, 0.09892211109399796, -0.02849193662405014, -0.03529592975974083, 0.005787511356174946, 0.01...
9bc21b05-ec4b-4396-a7e7-1f1427da38f2
sql SELECT * FROM stripe_log_table text β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€timestamp─┬─message_type─┬─message────────────────────┐ β”‚ 2019-01-18 14:27:32 β”‚ REGULAR β”‚ The second regular message β”‚ β”‚ 2019-01-18 14:34:53 β”‚ WARNING β”‚ The first warning message β”‚ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β”Œβ”€β”€β”€β”€β”€...
{"source_file": "stripelog.md"}
[ 0.015857240185141563, 0.010535926558077335, 0.05608905851840973, 0.027100609615445137, -0.003078615292906761, 0.00027803133707493544, 0.07916858792304993, 0.01591823808848858, 0.056849949061870575, 0.06500347703695297, 0.07415701448917389, 0.030522741377353668, -0.01753285713493824, 0.0401...
eea98ecf-7e0b-463a-bd68-1d6dc00066ef
description: 'Documentation for the TinyLog table engine' slug: /engines/table-engines/log-family/tinylog toc_priority: 34 toc_title: 'TinyLog' title: 'TinyLog table engine' doc_type: 'reference' import CloudNotSupportedBadge from '@theme/badges/CloudNotSupportedBadge'; TinyLog table engine The engine belongs...
{"source_file": "tinylog.md"}
[ 0.02934819832444191, 0.0016072971047833562, -0.036235012114048004, 0.07585776597261429, 0.04208587855100632, -0.017381643876433372, 0.0065039522014558315, 0.04516295716166496, -0.009885049425065517, 0.10456111282110214, 0.002117080381140113, -0.029079074040055275, 0.03028981387615204, -0.0...
8bacc0ee-2ea1-4957-a8ca-2e119101d400
We used two INSERT queries to create two data blocks inside the <column>.bin files. ClickHouse uses a single stream selecting data. As a result, the order of blocks of rows in the output matches the order of the same blocks in the input. For example: sql SELECT * FROM tiny_log_table text β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€timestamp...
{"source_file": "tinylog.md"}
[ 0.013330896385014057, -0.028412951156497, -0.019263003021478653, 0.02538764663040638, 0.026833582669496536, -0.022072384133934975, -0.00028756182291544974, -0.03531952574849129, 0.026547422632575035, 0.04375561326742172, 0.06806556135416031, 0.043091509491205215, 0.04797732084989548, -0.08...
d758f88b-e234-435c-900b-115db139da91
description: 'Documentation for Log' slug: /engines/table-engines/log-family/log toc_priority: 33 toc_title: 'Log' title: 'Log table engine' doc_type: 'reference' import CloudNotSupportedBadge from '@theme/badges/CloudNotSupportedBadge'; Log table engine The engine belongs to the family of Log engines. See ...
{"source_file": "log.md"}
[ -0.009264801628887653, -0.022079305723309517, -0.04121316969394684, 0.04943642020225525, 0.054009951651096344, -0.06738809496164322, -0.0004801162285730243, 0.015636611729860306, 0.024140052497386932, 0.07900499552488327, 0.02167380414903164, 0.00012051147496094927, 0.027964016422629356, -...
5d3543da-44f2-454e-b79d-cb4df77610a2
We used two INSERT queries to create two data blocks inside the <column>.bin files. ClickHouse uses multiple threads when selecting data. Each thread reads a separate data block and returns resulting rows independently as it finishes. As a result, the order of blocks of rows in the output may not match the order ...
{"source_file": "log.md"}
[ -0.009679094888269901, -0.05480460822582245, 0.056175872683525085, 0.02425192855298519, 0.003229742869734764, -0.06675982475280762, -0.007189629133790731, -0.07884824275970459, 0.05675841495394707, 0.04857856035232544, 0.07151751220226288, 0.023440822958946228, 0.04354200139641762, -0.1124...
e219f2ab-e75e-42a8-b17e-fcab592915d4
description: 'Documentation for the Log engine family' sidebar_label: 'Log family' sidebar_position: 20 slug: /engines/table-engines/log-family/ title: 'Log engine family' doc_type: 'guide' import CloudNotSupportedBadge from '@theme/badges/CloudNotSupportedBadge'; Log table engine family These engines were de...
{"source_file": "index.md"}
[ -0.01693090796470642, -0.006005195900797844, -0.07017701119184494, 0.026462575420737267, 0.05904192477464676, -0.021073127165436745, -0.031124668195843697, -0.01743466593325138, -0.002187232719734311, 0.03422340005636215, 0.02101590298116207, -0.015420232899487019, 0.041646216064691544, -0...
987dec88-da0f-45ec-a280-0224b48507de
description: 'Buffers the data to write in RAM, periodically flushing it to another table. During the read operation, data is read from the buffer and the other table simultaneously.' sidebar_label: 'Buffer' sidebar_position: 120 slug: /engines/table-engines/special/buffer title: 'Buffer table engine' doc_type: 're...
{"source_file": "buffer.md"}
[ 0.043253663927316666, -0.02470880188047886, -0.07619745284318924, 0.09402518719434738, -0.09276474267244339, -0.006760335061699152, 0.02301831543445587, -0.023372719064354897, -0.029600221663713455, 0.027178339660167694, 0.019960271194577217, 0.010829064063727856, 0.058558184653520584, -0....
bf605fb7-95a4-4321-afb7-4262d4549eac
Example: sql CREATE TABLE merge.hits_buffer AS merge.hits ENGINE = Buffer(merge, hits, 1, 10, 100, 10000, 1000000, 10000000, 100000000) Creating a merge.hits_buffer table with the same structure as merge.hits and using the Buffer engine. When writing to this table, data is buffered in RAM and later written to t...
{"source_file": "buffer.md"}
[ 0.04474625736474991, -0.048017241060733795, -0.024037163704633713, 0.009945441968739033, -0.10415895283222198, -0.07874604314565659, 0.004464461002498865, 0.018023129552602768, 0.06295707076787949, 0.05105629190802574, 0.04608936607837677, 0.058605510741472244, 0.02303171530365944, -0.1241...
d9c2b1d0-5eaf-4a24-a8d6-62bd94db0d35
When adding data to a Buffer table, one of the buffers is locked. This causes delays if a read operation is simultaneously being performed from the table. Data that is inserted into a Buffer table may end up in the subordinate table in a different order and in different blocks. Because of this, a Buffer table is diff...
{"source_file": "buffer.md"}
[ 0.00815369002521038, -0.05377475172281265, 0.007692419923841953, 0.018400421366095543, -0.09253144264221191, -0.07058420777320862, -0.02791673317551613, 0.0037735726218670607, 0.033372912555933, 0.05931088700890541, 0.024089720100164413, 0.03001703880727291, 0.0066077206283807755, -0.08827...
692c3552-b114-4c91-8c43-429adee4f2aa
description: 'The Executable and ExecutablePool table engines allow you to define a table whose rows are generated from a script that you define (by writing rows to stdout ).' sidebar_label: 'Executable/ExecutablePool' sidebar_position: 40 slug: /engines/table-engines/special/executable title: 'Executable and ...
{"source_file": "executable.md"}
[ 0.017186807468533516, -0.02254047617316246, -0.1180926263332367, 0.026358725503087044, -0.03238048776984215, -0.046525221318006516, 0.03970028832554817, 0.045386940240859985, -0.03316667675971985, 0.016854623332619667, 0.000728039420209825, -0.02137892320752144, 0.04505396634340286, -0.060...
be40e362-861e-4cbb-ada2-a6ac56a9cdb9
sql CREATE TABLE my_executable_table ( x UInt32, y String ) ENGINE = Executable('my_script.py', TabSeparated, (SELECT 10)) Creating the table returns immediately and does not invoke the script. Querying my_executable_table causes the script to be invoked: sql SELECT * FROM my_executable_table response β”Œβ”€x...
{"source_file": "executable.md"}
[ -0.003473132150247693, -0.043549731373786926, -0.06489360332489014, 0.07580388337373734, -0.02337300404906273, -0.10339780896902084, 0.08227306604385376, 0.05547507107257843, -0.01787039078772068, 0.05620480328798294, 0.023754792287945747, -0.05057476460933685, 0.10262863337993622, -0.0521...
85125cb5-c474-45fe-925f-b29d333e0c17
Each value of row is going to be a row in the result set of SELECT id, comment FROM hackernews WHERE id > 0 AND comment != '' LIMIT 20 The incoming row is tab-separated, so we parse out the id and comment using the Python split function The result of polarity_scores is a JSON object with a handful of val...
{"source_file": "executable.md"}
[ -0.057493697851896286, 0.010856209322810173, -0.05293198302388191, 0.07035055756568909, 0.0006465190672315657, -0.06064066290855408, 0.0817391648888588, 0.016307953745126724, 0.00014187702618073672, 0.010173629969358444, 0.08705714344978333, 0.02020670659840107, 0.05076619237661362, -0.043...
5de2283b-75f9-40f7-bb05-7c0d0ab767f6
description: 'Queries data to/from a remote HTTP/HTTPS server. This engine is similar to the File engine.' sidebar_label: 'URL' sidebar_position: 80 slug: /engines/table-engines/special/url title: 'URL table engine' doc_type: 'reference' URL table engine Queries data to/from a remote HTTP/HTTPS server. This eng...
{"source_file": "url.md"}
[ -0.04615458473563194, 0.013481481932103634, -0.05140285566449165, 0.015682298690080643, -0.035179246217012405, -0.07134687155485153, -0.06771577894687653, -0.028783250600099564, 0.021913064643740654, -0.03212068974971771, 0.012751477770507336, -0.03306850045919418, 0.04040945693850517, -0....
4823923f-2e77-4023-a862-532a77413092
2. Create a basic HTTP server using the standard Python 3 tools and start it: ```python3 from http.server import BaseHTTPRequestHandler, HTTPServer class CSVHTTPServer(BaseHTTPRequestHandler): def do_GET(self): self.send_response(200) self.send_header('Content-type', 'text/csv') self.en...
{"source_file": "url.md"}
[ -0.028547994792461395, -0.005544534418731928, -0.09767764806747437, 0.028293317183852196, -0.07870527356863022, -0.17003187537193298, -0.08022308349609375, -0.021432951092720032, 0.0513799823820591, 0.02653372474014759, -0.034474365413188934, -0.019236605614423752, 0.030530354008078575, -0...
a1613b05-8a75-429e-ab75-6f2d75b9c854
description: 'Used for implementing views (for more information, see the CREATE VIEW query ). It does not store data, but only stores the specified SELECT query. When reading from a table, it runs this query (and deletes all unnecessary columns from the query).' sidebar_label: 'View' sidebar_position: 90 slug:...
{"source_file": "view.md"}
[ -0.030238697305321693, -0.003433461533859372, -0.12142852693796158, 0.0755542442202568, 0.010212739929556847, -0.005082013551145792, 0.02374734729528427, -0.00896519236266613, 0.042319364845752716, -0.00011805356189142913, 0.08634194731712341, 0.08035990595817566, 0.028466958552598953, -0....
947ad861-7754-4557-bfd2-62f7acc81d1e
description: 'Tables with Distributed engine do not store any data of their own, but allow distributed query processing on multiple servers. Reading is automatically parallelized. During a read, the table indexes on remote servers are used, if there are any.' sidebar_label: 'Distributed' sidebar_position: 10 slug...
{"source_file": "distributed.md"}
[ 0.01764528825879097, -0.09097197651863098, -0.09421694278717041, 0.07491155713796616, -0.03772119805216789, -0.00936034694314003, -0.04615321382880211, -0.030662525445222855, -0.004116181284189224, 0.06874232739210129, 0.03417210280895233, 0.008165881969034672, 0.08379055559635162, -0.0489...
428080ac-e4c3-4270-af36-95d956652e6a
| Parameter | Description ...
{"source_file": "distributed.md"}
[ 0.010146044194698334, 0.0759410560131073, -0.042988814413547516, -0.007348221261054277, -0.09025534242391586, 0.023905031383037567, 0.020156145095825195, 0.041932541877031326, -0.0032095573842525482, -0.06833912432193756, 0.041272617876529694, -0.04904787614941597, 0.00046499198651872575, ...
fc2c649f-4f1a-41e8-a0dc-b2138bce4d79
setting is enabled, then INSERTs do not need the sharding key. For use with optimize_skip_unused_shards as the sharding_key is necessary to determine what shards should be queried | | policy_name (Optional) | The policy name, it will be used to store temporary files for background send ...
{"source_file": "distributed.md"}
[ 0.06550765782594681, 0.020377065986394882, -0.025157257914543152, 0.02769814059138298, -0.015227245166897774, -0.02406303584575653, 0.0032462312374264, -0.01818067952990532, 0.012977993115782738, 0.0179306548088789, 0.06337010860443115, 0.027254123240709305, 0.07380200922489166, -0.0112256...
9b193ecc-a025-4397-b06f-7fc2dc819da0
See Also distributed_foreground_insert setting MergeTree for the examples Distributed settings {#distributed-settings}
{"source_file": "distributed.md"}
[ 0.08136884868144989, -0.10605370253324509, -0.03218137100338936, 0.030841225758194923, -0.0035628865007311106, -0.05982562527060509, -0.07067181169986725, 0.03900512307882309, -0.06411867588758469, 0.02202809974551201, 0.07260877639055252, -0.014390912838280201, 0.05316450074315071, -0.063...