Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
2dot5
ClickHouse
提交
f720a5bf
C
ClickHouse
项目概览
2dot5
/
ClickHouse
通知
3
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
C
ClickHouse
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
f720a5bf
编写于
10月 13, 2018
作者:
A
Alexey Milovidov
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fixed typos in code #3373
上级
dd070290
变更
16
隐藏空白更改
内联
并排
Showing
16 changed file
with
20 addition
and
20 deletion
+20
-20
dbms/programs/obfuscator/Obfuscator.cpp
dbms/programs/obfuscator/Obfuscator.cpp
+2
-2
dbms/programs/odbc-bridge/validateODBCConnectionString.h
dbms/programs/odbc-bridge/validateODBCConnectionString.h
+2
-2
dbms/src/AggregateFunctions/AggregateFunctionMinMaxAny.h
dbms/src/AggregateFunctions/AggregateFunctionMinMaxAny.h
+1
-1
dbms/src/AggregateFunctions/AggregateFunctionNothing.h
dbms/src/AggregateFunctions/AggregateFunctionNothing.h
+1
-1
dbms/src/Columns/ColumnAggregateFunction.cpp
dbms/src/Columns/ColumnAggregateFunction.cpp
+1
-1
dbms/src/Columns/ColumnConst.h
dbms/src/Columns/ColumnConst.h
+1
-1
dbms/src/Columns/IColumn.h
dbms/src/Columns/IColumn.h
+2
-2
dbms/src/Core/Block.h
dbms/src/Core/Block.h
+1
-1
dbms/src/DataTypes/IDataType.h
dbms/src/DataTypes/IDataType.h
+1
-1
dbms/src/Functions/FunctionsCoding.h
dbms/src/Functions/FunctionsCoding.h
+1
-1
dbms/src/Functions/FunctionsConversion.h
dbms/src/Functions/FunctionsConversion.h
+1
-1
dbms/src/Functions/FunctionsHashing.h
dbms/src/Functions/FunctionsHashing.h
+1
-1
dbms/src/Functions/arrayIndex.h
dbms/src/Functions/arrayIndex.h
+2
-2
dbms/src/Functions/sleep.h
dbms/src/Functions/sleep.h
+1
-1
dbms/src/Parsers/ASTLiteral.cpp
dbms/src/Parsers/ASTLiteral.cpp
+1
-1
dbms/src/Storages/System/StorageSystemNumbers.h
dbms/src/Storages/System/StorageSystemNumbers.h
+1
-1
未找到文件。
dbms/programs/obfuscator/Obfuscator.cpp
浏览文件 @
f720a5bf
...
...
@@ -500,7 +500,7 @@ private:
return
CRC32Hash
()(
StringRef
(
reinterpret_cast
<
const
char
*>
(
begin
),
(
end
-
begin
)
*
sizeof
(
CodePoint
)));
}
/// By the way, we don't have to use actual Unicode numbers. We use just arbitary bijective mapping.
/// By the way, we don't have to use actual Unicode numbers. We use just arbit
r
ary bijective mapping.
CodePoint
readCodePoint
(
const
char
*&
pos
,
const
char
*
end
)
{
size_t
length
=
UTF8
::
seqLength
(
*
pos
);
...
...
@@ -954,7 +954,7 @@ try
(
"structure,S"
,
po
::
value
<
std
::
string
>
(),
"structure of the initial table (list of column and type names)"
)
(
"input-format"
,
po
::
value
<
std
::
string
>
(),
"input format of the initial table data"
)
(
"output-format"
,
po
::
value
<
std
::
string
>
(),
"default output format"
)
(
"seed"
,
po
::
value
<
std
::
string
>
(),
"seed (arbitary string), must be random string with at least 10 bytes length"
)
(
"seed"
,
po
::
value
<
std
::
string
>
(),
"seed (arbit
r
ary string), must be random string with at least 10 bytes length"
)
(
"limit"
,
po
::
value
<
UInt64
>
(),
"if specified - stop after generating that number of rows"
)
(
"silent"
,
po
::
value
<
bool
>
()
->
default_value
(
false
),
"don't print information messages to stderr"
)
(
"order"
,
po
::
value
<
UInt64
>
()
->
default_value
(
5
),
"order of markov model to generate strings"
)
...
...
dbms/programs/odbc-bridge/validateODBCConnectionString.h
浏览文件 @
f720a5bf
...
...
@@ -6,10 +6,10 @@
namespace
DB
{
/** Passing arbitary connection string to ODBC Driver Manager is insecure, for the following reasons:
/** Passing arbit
r
ary connection string to ODBC Driver Manager is insecure, for the following reasons:
* 1. Driver Manager like unixODBC has multiple bugs like buffer overflow.
* 2. Driver Manager can interpret some parameters as a path to library for dlopen or a file to read,
* thus allows arbitary remote code execution.
* thus allows arbit
r
ary remote code execution.
*
* This function will throw exception if connection string has insecure parameters.
* It may also modify connection string to harden it.
...
...
dbms/src/AggregateFunctions/AggregateFunctionMinMaxAny.h
浏览文件 @
f720a5bf
...
...
@@ -607,7 +607,7 @@ struct AggregateFunctionAnyLastData : Data
/** Implement 'heavy hitters' algorithm.
* Selects most frequent value if its frequency is more than 50% in each thread of execution.
* Otherwise, selects some arbitary value.
* Otherwise, selects some arbit
r
ary value.
* http://www.cs.umd.edu/~samir/498/karp.pdf
*/
template
<
typename
Data
>
...
...
dbms/src/AggregateFunctions/AggregateFunctionNothing.h
浏览文件 @
f720a5bf
...
...
@@ -10,7 +10,7 @@ namespace DB
{
/** Aggregate function that takes arbit
ary number of arbit
ary arguments and does nothing.
/** Aggregate function that takes arbit
rary number of arbitr
ary arguments and does nothing.
*/
class
AggregateFunctionNothing
final
:
public
IAggregateFunctionHelper
<
AggregateFunctionNothing
>
{
...
...
dbms/src/Columns/ColumnAggregateFunction.cpp
浏览文件 @
f720a5bf
...
...
@@ -373,7 +373,7 @@ const char * ColumnAggregateFunction::deserializeAndInsertFromArena(const char *
/** We will read from src_arena.
* There is no limit for reading - it is assumed, that we can read all that we need after src_arena pointer.
* Buf ReadBufferFromMemory requires some bound. We will use arbitary big enough number, that will not overflow pointer.
* Buf ReadBufferFromMemory requires some bound. We will use arbit
r
ary big enough number, that will not overflow pointer.
* NOTE Technically, this is not compatible with C++ standard,
* as we cannot legally compare pointers after last element + 1 of some valid memory region.
* Probably this will not work under UBSan.
...
...
dbms/src/Columns/ColumnConst.h
浏览文件 @
f720a5bf
...
...
@@ -15,7 +15,7 @@ namespace ErrorCodes
/** ColumnConst contains another column with single element,
* but looks like a column with arbitary amount of same elements.
* but looks like a column with arbit
r
ary amount of same elements.
*/
class
ColumnConst
final
:
public
COWPtrHelper
<
IColumn
,
ColumnConst
>
{
...
...
dbms/src/Columns/IColumn.h
浏览文件 @
f720a5bf
...
...
@@ -92,7 +92,7 @@ public:
}
/** If column is numeric, return value of n-th element, casted to UInt64.
* For NULL values of Nullable column it is allowed to return arbitary value.
* For NULL values of Nullable column it is allowed to return arbit
r
ary value.
* Otherwise throw an exception.
*/
virtual
UInt64
getUInt
(
size_t
/*n*/
)
const
...
...
@@ -175,7 +175,7 @@ public:
virtual
const
char
*
deserializeAndInsertFromArena
(
const
char
*
pos
)
=
0
;
/// Update state of hash function with value of n-th element.
/// On subsequent calls of this method for sequence of column values of arbitary types,
/// On subsequent calls of this method for sequence of column values of arbit
r
ary types,
/// passed bytes to hash must identify sequence of values unambiguously.
virtual
void
updateHashWithValue
(
size_t
n
,
SipHash
&
hash
)
const
=
0
;
...
...
dbms/src/Core/Block.h
浏览文件 @
f720a5bf
...
...
@@ -19,7 +19,7 @@ namespace DB
* This is unit of data processing.
* Also contains metadata - data types of columns and their names
* (either original names from a table, or generated names during temporary calculations).
* Allows to insert, remove columns in arbitary position, to change order of columns.
* Allows to insert, remove columns in arbit
r
ary position, to change order of columns.
*/
class
Context
;
...
...
dbms/src/DataTypes/IDataType.h
浏览文件 @
f720a5bf
...
...
@@ -304,7 +304,7 @@ public:
virtual
bool
shouldAlignRightInPrettyFormats
()
const
{
return
false
;
}
/** Does formatted value in any text format can contain anything but valid UTF8 sequences.
* Example: String (because it can contain arbitary bytes).
* Example: String (because it can contain arbit
r
ary bytes).
* Counterexamples: numbers, Date, DateTime.
* For Enum, it depends.
*/
...
...
dbms/src/Functions/FunctionsCoding.h
浏览文件 @
f720a5bf
...
...
@@ -49,7 +49,7 @@ namespace ErrorCodes
* but only by whole bytes. For dates and datetimes - the same as for numbers.
* For example, hex(257) = '0101'.
* unhex(string) - Returns a string, hex of which is equal to `string` with regard of case and discarding one leading zero.
* If such a string does not exist, could return arbitary implementation specific value.
* If such a string does not exist, could return arbit
r
ary implementation specific value.
*
* bitmaskToArray(x) - Returns an array of powers of two in the binary form of x. For example, bitmaskToArray(50) = [2, 16, 32].
*/
...
...
dbms/src/Functions/FunctionsConversion.h
浏览文件 @
f720a5bf
...
...
@@ -340,7 +340,7 @@ struct ConvertImplGenericToString
ColumnString
::
Chars_t
&
data_to
=
col_to
->
getChars
();
ColumnString
::
Offsets
&
offsets_to
=
col_to
->
getOffsets
();
data_to
.
resize
(
size
*
2
);
/// Using coefficient 2 for initial size is arbitary.
data_to
.
resize
(
size
*
2
);
/// Using coefficient 2 for initial size is arbit
r
ary.
offsets_to
.
resize
(
size
);
WriteBufferFromVector
<
ColumnString
::
Chars_t
>
write_buffer
(
data_to
);
...
...
dbms/src/Functions/FunctionsHashing.h
浏览文件 @
f720a5bf
...
...
@@ -565,7 +565,7 @@ public:
vec_to
.
assign
(
rows
,
static_cast
<
UInt64
>
(
0xe28dbde7fe22e41c
));
}
/// The function supports arbit
ary number of arguments of arbit
ary types.
/// The function supports arbit
rary number of arguments of arbitr
ary types.
bool
is_first_argument
=
true
;
for
(
size_t
i
=
0
;
i
<
arguments
.
size
();
++
i
)
...
...
dbms/src/Functions/arrayIndex.h
浏览文件 @
f720a5bf
...
...
@@ -397,7 +397,7 @@ struct ArrayIndexStringImpl
}
};
/// Catch-all implementation for arrays of arbitary type.
/// Catch-all implementation for arrays of arbit
r
ary type.
/// To compare with constant value, create non-constant column with single element,
/// and pass is_value_has_single_element_to_compare = true.
template
<
typename
IndexConv
,
bool
is_value_has_single_element_to_compare
>
...
...
@@ -555,7 +555,7 @@ public:
}
};
/// Catch-all implementation for arrays of arbitary type
/// Catch-all implementation for arrays of arbit
r
ary type
/// when the 2nd function argument is a NULL value.
template
<
typename
IndexConv
>
struct
ArrayIndexGenericNullImpl
...
...
dbms/src/Functions/sleep.h
浏览文件 @
f720a5bf
...
...
@@ -85,7 +85,7 @@ public:
unsigned
useconds
=
seconds
*
(
variant
==
FunctionSleepVariant
::
PerBlock
?
1
:
size
)
*
1e6
;
/// When sleeping, the query cannot be cancelled. For abitily to cancel query, we limit sleep time.
if
(
useconds
>
3000000
)
/// The choice is arbitary
if
(
useconds
>
3000000
)
/// The choice is arbit
r
ary
throw
Exception
(
"The maximum sleep time is 3000000 microseconds. Requested: "
+
toString
(
useconds
),
ErrorCodes
::
TOO_SLOW
);
::
usleep
(
useconds
);
...
...
dbms/src/Parsers/ASTLiteral.cpp
浏览文件 @
f720a5bf
...
...
@@ -12,7 +12,7 @@ void ASTLiteral::appendColumnNameImpl(WriteBuffer & ostr) const
/// Special case for very large arrays. Instead of listing all elements, will use hash of them.
/// (Otherwise column name will be too long, that will lead to significant slowdown of expression analysis.)
if
(
value
.
getType
()
==
Field
::
Types
::
Array
&&
value
.
get
<
const
Array
&>
().
size
()
>
100
)
/// 100 - just arbitary value.
&&
value
.
get
<
const
Array
&>
().
size
()
>
100
)
/// 100 - just arbit
r
ary value.
{
SipHash
hash
;
applyVisitor
(
FieldVisitorHash
(
hash
),
value
);
...
...
dbms/src/Storages/System/StorageSystemNumbers.h
浏览文件 @
f720a5bf
...
...
@@ -17,7 +17,7 @@ class Context;
* You could also specify a limit (how many numbers to give).
* If multithreaded is specified, numbers will be generated in several streams
* (and result could be out of order). If both multithreaded and limit are specified,
* the table could give you not exactly 1..limit range, but some arbitary 'limit' numbers.
* the table could give you not exactly 1..limit range, but some arbit
r
ary 'limit' numbers.
*/
class
StorageSystemNumbers
:
public
ext
::
shared_ptr_helper
<
StorageSystemNumbers
>
,
public
IStorage
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录