Vasily Nemkov
d227712f84
Fixed build errors for GCC-9 and Apple Clang.
2019-11-11 09:07:26 +03:00
Vasily Nemkov
512932c0d2
Fixed regression: unable to determine timezone for certain cases.
2019-11-10 16:12:59 +03:00
Vasily Nemkov
3ea467d34a
Minor fixes: headers, comments and [[maybe_unused]] for some variables.
2019-11-07 13:56:13 +03: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
Vasily Nemkov
f437ae4822
Fixed zero-subsecond part
2019-11-03 08:38:45 +03:00
Vasily Nemkov
1fc28c08e6
Fixed toDateTime64 bug
...
Of unable to deduce timezone in function execution phase.
2019-11-03 08:10:11 +03:00
Amos Bird
ad12099642
ubsan fix
2019-11-02 17:00:03 +08:00
Vasily Nemkov
a6ba05e5d9
Fixed converting DateTime64 to DateTime and Date.
2019-10-31 11:27:15 +03:00
Vasily Nemkov
be683588a5
Fixed CASTing Date and DateTime to DateTime64
2019-10-30 16:59:38 +03:00
Vasily Nemkov
38e2897b49
Casting DateTime64 to DateTime64 of different scale or to/from Date/DateTime
2019-10-26 09:22:55 +03:00
Vasily Nemkov
d6ff36c760
Merge remote-tracking branch 'upstream/master' into DateTime64
2019-10-24 07:52:50 +03:00
Vasily Nemkov
6280ea086f
Enabled toDateTime64
2019-10-16 10:26:28 +03:00
Vasily Nemkov
9f9fcb1add
Simplified argument type validation for conversion functions.
2019-10-14 16:28:52 +03:00
Vasily Nemkov
db166af95a
Moved DataTypeDateTime64 and now64() to separate source files.
2019-10-14 11:38:03 +03:00
Vasily Nemkov
8648ebf75c
Initial implementation of DateTime64 parsing functions;
2019-10-12 10:03:38 +03:00
Alexander Kazakov
03c7b7ff8d
Prevent from using non-deterministic functions in mutations of replicated tables ( #7247 )
...
* Added isDeterministic() to IFunctionBuilder i-face
* A test for non-deterministic mutations
* In MutationsInterpreter::validate() ensure deterministic functions
* Adjusted nondeterministic mutation tests
* Moved around some code in MutationsInterpreter::validate()
* Dropped unnecessary check in findFirstNonDeterministicFuncName()
* Corrections to IFunction{Base,Builder} interface
2019-10-10 17:38:08 +03:00
Vasily Nemkov
1a84580005
Scaffold for toDateTime64(scale, [timezone])
2019-10-08 07:59:38 +03:00
Alexander Tokmakov
80e5976d10
fixes after review
2019-10-02 20:51:00 +03:00
Vasily Nemkov
6e813002d5
Proper serialization of DateTime64 also updated functions support.
2019-10-02 08:53:38 +03:00
Vasily Nemkov
9cc2baf05c
DataType64 as decimal
...
compiles
2019-09-26 18:12:40 +03:00
Vasily Nemkov
1b0410cee7
Merge commit '50928323ebabe0663e26601c3929ee94b9a5127d' into DateTime64
2019-09-09 16:18:22 +03:00
Zhichang Yu
fd0947899d
fix 00980_shard_aggregation_state_deserialization.sql
2019-09-03 23:47:09 +08:00
Zhichang Yu
9e587fb139
fix DataTypeAggregateFunction deserialization
2019-09-02 20:09:40 +08:00
Alexey Milovidov
8966520801
Added "assert_cast" function as a replacement for static_cast for columns
2019-08-21 05:28:04 +03:00
kreuzerkrieg
112fc71276
adding -Wshadow for GCC
2019-08-09 23:58:16 +03:00
alexey-milovidov
80e68a803b
Merge pull request #6374 from dimarub2000/fix_toFloat_monotonicity
...
toFloat() monotonicity fixed
2019-08-08 19:11:38 +03:00
dimarub2000
90010c4040
Changed to a more suitable name
2019-08-08 11:41:38 +03:00
dimarub2000
7f26e09160
toFloat() monotonicity fixed
2019-08-07 12:22:33 +03:00
Nikolai Kochetov
50c39e8b86
Added more checks in CAST function.
2019-08-05 18:23:32 +03:00
chertus
fcc6a2c2be
fix crash on CAST exotic types to decimal
2019-08-02 17:31:55 +03:00
Nikolai Kochetov
1e35f87760
Fix CAST from LowCardinality(Nullable).
2019-07-23 10:57:32 +03:00
Nikolai Kochetov
1d960e5c0b
Fix CAST from LowCardinality(Nullable).
2019-07-22 18:41:52 +03:00
Alexey Milovidov
413b780b65
Various fixes for PVS-Studio
2019-06-16 21:13:39 +03:00
chertus
9eca696e82
actualize isNumber for Decimal
2019-05-24 15:11:03 +03:00
chertus
5f19c0981d
add toDecimalOrZero and toDecimalOrNull fuctions
2019-05-15 21:50:35 +03:00
Martijn Bakker
3d7656ce61
working datetime64 with some conversions
2019-05-04 16:33:17 +01:00
Martijn Bakker
118e498eab
working timezone conversion in the toString function
2019-05-04 01:07:54 +01:00
Alexey Milovidov
36d016d331
Added [[noreturn]] attributes for functions that throw unconditionally
2019-04-10 23:27:14 +03:00
Vasily Nemkov
2716df8ab2
IPv4 and IPv6 Domain implementation.
...
Added:
* IDataTypeDomain interface;
* method DataTypeFactory::registerDataTypeDomain for registering domains;
* DataTypeDomainWithSimpleSerialization domain base class with simple serialization/deserialization;
* Concrete IPv4 and IPv6 domain implementations: DataTypeDomanIPv6 and DataTypeDomanIPv4;
Updated:
* IDataType text serialization/deserialization methods;
* IDataType implementation to use domain for text serialization/deserialization;
* Refactored implementation of the IPv4/IPv6 functions to use formatIPv4/v6 and parseIPv4/v6 from Common/formatIPv6.h;
Tests:
* Added test cases for IPv4 and IPv6 domains.
* Updated IPv4/v6 functions tests to validate more cases;
* Added performance tests for IPv4 and IPv6 related functions;
2019-02-04 12:37:46 +03:00
Alexey Milovidov
1d4701b0bc
Added some warnings from clang's -Weverything
2019-01-04 15:10:00 +03:00
Alexey Milovidov
673fa80a9c
Allowed some UB #3926
2018-12-27 03:40:10 +03:00
Alexey Milovidov
39492139f0
Allowed some UB #3926
2018-12-27 03:25:47 +03:00
Alexey Milovidov
4ee7b80ab4
Fixed error #3870
2018-12-25 21:40:47 +03:00
Alexey Milovidov
fc4f7d2e77
Investigation #3921
2018-12-25 21:06:38 +03:00
Alexey Milovidov
5e8035f166
Fixed error #3921
2018-12-24 19:13:04 +03:00
Alexey Milovidov
b624add2e7
Rewrite code to calculate integer conversion function monotonicity; fixed test #3870
2018-12-24 18:46:55 +03:00
Alexey Milovidov
ce10674107
Fixed weird error in PR #3870
2018-12-24 16:25:48 +03:00
zhang2014
6ffdcb38a2
Fix check data type with converts function
2018-12-21 19:37:33 +08:00