Commit Graph

15 Commits

Author SHA1 Message Date
Jordi Villar
09cf421940 Fix tumble[Start,End] and hop[Start,End] for resolutions bigger than a day 2024-04-16 17:54:52 +02:00
Alexey Milovidov
3698c0c2cf Fix build 2024-03-21 02:46:03 +01:00
Alexey Milovidov
97aca12830 Fix crash in window view 2024-03-18 12:58:03 +01:00
Alexey Milovidov
8434f04975 Fix style 2024-03-18 12:40:49 +01:00
Alexey Milovidov
9065f34534 Fix infinite loop in function hop 2024-03-18 12:27:15 +01:00
Alexey Milovidov
c192a448d0 Update to clang-19 2024-02-27 14:37:21 +01:00
Robert Schulze
72b9d75a84
Add compat setting for non-const timezones
SQL function toTimezone() converts a Date or DateTime into another
timezone. The problem is that the timezone is part of the Date /
DateTime type but not part of the internal representation (value). This
led to the fact that toTimeZone() wqith non-const timezones produced
wrong and misleading results until #48471 (shipped with v23.4) enforced
a const timezone.

Unfortunately, this PR also broke existing table definitions with
non-const timezones, e.g. in ALIAS expressions. So while #48471
addressed the issue appropriately, it is really backwards-incompatible.

This PR adds a setting to toggle the behavior and makes it also part of
the compatibility profile.
2023-06-10 16:56:42 +00:00
Alexander Tokmakov
70d1adfe4b
Better formatting for exception messages (#45449)
* save format string for NetException

* format exceptions

* format exceptions 2

* format exceptions 3

* format exceptions 4

* format exceptions 5

* format exceptions 6

* fix

* format exceptions 7

* format exceptions 8

* Update MergeTreeIndexGin.cpp

* Update AggregateFunctionMap.cpp

* Update AggregateFunctionMap.cpp

* fix
2023-01-24 00:13:58 +03:00
Robert Schulze
655233e1c5
Add convenience typedefs for Date/Date32/DateTime/DateTime64 columns 2022-10-24 16:55:41 +00:00
Alexander Tokmakov
4175f8cde6 abort instead of __builtin_unreachable in debug builds 2022-10-07 21:49:08 +02:00
Li Yin
4088c0a7f3 Automated function registration
Automated register all functions with below naming convention by
iterating through the symbols:
void DB::registerXXX(DB::FunctionFactory &)
2022-07-29 15:39:50 +08:00
Vxider
407c14251a simplify code 2022-05-04 20:56:09 +08:00
zvonand
d8b40e7deb basic add[...]seconds added
TODO: fix DT64 scale resolution when input and func's scale are not the
same
2022-02-09 10:28:15 +03:00
vxider
d021e13b8c rename window function name 2021-12-10 09:59:50 +00:00
vxider
52fa82b4d4 rename window-view function to time window function 2021-12-10 09:43:44 +00:00