Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
148 commits
Select commit Hold shift + click to select a range
2d64d06
Auto version update to [20.3.11.1] [54433]
May 23, 2020
4e22052
Add test for row policy that policy defined in users.xml affects only…
May 27, 2020
027d782
Row policy defined in users.xml affects only the user it assigned to.
May 28, 2020
cbfceeb
Merge pull request #11240 from vitlibar/20_3_add-test-row_policy-affe…
May 28, 2020
ed59b6a
Manual cherry-pick of #11335
alesapin Jun 2, 2020
86df8c4
Merge pull request #11354 from ClickHouse/get_rid_of_lock_during_send
alexey-milovidov Jun 2, 2020
ba7cd8f
Manual cherry-pick of #11355
alesapin Jun 3, 2020
ed83f8d
Merge pull request #11255 from zlobober/proper_versions_in_arcadia
alexey-milovidov May 29, 2020
ca66a76
Fix build
alesapin Jun 3, 2020
42a7445
Access aggregate keys by names over indexes
azat May 2, 2020
547a989
Added test.
KochetovNicolai Jun 3, 2020
8f3a183
Merge pull request #10621 from azat/enable_optimize_predicate_express…
alexey-milovidov May 31, 2020
2832981
Merge pull request #11081 from vitlibar/fix-no-password-mode
May 26, 2020
9da7528
Merge pull request #11114 from azat/max_threads-simple-query-optimiza…
KochetovNicolai May 25, 2020
d3b2c50
Merge pull request #11162 from azat/data-skip-index-merging-params-fix
alexey-milovidov May 31, 2020
46ec1af
Merge pull request #11179 from excitoon-favorites/s3globfix
alexey-milovidov May 25, 2020
7b044ac
Merge pull request #11185 from ClickHouse/fix-lambda-lc-args
qoega May 26, 2020
e6d2678
Merge pull request #11200 from ClickHouse/fix-strict-resize-finishing
KochetovNicolai May 26, 2020
0d8fd41
Merge pull request #11205 from ClickHouse/fix-view-totals
tavplubix May 28, 2020
14f8e90
Merge pull request #11233 from nikitamikhaylov/cache-getstring-bugfix
nikitamikhaylov May 29, 2020
97904fd
Merge pull request #11258 from vitlibar/protobuf-fix-handling-bad-data
alexey-milovidov May 28, 2020
ed623cc
Merge pull request #11296 from ClickHouse/fix-false-too-slow
alexey-milovidov May 31, 2020
eb21be1
Merge pull request #11303 from ClickHouse/fix-index-analysis-empty-array
alexey-milovidov May 30, 2020
732a66c
Merge pull request #11311 from ClickHouse/fix-uninitialized-memory-in…
alexey-milovidov May 31, 2020
e210d19
Merge pull request #11314 from ClickHouse/fix-race-condition-thread-pool
alexey-milovidov May 31, 2020
8af4dd1
Merge pull request #11318 from devwout/master
alexey-milovidov May 31, 2020
003b0cf
Merge pull request #11330 from ClickHouse/fix-10241
alexey-milovidov Jun 2, 2020
2f17a3e
Merge pull request #11337 from ClickHouse/fix-quantile-arguments
alexey-milovidov Jun 1, 2020
ffccc30
Merge pull request #10337 from nikitamikhaylov/proper_dictionary_time…
alexey-milovidov Apr 18, 2020
afc27db
Merge pull request #11340 from 4ertus2/bugs
alexey-milovidov Jun 1, 2020
5edc1f8
Merge pull request #11366 from ClickHouse/fix-SortingTransform-bug
akuzm Jun 3, 2020
51f33eb
Merge pull request #11389 from 4ertus2/bugs
qoega Jun 3, 2020
2cfdea5
Merge pull request #11403 from Enmk/geohashesInBox-fix
alexey-milovidov Jun 3, 2020
a0b18d0
better error for USING key (#11404)
4ertus2 Jun 3, 2020
93d4611
Fix JOIN over LC and Nullable in key (#11414)
4ertus2 Jun 4, 2020
b011963
Merge pull request #11421 from livace/fix_point_in_polygon_with_nan
alexey-milovidov Jun 6, 2020
36a19a8
Merge pull request #11431 from ClickHouse/fix_codecs_arguments_crash
alesapin Jun 4, 2020
7b73c4a
Merge pull request #11448 from ClickHouse/fix-codecs-compression-size
alexey-milovidov Jun 5, 2020
000a128
Merge pull request #10656 from azat/kafka-consumer-hang
alexey-milovidov May 6, 2020
0244b8a
Merge pull request #10910 from filimonov/kafka_drop_hang_fix
alexey-milovidov May 17, 2020
091ff53
Merge pull request #11048 from filimonov/kafka_missed_data_during_drop
alexey-milovidov May 22, 2020
ba69724
Fix for the hang during deletion of engine=Kafka (one more time) (#11…
filimonov May 25, 2020
46ddaa0
Merge pull request #11149 from filimonov/kafka_reschedule
alexey-milovidov May 27, 2020
dbb7c54
Merge pull request #10928 from vitlibar/check-access-once-for-dictget
alexey-milovidov May 17, 2020
efeb3f5
Fix build.
KochetovNicolai Jun 8, 2020
9f84aa0
Fix build.
KochetovNicolai Jun 8, 2020
01fbb28
Update test.py
KochetovNicolai Jun 8, 2020
2fbabf0
Merge pull request #10908 from qoega/packager-add-bin
qoega May 21, 2020
3f2cba6
Merge pull request #11520 from filimonov/20.3_kafka_backports
KochetovNicolai Jun 8, 2020
a1192b2
Fix autogenerated_versions.txt
alesapin Jun 9, 2020
d6f69f0
Revert "Merge pull request #11162 from azat/data-skip-index-merging-p…
KochetovNicolai Jun 9, 2020
d6a1e1a
Merge pull request #9884 from filimonov/kafka_commit_retry
filimonov Jun 9, 2020
c4b5b1a
Merge pull request #11350 from ClickHouse/fix-client-vertical-multiline
alexey-milovidov Jun 2, 2020
69aa6ed
Merge pull request #11552 from filimonov/20.3_missed_kafka_backport
KochetovNicolai Jun 9, 2020
8a69306
Try fix tests with max_execution_speed.
KochetovNicolai Jun 9, 2020
0391512
Empty commit.
KochetovNicolai Jun 9, 2020
952efc3
Merge pull request #11540 from ClickHouse/fix-direct-io
alexey-milovidov Jun 9, 2020
bc590a2
Auto version update to [20.3.11.97] [54433]
Jun 10, 2020
a1c0a80
Auto version update to [20.3.12.1] [54433]
Jun 10, 2020
2d4fd07
Merge pull request #11580 from ClickHouse/fix-bug-prewhere-in-subquery
alexey-milovidov Jun 11, 2020
717a1db
Merge pull request #11644 from ClickHouse/remove-trivial-count-optimi…
alexey-milovidov Jun 14, 2020
6fa332f
Merge pull request #11638 from azat/skip-idx-bloom-filter-fix
akuzm Jun 15, 2020
a10262e
Merge pull request #11681 from ClickHouse/fix_mutations_premature_finish
alesapin Jun 16, 2020
835c4e0
Merge pull request #11496 from ClickHouse/fix-aggregation-state-excep…
alexey-milovidov Jun 8, 2020
effb54f
Merge pull request #11528 from azat/use_compact_format_in_distributed…
alexey-milovidov Jun 10, 2020
aff035f
Merge pull request #11550 from realadvisor/master
alexey-milovidov Jun 9, 2020
7a1a8b0
Merge pull request #11578 from ClickHouse/fix_10240
alexey-milovidov Jun 11, 2020
af4343d
Merge pull request #11589 from ClickHouse/fix-log-message
alexey-milovidov Jun 11, 2020
3452aca
Merge pull request #11601 from filimonov/fix_client_exit_code
alexey-milovidov Jun 11, 2020
cc6be20
Merge pull request #11649 from ClickHouse/case-insensitive-regexp
alexey-milovidov Jun 14, 2020
36ceefa
Merge pull request #11690 from ClickHouse/odbc-bridge-timeouts
alexey-milovidov Jun 17, 2020
6444f20
Merge pull request #11697 from CurtizJ/fix-with-fill
alexey-milovidov Jun 18, 2020
f367153
Merge pull request #11732 from ClickHouse/fix_type_duduction_in_value…
tavplubix Jun 17, 2020
a4016b0
Merge pull request #11602 from ClickHouse/fix-buffer-sample
nikitamikhaylov Jun 17, 2020
6a01b55
Merge pull request #11608 from ClickHouse/fix-nullable-prewhere-type
alexey-milovidov Jun 13, 2020
83130f3
Merge pull request #11744 from ClickHouse/stop_fetches_before_metadat…
alesapin Jun 18, 2020
2c32530
Fix build: call count() instead of contains() for boost flat sets.
Jun 22, 2020
07b5f6d
Fixes for clang-tidy on clang-10
Jun 22, 2020
51845eb
Fix integration test test_dictionaries_access.
Jun 22, 2020
c1825e1
Skip integration tests test_settings_constraints_distributed.
Jun 22, 2020
9ffef52
Fix integration test
alesapin Mar 25, 2020
5ad4079
Fix integration test test_distributed_format.
Jun 22, 2020
3a4df1a
Merge pull request #11869 from ClickHouse/fix-nullable-prewhere-type-2
alexey-milovidov Jun 22, 2020
41894c4
Fix test 01249_bad_arguments_for_bloom_filter (SHOW CREATE TABLE isn'…
Jun 23, 2020
a27dc99
Delete test 01116_cross_count_asterisks (because it used setting mult…
Jun 23, 2020
c3508ab
Merge pull request #10714 from CurtizJ/pk-function
alexey-milovidov May 9, 2020
a7a160d
Merge pull request #10860 from CurtizJ/pk-function
KochetovNicolai May 13, 2020
42162e3
Fix anotehr one nullable prewhere column.
KochetovNicolai Jun 23, 2020
fde9661
Fix test 01318_long_failing_mutation_zookeeper.
Jun 24, 2020
c5984f6
try fix odbc
alesapin Apr 2, 2020
2456ea6
fix bug for query "select *, abc.*" should failed. (#11753)
hexiaoting Jun 23, 2020
62bd683
Merge pull request #11788 from ClickHouse/fix-too-many-threads
alexey-milovidov Jun 20, 2020
2b37daa
Merge pull request #11846 from ClickHouse/prohibit-array-join-in-high…
alexey-milovidov Jun 22, 2020
22e175c
backport #9972
4ertus2 Jun 24, 2020
e087dfd
Auto version update to [20.3.12.112] [54433]
Jun 25, 2020
edcc5f3
Auto version update to [20.3.13.1] [54433]
Jun 25, 2020
23caf14
update test
4ertus2 Jun 25, 2020
f806a7e
Merge pull request #12085 from ClickHouse/fix-11937
KochetovNicolai Jul 3, 2020
aae6017
Fix images.json
alesapin Jul 3, 2020
7d3e97b
Merge pull request #12045 from ClickHouse/fix_loading_of_tables
alexey-milovidov Jun 30, 2020
beecc18
Merge pull request #11840
alexey-milovidov Jun 23, 2020
70f4176
Missed change from #11840
alesapin Jul 10, 2020
abee8f0
Merge pull request #11875 from ClickHouse/fix-fpe-datetime64
alexey-milovidov Jun 24, 2020
8736ce1
Merge pull request #11916 from ClickHouse/query-parameters-keep-alias
alexey-milovidov Jun 24, 2020
c113d9c
Merge pull request #11936 from ClickHouse/fix_11918
alexey-milovidov Jun 25, 2020
b400a7c
Merge pull request #11997 from ClickHouse/fix-bad-log-message
alexey-milovidov Jun 27, 2020
af9a234
Merge pull request #12005 from ClickHouse/fix-div-nontrivial-fpe
alexey-milovidov Jun 28, 2020
75f3d3b
Merge pull request #12013 from ClickHouse/fix-array-size-overflow-gen…
alexey-milovidov Jun 28, 2020
480f1d3
Follow up fix
alesapin Jul 10, 2020
e7cb4df
Merge pull request #12019 from ClickHouse/fix-neighbor-overflow
akuzm Jun 29, 2020
13d131c
Merge pull request #12021 from ClickHouse/fix-if-fixed-string
alexey-milovidov Jul 5, 2020
d4460ef
Merge pull request #12039 from ClickHouse/fix-nullable-tuple-compare
alexey-milovidov Jun 29, 2020
7ec8c7f
Merge pull request #12043 from ClickHouse/topk-enum
alexey-milovidov Jun 30, 2020
6d1df66
Merge pull request #12055 from ClickHouse/fix-9766
alesapin Jul 2, 2020
6e8829e
Merge pull request #12056 from ClickHouse/fix-11808
alesapin Jul 2, 2020
fe79daf
Merge pull request #12060 from ClickHouse/fix-12053
alexey-milovidov Jul 4, 2020
1d06512
Merge pull request #12092 from CurtizJ/fix-state-resample
alexey-milovidov Jul 6, 2020
2886899
Merge pull request #12137 from ClickHouse/fix-loop-geodistance
alexey-milovidov Jul 5, 2020
b59e570
Merge pull request #12140 from ClickHouse/fix-division
alexey-milovidov Jul 5, 2020
297de0d
Merge pull request #12151 from ClickHouse/fix-transform-query-aliases
alexey-milovidov Jul 7, 2020
fdfece4
Build fixes
alesapin Jul 10, 2020
33f4e0c
Backport #12120
filimonov Jul 3, 2020
006487a
Merge pull request #12153 from ClickHouse/fix-mutations-interpreter
alesapin Jul 6, 2020
f275c75
Merge pull request #12179 from azat/GROUP-BY-injective-elimination-di…
alexey-milovidov Jul 9, 2020
9b3f379
Merge pull request #12196 from ClickHouse/akz/logical-functions-norma…
alexey-milovidov Jul 7, 2020
ac83e32
Merge pull request #12197 from nikitamikhaylov/csv-file-bugfix
tavplubix Jul 8, 2020
84c594e
Merge pull request #12271 from ClickHouse/fix-logical-functions-review
alexey-milovidov Jul 8, 2020
faea281
Merge pull request #12275 from ClickHouse/supertype-low-cardinality
alexey-milovidov Jul 8, 2020
e4c2cfa
Merge pull request #12279 from ClickHouse/fix-array-fill
alexey-milovidov Jul 8, 2020
4819b21
Merge pull request #12290 from vitlibar/show-error-after-trie-diction…
Jul 8, 2020
74c6663
Merge pull request #12305 from ClickHouse/fix-virtual-columns-filter
alexey-milovidov Jul 9, 2020
27870b4
Merge pull request #12306 from CurtizJ/fix-with-fill
CurtizJ Jul 9, 2020
18cc27d
Merge pull request #12395 from filimonov/backport_12120_to_20_3
alesapin Jul 10, 2020
22c24f4
Remove redundnat
alesapin Jul 10, 2020
fc87e06
Fix 01373 test
alesapin Jul 13, 2020
bbb54fa
Fix if function with NULLs (#11807)
4ertus2 Jun 23, 2020
2131dd9
Fix test 01091_num_threads
alesapin Jul 13, 2020
df1b7fd
Disable test 01360_materialized_view because it require improvement
alesapin Jul 13, 2020
e597dfa
[wip] add fmtlib to 20.3 (#12407)
akuzm Jul 14, 2020
f73e715
Auto version update to [20.3.13.127] [54433]
Jul 15, 2020
f4c0766
Auto version update to [20.3.14.1] [54433]
Jul 15, 2020
3a7c9aa
Merge pull request #11934 from ClickHouse/fix_some_logical_errors
tavplubix Jun 25, 2020
633ff65
Merge pull request #12543 from ClickHouse/fix_marks_type_on_mutation
alesapin Jul 17, 2020
d68153a
Merge pull request #12529 from CurtizJ/fix-12521
alexey-milovidov Jul 16, 2020
dee6156
Merge pull request #12401 from ClickHouse/fix_segfault_in_storage_merge
alexey-milovidov Jul 10, 2020
547e241
Merge pull request #12103 from ClickHouse/fix-12030
alexey-milovidov Jul 9, 2020
37bdc05
Merge pull request #12566 from ClickHouse/race_condition_cache_dictio…
alexey-milovidov Jul 21, 2020
078c155
Auto version update to [20.3.14.130] [54433]
Jul 21, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -148,3 +148,6 @@
path = contrib/avro
url = https://github.com/ClickHouse-Extras/avro.git
ignore = untracked
[submodule "contrib/fmtlib"]
path = contrib/fmtlib
url = https://github.com/fmtlib/fmt.git
1 change: 1 addition & 0 deletions base/common/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ target_link_libraries (common
${Poco_Foundation_LIBRARY}
${CITYHASH_LIBRARIES}
${Boost_SYSTEM_LIBRARY}
fmt
)

if (ENABLE_TESTS)
Expand Down
44 changes: 33 additions & 11 deletions base/common/LineReader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,47 +67,69 @@ LineReader::Suggest::WordsRange LineReader::Suggest::getCompletions(const String
});
}

LineReader::LineReader(const String & history_file_path_, char extender_, char delimiter_)
: history_file_path(history_file_path_), extender(extender_), delimiter(delimiter_)
LineReader::LineReader(const String & history_file_path_, bool multiline_, Patterns extenders_, Patterns delimiters_)
: history_file_path(history_file_path_), multiline(multiline_), extenders(std::move(extenders_)), delimiters(std::move(delimiters_))
{
/// FIXME: check extender != delimiter
}

String LineReader::readLine(const String & first_prompt, const String & second_prompt)
{
String line;
bool is_multiline = false;
bool need_next_line = false;

while (auto status = readOneLine(is_multiline ? second_prompt : first_prompt))
while (auto status = readOneLine(need_next_line ? second_prompt : first_prompt))
{
if (status == RESET_LINE)
{
line.clear();
is_multiline = false;
need_next_line = false;
continue;
}

if (input.empty())
{
if (!line.empty() && !delimiter && !hasInputData())
if (!line.empty() && !multiline && !hasInputData())
break;
else
continue;
}

is_multiline = (input.back() == extender) || (delimiter && input.back() != delimiter) || hasInputData();
#if !defined(ARCADIA_BUILD) /// C++20
const char * has_extender = nullptr;
for (const auto * extender : extenders)
{
if (input.ends_with(extender))
{
has_extender = extender;
break;
}
}

if (input.back() == extender)
const char * has_delimiter = nullptr;
for (const auto * delimiter : delimiters)
{
input = input.substr(0, input.size() - 1);
if (input.ends_with(delimiter))
{
has_delimiter = delimiter;
break;
}
}

need_next_line = has_extender || (multiline && !has_delimiter) || hasInputData();

if (has_extender)
{
input.resize(input.size() - strlen(has_extender));
trim(input);
if (input.empty())
continue;
}
#endif

line += (line.empty() ? "" : " ") + input;

if (!is_multiline)
if (!need_next_line)
break;
}

Expand All @@ -127,7 +149,7 @@ LineReader::InputStatus LineReader::readOneLine(const String & prompt)
#ifdef OS_LINUX
if (!readline_ptr)
{
for (auto name : {"libreadline.so", "libreadline.so.0", "libeditline.so", "libeditline.so.0"})
for (const auto * name : {"libreadline.so", "libreadline.so.0", "libeditline.so", "libeditline.so.0"})
{
void * dl_handle = dlopen(name, RTLD_LAZY);
if (dl_handle)
Expand Down
10 changes: 7 additions & 3 deletions base/common/LineReader.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ class LineReader
bool case_insensitive = false;
};

LineReader(const String & history_file_path, char extender, char delimiter = 0); /// if delimiter != 0, then it's multiline mode
using Patterns = std::vector<const char *>;

LineReader(const String & history_file_path, bool multiline, Patterns extenders, Patterns delimiters);
virtual ~LineReader() {}

/// Reads the whole line until delimiter (in multiline mode) or until the last line without extender.
Expand Down Expand Up @@ -53,8 +55,10 @@ class LineReader
String input;

private:
const char extender;
const char delimiter;
bool multiline;

Patterns extenders;
Patterns delimiters;

String prev_line;

Expand Down
5 changes: 3 additions & 2 deletions base/common/ReadlineLineReader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,9 @@ static char * generate(const char * text, int state)
return nextMatch();
};

ReadlineLineReader::ReadlineLineReader(const Suggest & suggest_, const String & history_file_path_, char extender_, char delimiter_)
: LineReader(history_file_path_, extender_, delimiter_)
ReadlineLineReader::ReadlineLineReader(
const Suggest & suggest_, const String & history_file_path_, bool multiline_, Patterns extenders_, Patterns delimiters_)
: LineReader(history_file_path_, multiline_, std::move(extenders_), std::move(delimiters_))
{
suggest = &suggest_;

Expand Down
2 changes: 1 addition & 1 deletion base/common/ReadlineLineReader.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
class ReadlineLineReader : public LineReader
{
public:
ReadlineLineReader(const Suggest & suggest, const String & history_file_path, char extender, char delimiter = 0);
ReadlineLineReader(const Suggest & suggest, const String & history_file_path, bool multiline, Patterns extenders_, Patterns delimiters_);
~ReadlineLineReader() override;

void enableBracketedPaste() override;
Expand Down
13 changes: 7 additions & 6 deletions base/common/ReplxxLineReader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,9 @@ void trim(String & s)

}

ReplxxLineReader::ReplxxLineReader(const Suggest & suggest, const String & history_file_path_, char extender_, char delimiter_)
: LineReader(history_file_path_, extender_, delimiter_)
ReplxxLineReader::ReplxxLineReader(
const Suggest & suggest, const String & history_file_path_, bool multiline_, Patterns extenders_, Patterns delimiters_)
: LineReader(history_file_path_, multiline_, std::move(extenders_), std::move(delimiters_))
{
using namespace std::placeholders;
using Replxx = replxx::Replxx;
Expand All @@ -37,13 +38,13 @@ ReplxxLineReader::ReplxxLineReader(const Suggest & suggest, const String & histo

/// By default C-p/C-n binded to COMPLETE_NEXT/COMPLETE_PREV,
/// bind C-p/C-n to history-previous/history-next like readline.
rx.bind_key(Replxx::KEY::control('N'), std::bind(&Replxx::invoke, &rx, Replxx::ACTION::HISTORY_NEXT, _1));
rx.bind_key(Replxx::KEY::control('P'), std::bind(&Replxx::invoke, &rx, Replxx::ACTION::HISTORY_PREVIOUS, _1));
rx.bind_key(Replxx::KEY::control('N'), [this](char32_t code) { return rx.invoke(Replxx::ACTION::HISTORY_NEXT, code); });
rx.bind_key(Replxx::KEY::control('P'), [this](char32_t code) { return rx.invoke(Replxx::ACTION::HISTORY_PREVIOUS, code); });
/// By default COMPLETE_NEXT/COMPLETE_PREV was binded to C-p/C-n, re-bind
/// to M-P/M-N (that was used for HISTORY_COMMON_PREFIX_SEARCH before, but
/// it also binded to M-p/M-n).
rx.bind_key(Replxx::KEY::meta('N'), std::bind(&Replxx::invoke, &rx, Replxx::ACTION::COMPLETE_NEXT, _1));
rx.bind_key(Replxx::KEY::meta('P'), std::bind(&Replxx::invoke, &rx, Replxx::ACTION::COMPLETE_PREVIOUS, _1));
rx.bind_key(Replxx::KEY::meta('N'), [this](char32_t code) { return rx.invoke(Replxx::ACTION::COMPLETE_NEXT, code); });
rx.bind_key(Replxx::KEY::meta('P'), [this](char32_t code) { return rx.invoke(Replxx::ACTION::COMPLETE_PREVIOUS, code); });
}

ReplxxLineReader::~ReplxxLineReader()
Expand Down
2 changes: 1 addition & 1 deletion base/common/ReplxxLineReader.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
class ReplxxLineReader : public LineReader
{
public:
ReplxxLineReader(const Suggest & suggest, const String & history_file_path, char extender, char delimiter = 0);
ReplxxLineReader(const Suggest & suggest, const String & history_file_path, bool multiline, Patterns extenders_, Patterns delimiters_);
~ReplxxLineReader() override;

void enableBracketedPaste() override;
Expand Down
2 changes: 1 addition & 1 deletion base/common/argsToConfig.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ void argsToConfig(const Poco::Util::Application::ArgVec & argv, Poco::Util::Laye
/// Test: -- --1=1 --1=2 --3 5 7 8 -9 10 -11=12 14= 15== --16==17 --=18 --19= --20 21 22 --23 --24 25 --26 -27 28 ---29=30 -- ----31 32 --33 3-4
Poco::AutoPtr<Poco::Util::MapConfiguration> map_config = new Poco::Util::MapConfiguration;
std::string key;
for (auto & arg : argv)
for (const auto & arg : argv)
{
auto key_start = arg.find_first_not_of('-');
auto pos_minus = arg.find('-');
Expand Down
2 changes: 1 addition & 1 deletion base/common/phdr_cache.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ extern "C"
#endif
int dl_iterate_phdr(int (*callback) (dl_phdr_info * info, size_t size, void * data), void * data)
{
auto current_phdr_cache = phdr_cache.load();
auto * current_phdr_cache = phdr_cache.load();
if (!current_phdr_cache)
{
// Cache is not yet populated, pass through to the original function.
Expand Down
9 changes: 9 additions & 0 deletions cmake/autogenerated_versions.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# This strings autochanged from release_lib.sh:
SET(VERSION_REVISION 54433)
SET(VERSION_MAJOR 20)
SET(VERSION_MINOR 3)
SET(VERSION_PATCH 14)
SET(VERSION_GITHASH 37bdc0588422d170f8bc36f152f4ec3964b07a9b)
SET(VERSION_DESCRIBE v20.3.14.130-lts)
SET(VERSION_STRING 20.3.14.130)
# end of autochange
10 changes: 1 addition & 9 deletions cmake/version.cmake
Original file line number Diff line number Diff line change
@@ -1,12 +1,4 @@
# This strings autochanged from release_lib.sh:
set(VERSION_REVISION 54433)
set(VERSION_MAJOR 20)
set(VERSION_MINOR 3)
set(VERSION_PATCH 10)
set(VERSION_GITHASH 257cd6cadf7380ee6936d9c00922176e5d268992)
set(VERSION_DESCRIBE v20.3.10.75-lts)
set(VERSION_STRING 20.3.10.75)
# end of autochange
include(${CMAKE_SOURCE_DIR}/cmake/autogenerated_versions.txt)

set(VERSION_EXTRA "" CACHE STRING "")
set(VERSION_TWEAK "" CACHE STRING "")
Expand Down
3 changes: 3 additions & 0 deletions contrib/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -335,3 +335,6 @@ endif()
add_subdirectory(grpc-cmake)

add_subdirectory(replxx-cmake)

add_subdirectory (fmtlib-cmake)

2 changes: 1 addition & 1 deletion contrib/cppkafka
1 change: 1 addition & 0 deletions contrib/fmtlib
Submodule fmtlib added at 297c3b
20 changes: 20 additions & 0 deletions contrib/fmtlib-cmake/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
set (SRCS
../fmtlib/src/format.cc
../fmtlib/src/os.cc

../fmtlib/include/fmt/chrono.h
../fmtlib/include/fmt/color.h
../fmtlib/include/fmt/compile.h
../fmtlib/include/fmt/core.h
../fmtlib/include/fmt/format.h
../fmtlib/include/fmt/format-inl.h
../fmtlib/include/fmt/locale.h
../fmtlib/include/fmt/os.h
../fmtlib/include/fmt/ostream.h
../fmtlib/include/fmt/posix.h
../fmtlib/include/fmt/printf.h
../fmtlib/include/fmt/ranges.h
)

add_library(fmt ${SRCS})
target_include_directories(fmt SYSTEM PUBLIC ../fmtlib/include)
4 changes: 2 additions & 2 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
clickhouse (20.3.10.1) unstable; urgency=low
clickhouse (20.3.14.1) unstable; urgency=low

* Modified source code

-- clickhouse-release <[email protected]> Tue, 19 May 2020 02:44:39 +0300
-- clickhouse-release <[email protected]> Wed, 15 Jul 2020 11:53:50 +0300
11 changes: 10 additions & 1 deletion debian/rules
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ DEB_BUILD_OPTIONS+=parallel=$(THREADS_COUNT)

ifndef ENABLE_TESTS
CMAKE_FLAGS += -DENABLE_TESTS=0
else
# To export binaries and from deb build we do not strip them. No need to run tests in deb build as we run them in CI
DEB_BUILD_OPTIONS+= nocheck
DEB_BUILD_OPTIONS+= nostrip
endif

ifndef MAKE_TARGET
Expand Down Expand Up @@ -88,14 +92,19 @@ override_dh_auto_build:
$(MAKE) $(THREADS_COUNT) -C $(BUILDDIR) $(MAKE_TARGET)

override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
cd $(BUILDDIR) && ctest $(THREADS_COUNT) -V -E with_server
endif

override_dh_clean:
rm -rf debian/copyright debian/clickhouse-client.docs debian/clickhouse-common-static.docs
dh_clean -X contrib
dh_clean # -X contrib

override_dh_strip:
#https://www.debian.org/doc/debian-policy/ch-source.html#debian-rules-and-deb-build-options
ifeq (,$(filter nostrip,$(DEB_BUILD_OPTIONS)))
dh_strip -pclickhouse-common-static --dbg-package=clickhouse-common-static-dbg
endif

override_dh_install:
# Making docs
Expand Down
2 changes: 1 addition & 1 deletion docker/client/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM ubuntu:18.04

ARG repository="deb http://repo.yandex.ru/clickhouse/deb/stable/ main/"
ARG version=20.3.10.*
ARG version=20.3.14.*

RUN apt-get update \
&& apt-get install --yes --no-install-recommends \
Expand Down
Loading