Azat Khuzhin
17f6c82ffa
Prohibit toUnixTimestamp(Date())
...
Making it implicitly cast to Date() does not looks correct, since before
it returns somewhat unexpected result:
SELECT toUnixTimestamp(today())
┌─toUnixTimestamp(today())─┐
│ 18591 │
└──────────────────────────┘
2020-11-25 00:26:14 +03:00
alexey-milovidov
1663b13215
Merge pull request #17257 from ucasFL/fix
...
fix toUInt256 stack overflow
2020-11-21 22:54:06 +03:00
fenglv
268b15f221
fix toUInt256 stack overflow
2020-11-21 12:59:40 +00:00
Nikolai Kochetov
cf678b6092
Merge branch 'master' into order-inputs-in-action-dag
2020-11-21 13:54:50 +03:00
Nikolai Kochetov
266596783a
Remove Converting transform and step.
2020-11-18 12:45:46 +03:00
Nikolai Kochetov
947a29e378
Remove Converting transform and step.
2020-11-18 12:38:03 +03:00
Nikolai Kochetov
354620b5a1
Remove Converting transform and step.
2020-11-18 12:35:32 +03:00
Ivan Lezhankin
f897f7c93f
Refactor IFunction to execute with const arguments
2020-11-17 16:24:45 +03:00
Anton Popov
5fbca7d62d
Merge pull request #16337 from kitaisreal/uuid-safe-cast-functions-added
...
UUID safe cast functions added
2020-10-26 16:03:27 +03:00
Maksim Kita
440ae2bc57
UUID safe cast functions added
...
1. Added readUUIDTextImpl, readUUIDText, tryReadUUIDText functions in
ReadHelpers.
2. Added toUUIDOrNull, toUUIDOrZero functions based on ReadHelpers read
implementations.
3. Updated documentation.
2020-10-25 11:45:29 +03:00
Nikolai Kochetov
19ccce0305
Fix gcc build.
2020-10-20 18:56:05 +03:00
Nikolai Kochetov
295e612343
Fix build and tests.
2020-10-20 16:11:57 +03:00
Nikolai Kochetov
bc58637ec2
Fixing build.
2020-10-19 21:37:44 +03:00
Nikolai Kochetov
139487a1a0
Part 1.
2020-10-17 17:23:37 +03:00
Nikolai Kochetov
959424f28a
Rename block to columns.
2020-10-14 17:04:50 +03:00
Nikolai Kochetov
966b1d6cf5
Rename Block to ColumnsWithTypeAndName.
2020-10-14 16:09:11 +03:00
Nikolai Kochetov
3a17c2a7ac
Rename FunctionArguments to ColumnsWithTypeAndName
2020-10-11 22:20:20 +03:00
Nikolai Kochetov
0df08dcb36
Rename columns() to size().
2020-10-11 21:11:39 +03:00
Nikolai Kochetov
d28325a353
Replace getByPosition to []
2020-10-10 21:24:57 +03:00
Nikolai Kochetov
a7fb2e38a5
Use ColumnWithTypeAndName as function argument instead of Block.
2020-10-09 10:41:28 +03:00
Amos Bird
654245af3c
Fix signedness conversion monotonicity
2020-09-14 18:11:40 +08:00
Amos Bird
4c3c1cdaf3
Fix Nullable String to Enum conversion.
2020-09-07 15:32:44 +08:00
alexey-milovidov
adf50fd774
Merge pull request #13761 from zhang2014/improvement/date_time
...
ISSUES-4006 add precision argument for DateTime type
2020-09-02 05:12:35 +03:00
Artem Zuikov
d304d522cc
Refactoring: rename types to allow change bigint library ( #14219 )
2020-09-01 12:54:50 +03:00
Artem Zuikov
fe5db661ce
fix decimal to float conversion and toDecimal256()
2020-08-26 15:26:12 +03:00
zhang2014
b679b2e30c
ISSUES-4006 fix toDateTime64 with scale 0
2020-08-21 13:16:50 +08:00
zhang2014
ec1572d7be
ISSUES-4006 support parserDateTime32 functions
2020-08-21 13:09:25 +08:00
zhang2014
45cc0778a0
ISSUES-4006 support scale with parserDateTime
2020-08-20 22:41:13 +08:00
zhang2014
edeb983eb0
ISSUES-4006 some refactor
2020-08-20 19:18:29 +08:00
Artem Zuikov
becc186c91
Add support for extended precision integers and decimals ( #13097 )
2020-08-19 14:52:17 +03:00
zhang2014
fb1417db71
ISSUES-4006 try fix test failure
2020-08-16 01:08:03 +08:00
zhang2014
43839a97b6
ISSUES-4006 add factor with DateTime type
2020-08-15 21:29:24 +08:00
alexey-milovidov
be38b0fe75
Merge pull request #13497 from amosbird/tdm
...
Better toDate/toDateTime functions.
2020-08-09 02:14:58 +03:00
Amos Bird
d9de96716a
string to date is not monotonic
2020-08-08 14:30:50 +08:00
Alexey Milovidov
edd89a8610
Fix half of typos
2020-08-08 03:47:03 +03:00
alexey-milovidov
cbe9878e9e
Update FunctionsConversion.h
2020-08-07 22:53:52 +03:00
alexey-milovidov
65b3863a9e
Update FunctionsConversion.h
2020-08-07 22:52:21 +03:00
Amos Bird
9938e1f3f6
Better toDate/toDateTime function.
2020-08-08 03:38:34 +08:00
Azat Khuzhin
4713b59159
Fix CAST(Nullable(String), Enum())
...
The wrapper that is returned from createStringToEnumWrapper() does not
have access to the ColumnNullable (i.e. original column), because it is
converted to nested type in the prepareRemoveNullable().
So add original ColumnNullable into the block in prepareRemoveNullable()
if source type is Nullable and pass this flag to the
createStringToEnumWrapper() to make it know about that fact that last
column in the block is the original ColumnNullable in this case.
And this one looks most sane.
2020-07-26 12:00:24 +03:00
Nikolai Kochetov
e4689ce302
Make IFunction::executeImpl const.
2020-07-21 16:58:07 +03:00
flynn
5816858403
add parseDateTimeBestEffortUS function ( #12028 )
...
* add function parseDateTimeBestEffortUS
* add test
* add doc
Co-authored-by: alexey-milovidov <milovidov@yandex-team.ru>
2020-07-05 21:09:20 +03:00
Alexey Milovidov
1462a66d1e
Fix typos
2020-06-27 22:05:00 +03:00
Alexey Milovidov
15272d9e60
Fix style
2020-06-20 20:05:47 +03:00
Alexey Milovidov
4867934204
Every function in its own file
2020-06-20 18:45:50 +03:00
Artem Zuikov
6af36cb703
CAST keep nullable ( #11733 )
2020-06-18 13:18:28 +03:00
Alexey Milovidov
fae12d5e42
Return NULL or zero when value is not parsed completely in parseDateTimeBestEffortOr* functions
2020-06-14 04:45:03 +03:00
Alexey Milovidov
41bfa8a275
Addition to prev. revision
2020-05-30 19:35:59 +03:00
Alexey Milovidov
326d2f9af8
Fix uninitialized memory in conversion
2020-05-30 19:21:14 +03:00
Vasily Nemkov
403aae9126
Fixed parseDateTime64BestEffort implementation
...
Fixed argument resolution issues.
Added tests and made sure -orNull and -orZero variants alwo work correctly.
2020-05-21 17:21:39 +03:00
Azat Khuzhin
f29e5c60a5
Add const qualifier for IFunction::isInjective()
2020-04-18 01:50:15 +03:00