Commit Graph

391 Commits

Author SHA1 Message Date
Yakov Olkhovskiy
63619b5935 allow IPv6 to UInt128 conversion and binary arithmetic 2023-12-09 17:57:32 +00:00
Robert Schulze
e2b25aab0c
Fixups, pt. II 2023-11-15 15:53:38 +00:00
Alexey Milovidov
9ed47749de
Merge pull request #56644 from evillique/fix-cast-nullable-enum-to-string
Fix conversion from `Nullable(Enum)` to `Nullable(String)`
2023-11-13 02:48:34 +01:00
Nikolay Degterinsky
d3ac896131 Fix conversion from Nullable(Enum) to Nullable(String) 2023-11-12 19:02:42 +00:00
Alexey Milovidov
8c253b9e3e Remove C++ templates 2023-11-10 05:25:02 +01:00
Robert Schulze
8896134531
Cleanup IDataType convenience functions 2023-11-06 13:25:32 +00:00
Andrey Zvonov
2da12ec291
Update FunctionsConversion.h 2023-10-27 01:13:52 +02:00
zvonand
35baf7792d cleanup after rebase, add [[unlikely]] 2023-10-26 23:56:45 +02:00
zvonand
0766c73aab Rename date_time_overflow_mode -> date_time_overflow_behavior, moved it to format settings 2023-10-25 23:11:13 +02:00
zvonand
5b86e8c714 updated after review 2023-10-25 23:10:58 +02:00
zvonand
2f3695add8 Introduce setting for dt overflow exception
Added tests and docs
2023-10-25 23:10:24 +02:00
Salvatore Mesoraca
6b7b3a641f
Fix more fuzzying issues 2023-10-24 13:36:56 +02:00
Salvatore Mesoraca
22ae8731f2
Handle the case when bool serialization generates incorrect values on failure
Fix issue found by fuzzer
2023-10-24 13:36:55 +02:00
Salvatore Mesoraca
fa76a88c4f
Revert "Revert "Fix issues in accurateCastOrNull""
This reverts commit 71d37d64ab.
2023-10-24 13:36:52 +02:00
robot-clickhouse
63243fbc03
Merge pull request #54480 from amosbird/fix_54406
Fix aggregate projections with normalized states
2023-09-12 13:43:41 +02:00
Amos Bird
667426f1f2
DataTypeAggregateFunction::strictEquals 2023-09-12 03:54:19 +08:00
Amos Bird
9e56cff588
Better lambda capture 2023-09-12 02:49:27 +08:00
Yarik Briukhovetskyi
97f4625037
Merge pull request #54443 from yariks5s/non_const_timezone_fixup
ToString() performance improvement and code cleanup
2023-09-11 10:50:56 +03:00
Amos Bird
fb0f9ff565
Fix aggregate projections with normalized states 2023-09-10 03:21:22 +08:00
Alexey Milovidov
71d37d64ab
Revert "Fix issues in accurateCastOrNull" 2023-09-09 06:37:02 +03:00
Yarik Briukhovetskyi
12ce57369b
Update FunctionsConversion.h 2023-09-08 15:36:33 +02:00
yariks5s
66479b6966 code cleanup and performance improvement 2023-09-08 10:54:25 +00:00
Robert Schulze
7fef4c8cb6
Merge pull request #53680 from yariks5s/todatatime-non-const-data
Support non-constant timezone arguments in toString() and formatDateTime()
2023-09-07 22:11:17 +02:00
yariks5s
5afca8a903 optimized toString() 2023-09-07 12:41:01 +00:00
yariks5s
0c802df855 small improvement 2023-09-06 13:33:11 +00:00
Salvatore Mesoraca
f61390e12c
Fix style issue 2023-09-06 08:42:45 +02:00
Salvatore Mesoraca
058630481a
Re-throw exceptions that are not related to bool parsing errors 2023-09-05 18:37:10 +02:00
Salvatore Mesoraca
1d3e28d301
Fix unrelated format issues that clang-format complained about 2023-09-05 18:37:10 +02:00
Salvatore Mesoraca
fcff853dcf
Return Null instead of default in accurateCastOrNull for invalid IPs 2023-09-05 18:37:09 +02:00
Salvatore Mesoraca
393667dc39
accurateCastOrNull must not throw when casting arbitrary string to Bool
Fix #38585
2023-09-05 18:37:03 +02:00
Yarik Briukhovetskyi
7f4fa192c5
Merge branch 'ClickHouse:master' into todatatime-non-const-data 2023-09-05 12:48:56 +03:00
yariks5s
767cac44da minor requests 2023-09-05 08:13:12 +00:00
yariks5s
033970716e fixed tests 2023-09-04 13:30:24 +00:00
Yarik Briukhovetskyi
1d270fca28
Updated FunctionsConversion.h 2023-09-01 18:30:39 +02:00
Yarik Briukhovetskyi
278cc494a2
Updated FunctionsConversion.h 2023-09-01 17:40:04 +02:00
yariks5s
1e01aa917a Updated FunctionsConversion.h 2023-09-01 14:18:29 +00:00
yariks5s
c9f1ff03db Minor fixes 2023-09-01 14:14:00 +00:00
yariks5s
0c9653dac5 implemented for formatDateTime and toString 2023-09-01 14:01:06 +00:00
yariks5s
c11ed5feb4 support for non-const timezone arguments/strings 2023-08-22 10:57:58 +00:00
Austin Kothig
6b42975d33
Change BE-UUID to work the same as LE-UUID. Included high and low getters to provide cleaner code when accessing undertype. 2023-08-18 08:19:46 -07:00
zvonand
490554eb4f simplify 2023-08-01 18:29:44 +02:00
zvonand
9ab875f5ad add explicit nullptr for now 2023-08-01 11:38:15 +02:00
Andrey Zvonov
99cd8f9ba9
Merge branch 'master' into zvonand-float-parsing 2023-07-31 23:43:24 +03:00
zvonand
2088f846ad update as per reviews 2023-07-31 16:26:18 +02:00
zvonand
0ff0a4e41f diverge parsing methods 2023-07-30 19:42:10 +02:00
Dmitry Kardymon
407a7e3cc5 Edit assert message 2023-06-30 09:55:55 +00:00
Dmitry Kardymon
8af96f7a17 Add uuid to uint128 converting 2023-06-30 09:49:29 +00:00
Yakov Olkhovskiy
09806bc363
Merge branch 'master' into cast-ipv6-to-ipv4 2023-06-23 10:53:46 -04:00
zvonand
4155d13d69 merge master and resolve conflict 2023-06-16 02:20:32 +02:00
Robert Schulze
128e8c20d5
Merge pull request #50709 from arenadata/ADQM-867
Added numeric arguments support to some Date/DateTime conversion functions
2023-06-12 17:08:14 +02:00