Commit Graph

78 Commits

Author SHA1 Message Date
alexey-milovidov c7863e1ac6
Clang Tidy, part 7 (#9799)
* Attempt to enable identifier naming check

* Attempt to enable identifier naming check, continue

* Progress on identifier names

* Adopt identifier names check

* Fixed error

* Merge with master

* Fixed build

* Fixed build

* Fixed build

* Fixed build

* Fixed build

* Fixed error

* Fixed error

* Fixed error
2020-03-23 05:12:31 +03:00
Vitaly Baranov 4af36ee5a4 Fix updating of the access rights after changing of the `readonly` setting. Remove non-const function Context::getSettingsRef(). 2020-03-22 11:08:08 +03:00
Ivan 38b2dec354
Arcadia (#9729)
* Move getFQDNOrHostName to base/common/
* Add argsToConfig to ya.make
* Add coverage.cpp to ya.make
  Also remove WITH_COVERAGE from config file
2020-03-18 21:54:27 +03:00
Alexey Milovidov 66582d69a5 clang-tidy, part 22 2020-03-09 06:38:43 +03:00
Alexey Milovidov b3a6f6b367 Revert "Simplification"
This reverts commit f5518c0c43.
2020-03-06 21:14:33 +03:00
Alexey Milovidov f5518c0c43 Simplification 2020-03-06 01:45:59 +03:00
Alexey Milovidov 3b85f2ffef Do not run session cleaner for client, local 2020-03-05 22:23:39 +03:00
Alexey Milovidov 4e15d74469 Better code around sessions, step 3 2020-03-05 07:10:48 +03:00
Alexey Milovidov aac2f98870 Better code around sessions, step 2 2020-03-05 06:57:31 +03:00
Denis Glazachev 975107f0ab Combine executeQuery() callbacks
Set X-ClickHouse-Timezone HTTP Response header in the executeQuery() callback
2020-03-03 19:32:41 +04:00
Alexey Milovidov 9c206fca39 Better exception message when length is required in HTTP 2020-02-29 21:27:34 +03:00
Alexey Milovidov 766ae8261a Added some missing ErrorCodes 2020-02-25 21:02:41 +03:00
Alexey Milovidov 3602126a1e Remove unused ErrorCodes 2020-02-25 17:35:37 +03:00
Alexander Tokmakov acef7fc5bd add test 2020-02-06 20:23:05 +03:00
alexey-milovidov 97a75dd8c9
Merge pull request #8786 from millb/X-ClickHouse-Exception-Code
X-ClickHouse-Exception-Code in HTTP Header
2020-01-26 03:43:38 +03:00
alexey-milovidov 528d231a6b
Merge pull request #8750 from azat/temporary_data_configuration
Multiple paths (disks/volumes) for storing temporary data support
2020-01-24 06:21:52 +03:00
Azat Khuzhin 88bfb788a9 Add ability to use multiple disks/volumes for temporary data
This patch adds <tmp_policy> config directive, that will define the
policy to use for storing temporary files, if it is not set (default)
the <tmp_path> will be used.

Also tmp_policy has some limitations:
- move_factor              is ignored
- keep_free_space_bytes    is ignored
- max_data_part_size_bytes is ignored
- must have exactly one volume
2020-01-23 20:31:01 +03:00
Mikhail Korotov c05652067e
Update HTTPHandler.cpp 2020-01-23 16:40:16 +03:00
millb 7c6312fcb2 first attempt 2020-01-22 19:32:18 +03:00
alexey-milovidov 2d599cb1cb
Update HTTPHandler.cpp 2020-01-21 23:28:35 +03:00
Denis Glazachev 79085bf629 Set `X-ClickHouse-Format` HTTP response header to the format name 2020-01-22 00:33:33 +05:30
Alexey Milovidov dd3e0a7abd Fixed incorrect method of parsing "brotli" from Accept-Encoding in HTTP 2020-01-05 04:54:58 +03:00
Alexey Milovidov df80ca892f Prefer brotli over other compression methods in HTTP 2020-01-05 04:51:59 +03:00
Alexey Milovidov 5c8c990787 Fixed error 2020-01-05 01:59:08 +03:00
Alexey Milovidov e7241c1dbe Removed bad code around general compression methods 2020-01-04 10:42:52 +03:00
Alexey Milovidov 0f4a58ecaa Removed bad code around general compression methods 2020-01-04 10:31:00 +03:00
Vitaly Baranov 0e21673271 Rework Quota based on IAccessEntity. 2019-12-05 21:03:57 +03:00
Andrei Bodrov a2b5989177 BrotliReadBuffer refactoring 2019-11-19 16:57:54 +03:00
Andrei Bodrov 8cbc52e711 add gzip read/write to file/s3/url/hdfs 2019-11-19 15:46:07 +03:00
Alexander Kuzmenkov 367c537106 Do not include Field.h everywhere through SettingsCommon.h.
Move the methods of SettingsCollection<> that are dependent on Field to
a separate file, and include it once for each instantiation. This allows
to work on Field without always recompiling the entire project.
2019-10-07 20:23:05 +03:00
Alexander Rodin 68487d512a Merge if branches with the same status code 2019-08-02 05:11:02 +00:00
Alexander Rodin 5c5b4f4de2 Revert "Replace ifs by cases"
This reverts commit 0c70f78fcb.
2019-08-02 05:07:10 +00:00
Alexander Rodin 0c70f78fcb Replace ifs by cases 2019-08-01 15:23:20 +00:00
Alexander Rodin 44b3dbb23b Return Bad Request for INCORRECT_DATA and TYPE_MISMATCH errors 2019-08-01 13:16:09 +00:00
Alexey Milovidov 02eada5b35 Fixed error in prev. revision 2019-07-08 22:41:11 +03:00
Alexey Milovidov c1bb550c07 Addition to prev. revision 2019-07-08 19:58:32 +03:00
Alexey Milovidov c35a832095 Two more fixes for PVS-Studio 2019-07-08 03:56:52 +03:00
Alexey Milovidov 553e6a273e Two more fixes for PVS-Studio 2019-07-08 03:51:43 +03:00
Alexey Milovidov 61bf0e9b12 Style 2019-06-15 21:25:27 +03:00
Alexey Milovidov fad6013270 Fixing query parameters 2019-06-15 20:52:53 +03:00
Alexander Tretiakov f3ef4666e7 fix 2019-06-04 23:15:44 +03:00
Alexander Tretiakov 2f1a03dac0 merge 2019-06-04 21:08:08 +03:00
Anton Yuzhaninov 091b591681 Fix build without Brotli (#5513) (#5521) 2019-06-03 23:27:53 +03:00
alexey-milovidov 8b050b0061
Update HTTPHandler.cpp 2019-05-29 03:23:47 +03:00
Danila Kutenin 98d28706f4 Fix settings in ExternalData HTTP request 2019-05-29 00:31:19 +03:00
Alexander Tretiakov 946fa5b47e fix style and add tests 2019-05-25 16:43:52 +03:00
Alexander Tretiakov c661f5c0a1 new 2019-05-19 00:07:23 +03:00
Vitaly Baranov 8277e9d8f1 Refactoring of Settings based on new template class SettingsCollection.
Add new class SettingsConstraints.
2019-04-26 19:11:05 +03:00
Mikhail Fandyushin 68106d92ea bringing query id header to consistency 2019-04-10 23:13:41 +03:00
Mikhail Fandyushin e986d0eae6 HTTP Accept-Encoding: br; Final fixes 2019-03-21 00:04:35 +03:00