Commit graph

37 commits

Author SHA1 Message Date
김선우
6b40acabbc Add support for sqlite_version() scalar function 2024-09-16 18:38:42 +09:00
JeanArhancet
d03a734f21 feat: add sign function 2024-09-15 14:57:01 +02:00
김선우
fc07ca9d73 Add support for concat_ws 2024-09-14 23:47:45 +09:00
jussisaurio
0839211a49 Pass FuncCtx to Insn::Function to keep track of arg count 2024-09-14 12:38:14 +03:00
Rajiv Harlalka
6684fb46e4 FEAT: Implement the unixepoch function
Signed-off-by: Rajiv Harlalka <rajivharlalka009@gmail.com>
2024-08-30 20:27:58 +05:30
Kim Seon Woo
8bb2a48cb6 Add support for nullif scalar function 2024-08-20 18:36:06 +02:00
JeanArhancet
b6c720c90a feat: add quote function 2024-08-17 09:28:14 +02:00
Kim Seon Woo
48d3c05fb0 Rebase 2024-08-16 21:40:30 +09:00
Pekka Enberg
c9c0d2808c Merge 'Add support for ifnull scalar function' from Kim Seon Woo
Add support for `ifnull` scalar function

### EXPLAIN SELECT ifnull(null, 20);
![image](https://github.com/user-attachments/assets/e367638f-9d70-4dfc-989d-7290b842c2ec)

### Related issue
https://github.com/penberg/limbo/issues/144

Closes #290
2024-08-16 14:37:08 +03:00
Pekka Enberg
ba3acedbc8 Merge 'Add support for substr scalar function' from Kim Seon Woo
Add support for `substr` scalar function. We can reuse the `substring` logic which is already implemted.

## Related issue
https://github.com/penberg/limbo/issues/144

Closes #289
2024-08-16 14:36:55 +03:00
김선우
8fbcd10e0e Add support for ifnull scalar function 2024-08-16 09:25:04 +09:00
김선우
27d9af2bf4 Add support for substr scalar function 2024-08-16 08:26:42 +09:00
김선우
77c3d130f3 Add char function support 2024-08-16 06:26:06 +09:00
김선우
aff13de125 Nit 2024-08-15 18:50:40 +09:00
김선우
3fa3c5c002 Add substr scala function 2024-08-15 18:27:18 +09:00
JeanArhancet
552090cb29 feat: add json support 2024-08-04 10:54:27 +02:00
sonhmai
789ae4becf feat: add time() scalar function partial support without modifier #158 2024-08-01 13:06:07 +07:00
macroexpansion
918b99b7a3 feat: add RTRIM(X) and RTRIM(X,Y) scalar function 2024-07-28 21:17:53 +07:00
macroexpansion
750f18be35 feat: add ltrim scalar function 2024-07-27 19:46:27 +07:00
Ethan Niser
aa6531f802 add unicode scalar function 2024-07-25 10:05:41 -07:00
Ethan Niser
07d6ebef24 rename SingleRow -> Scalar 2024-07-24 08:53:47 -07:00
jussisaurio
588ab1af06 Run formatting and enforce formatting in CI 2024-07-23 23:14:36 +03:00
gandeevanr
7bb3412e66 added compatibility tests for date 2024-07-23 09:19:17 -07:00
gandeevanr
871fae3286 Implement the Date() method 2024-07-23 09:19:08 -07:00
Brayan Jules
c227001737 support handling functions with the same name but different parameters number 2024-07-22 17:02:36 -04:00
Brayan Jules
dde00c3bc5 implementation of scalar functions min and max 2024-07-22 17:02:36 -04:00
Bennett Clement
865b3a04e9 Implement orderby translation 2024-07-22 00:27:46 +08:00
JeanArhancet
50c12d24c8 feat: add length scalar function 2024-07-21 16:30:40 +02:00
JeanArhancet
569322446a feat: add round scalar function 2024-07-21 10:29:30 +02:00
JeanArhancet
fd5dd4f3e7 feat: add trim scalar function 2024-07-20 11:46:37 +02:00
JeanArhancet
6a5d6847c0 feat: add random function 2024-07-19 17:56:01 +02:00
Brayan Jules
73c8fc23ba implementation of scalar functions upper and lower 2024-07-19 00:38:12 -04:00
Brayan Jules
b7c08b8fd5 feat: abs func initial implementation 2024-07-17 22:55:41 -04:00
Bennett Clement
2f738e0c8b Implement like function 2024-07-16 15:23:52 +08:00
jussisaurio
851aea212d add coalesce(), refactor/rename add_label() 2024-07-13 23:03:56 +03:00
Pekka Enberg
f4369c873f Simplify AggFinal emission in translate_select() 2024-07-04 12:21:27 +03:00
Pekka Enberg
e988ca0129 Consolidate AggregateFunction and AggFunc enums 2024-07-04 12:19:17 +03:00