Commit Graph

797 Commits

Author SHA1 Message Date
Artem Zuikov
31948a063a
Trying to fix early constant folding (#9010)
add setting to disable early constant folding
2020-02-07 03:05:51 +03:00
Alexander Kuzmenkov
975f042dc0 Report BAD_ARGUMENTS for a wrong user-supplied enum value.
Before we reported LOGICAL_ERROR that is incorrect.
2020-01-29 17:17:34 +03:00
Alexey Milovidov
5d52261266 Remove useless files 2020-01-26 18:25:58 +03:00
kreuzerkrieg
a256741cf9 Add GCC warning to suggest virtual function override 2020-01-21 13:10:32 +02:00
Alexey Milovidov
7ba06ccb82 Added method createColumn for DataTypeSet 2020-01-15 21:18:50 +03:00
proller
2804feb941 Merge remote-tracking branch 'upstream/master' into fix27 2020-01-13 12:29:55 +03:00
Pradeep Chhetri
4941fdfe4b Fix some spelling mistakes 2020-01-11 17:51:33 +08:00
Alexander Burmak
57517b4ede Replaced deprecated INSTANTIATE_TEST_CASE_P with INSTANTIATE_TEST_SUITE_P 2020-01-10 11:48:24 +03:00
Alexander Burmak
4a9e2399a7 Updated contrib/googletest to v1.10.0 2020-01-09 13:03:24 +03:00
proller
4bb320627c Merge remote-tracking branch 'upstream/master' into fix27 2020-01-02 14:29:48 +03:00
Guillaume Tassery
8909844387 Add groupBit* aggregation function to the type SimpleAggregationFunction 2019-12-31 08:17:39 +01:00
proller
08a6f33511 Merge remote-tracking branch 'upstream/master' into fix27 2019-12-26 18:21:04 +00:00
alexey-milovidov
dd87b49203
Merge pull request #8370 from zhang2014/keep_alias_type_name
Keep alias type name to metadata
2019-12-26 20:08:34 +03:00
alexey-milovidov
1e7123083b
Update DataTypesDecimal.h 2019-12-26 20:06:01 +03:00
proller
b96d3509df Merge remote-tracking branch 'upstream/master' into fix27 2019-12-26 15:18:53 +00:00
zhang2014
1db716088c Keep alias type name to metadata 2019-12-26 13:49:18 +08:00
proller
b449ccb955 fix 2019-12-25 20:22:01 +00:00
Vasily Nemkov
87f58864d3 Fixed type check in toDateTime64 2019-12-24 16:15:25 +03:00
proller
521e2e709e Build fixes. Arm, minimal build 2019-12-20 17:46:00 +03:00
kreuzerkrieg
9612bb0e79 More GCC warnings 2019-12-16 23:19:50 +02:00
Alexey Milovidov
575da23573 Fixed build 2019-12-12 21:40:46 +03:00
Vasily Nemkov
f8fec0402b Merge commit 'e7540dcf686936a490f89d0735f74c2f5f009821' into DateTime64 2019-12-11 17:38:32 +03:00
Vasily Nemkov
514847609d PR fixes:
* Fixed precision calculation in DataTypeDecimalBase c-tor
* Fixed max precision calculation in getLeastSupertype
* Fixed reading past end of vector in FunctionsConversion with extractToDecimalScale
* More verbose comments on FunctionArgumentTypeValidator and validateFunctionArgumentTypes
* style and other minor fixes.
2019-12-11 17:24:59 +03:00
Vasily Nemkov
f56b2b64f2 Post-review refactoring and tests for DateTime64 and Decimal.
* put functions in DecimalFunctions into DecimalUtils namespace
* fixed possible buffer overflow in parseDateTimeBestEffortImpl
* fixed readDateTimeTextImpl not to require fractional part separator
  (if fractional part is missing)
* Tests for code from DecimalFunctions.h
* Fixed serializing DateTime64 to string with writeDateTimeText(), fixed tests
2019-12-11 06:58:49 +03:00
Vitaly Baranov
8035af3a79 Make Field::getScaleMultiplier() inline to allow using FieldVisitorConvertToNumber
in the "clickhouse_parsers" library.
2019-12-05 21:03:57 +03:00
Vitaly Baranov
3e6619c076 Move IntervalKind-related functions to a separate file. 2019-12-05 21:03:57 +03:00
Vasily Nemkov
37832c9497 Removed code duplication and cleaned up headers mess a bit 2019-12-03 15:14:07 +03:00
alexey-milovidov
0c904f1484
Merge pull request #7721 from 4ertus2/decimal
Basic GatherUtils support for Decimals
2019-12-03 05:15:38 +03:00
Vasily Nemkov
70512f8289 Merge remote-tracking branch 'upstream/master' into DateTime64 2019-11-30 21:49:15 +03:00
CurtizJ
6a1baefc47 add missing comment and rename 2019-11-26 12:59:31 +03:00
CurtizJ
c223281d5d fix enum coversion in native format for backward compatibility 2019-11-25 17:06:44 +03:00
Vasily Nemkov
6dfe36479e Fixed type-support traits, put all of those to IDataType.h:
* IsDataTypeDateOrDateTime
 * IsDataTypeDecimal
 * IsDataTypeNumber
2019-11-21 01:02:49 +03:00
Vasily Nemkov
825b8d1160 Post-PR fixes
* value_type => ValueType for ColumnVector and ColumnDecimal
 * minor formatting fixes
 * removed `extern template`
2019-11-20 11:58:55 +03:00
Vasily Nemkov
ac3c018d7e Fixed exception in debug builds on writing DateTime to protobuf 2019-11-13 12:46:37 +03:00
chertus
03933a1039 gather utils for Decimals (no scale checks) 2019-11-11 19:18:37 +03:00
Vasily Nemkov
07041d45c9 Merge remote-tracking branch 'upstream/master' into DateTime64 2019-11-11 09:19:13 +03:00
Vasily Nemkov
d227712f84 Fixed build errors for GCC-9 and Apple Clang. 2019-11-11 09:07:26 +03:00
Vasily Nemkov
3ea467d34a Minor fixes: headers, comments and [[maybe_unused]] for some variables. 2019-11-07 13:56:13 +03:00
Alexander Kuzmenkov
233212ac68
Merge pull request #7531 from amosbird/getkeymapped
Unify hash tables interface (separated for review)
2019-11-06 13:49:39 +03:00
Amos Bird
fbfbe161ec
Unify hash tables interface. 2019-11-06 00:08:04 +08:00
Vasily Nemkov
61ad74bc58 Fixed parsing DateTime and/or DateTime64 with parseXXXOrNull 2019-11-05 14:59:46 +03:00
Vasily Nemkov
c6eb0fcff7 Merge remote-tracking branch 'upstream/master' into DateTime64 2019-11-04 17:06:22 +03:00
Vasily Nemkov
1237976021 Minor: style fix and removed debug output. 2019-11-04 14:54:17 +03:00
alexey-milovidov
f5531fb436
Merge pull request #7590 from amosbird/typetrait
ubsan fix
2019-11-02 13:22:39 +03:00
Amos Bird
ad12099642
ubsan fix 2019-11-02 17:00:03 +08:00
alexey-milovidov
4081b0be90
Merge pull request #7497 from amosbird/countopt
Early constant folding.
2019-11-01 16:54:02 +03:00
Amos Bird
5333258e7e
Complement to tuple parser 2019-11-01 10:48:15 +08:00
Amos Bird
e04cdd4ebb
Early constant folding. 2019-10-31 23:54:32 +08:00
Vasily Nemkov
bb04fd8e54 Type-support fixes 2019-10-30 13:10:51 +03:00
Vasily Nemkov
d6ff36c760 Merge remote-tracking branch 'upstream/master' into DateTime64 2019-10-24 07:52:50 +03:00