Kang
4b743061b4
[feature](function) support type template in SQL function ( #17344 )
...
A new way just like c++ template is proposed in this PR. The previous functions can be defined much simpler using template function.
# map element extract template function
[['element_at', '%element_extract%'], 'E', ['ARRAY<E>', 'BIGINT'], 'ALWAYS_NULLABLE', ['E']],
# map element extract template function
[['element_at', '%element_extract%'], 'V', ['MAP<K, V>', 'K'], 'ALWAYS_NULLABLE', ['K', 'V']],
BTW, the plain type function is not affected and the legacy ARRAY_X MAP_K_V is still supported for compatability.
2023-03-08 10:51:31 +08:00
..
2023-03-07 10:28:56 +08:00
2023-01-17 16:48:02 +08:00
2022-12-07 20:14:13 +08:00
2023-02-17 18:48:27 +08:00
2023-01-29 14:26:08 +08:00
2023-01-18 16:41:41 +08:00
2023-03-08 07:23:56 +08:00
2023-03-07 15:32:52 +08:00
2022-08-19 10:57:55 +08:00
2023-02-23 15:47:17 +08:00
2023-03-01 12:29:20 +08:00
2023-01-19 22:59:29 +08:00
2023-02-10 12:21:27 +08:00
2023-02-28 18:50:36 +08:00
2022-12-30 00:27:51 +08:00
2023-03-02 14:05:44 +08:00
2023-01-13 18:33:40 +08:00
2023-02-14 00:03:19 +08:00
2023-03-01 22:32:41 +08:00
2023-02-19 15:11:54 +08:00
2022-09-29 13:36:30 +08:00
2023-02-16 15:47:23 +08:00
2023-02-28 00:08:29 +08:00
2023-01-10 17:25:06 +08:00
2023-02-17 18:48:27 +08:00
2022-11-08 23:46:53 +08:00
2023-02-28 11:37:07 +08:00
2023-02-24 20:34:55 +08:00
2023-01-30 22:16:08 +08:00
2023-02-20 10:00:25 +08:00
2023-03-03 00:47:46 +08:00
2023-01-09 09:56:26 +08:00
2023-03-02 14:08:52 +08:00
2023-02-19 15:11:54 +08:00
2023-03-08 10:51:31 +08:00
2023-02-19 15:11:54 +08:00
2023-03-01 13:46:56 +08:00
2023-01-13 00:13:24 +08:00
2023-01-17 09:13:56 +08:00
2023-03-07 15:48:22 +08:00
2023-01-20 11:44:24 +08:00
2023-03-04 08:23:50 +08:00
2023-03-06 10:42:01 +08:00
2023-03-07 16:35:37 +08:00
2023-02-22 17:29:37 +08:00
2022-09-19 08:38:17 +08:00
2023-02-28 11:15:32 +08:00
2023-01-18 12:33:20 +08:00
2023-02-06 11:16:39 +08:00
2023-02-20 16:25:52 +08:00
2022-11-22 21:35:18 +08:00
2023-03-07 16:42:23 +08:00
2022-10-10 12:38:32 +08:00
2023-01-09 09:53:11 +08:00
2023-01-14 10:20:07 +08:00
2022-12-16 17:08:29 +08:00
2023-03-07 16:30:41 +08:00
2023-03-01 10:55:40 +08:00
2022-10-04 20:56:22 +08:00
2023-02-23 12:25:10 +08:00
2022-11-22 10:36:12 +08:00
2023-02-17 18:48:27 +08:00
2022-08-06 15:12:08 +08:00
2022-11-22 21:33:10 +08:00
2023-02-08 18:46:06 +08:00
2023-02-17 18:48:27 +08:00
2022-10-26 09:24:46 +08:00
2022-09-27 17:12:52 +08:00
2022-12-13 16:28:41 +08:00
2023-02-17 18:48:27 +08:00
2022-11-30 10:03:58 +08:00
2022-11-28 19:30:32 +08:00
2022-11-30 17:59:13 +08:00
2022-11-28 19:30:32 +08:00
2022-11-30 17:59:13 +08:00
2022-10-01 20:53:04 +08:00
2023-02-17 18:48:27 +08:00
2022-08-27 21:39:09 +08:00
2023-02-13 11:26:08 +08:00
2022-09-29 10:45:17 +08:00
2023-03-07 08:55:38 +08:00
2022-08-15 13:24:57 +08:00
2022-09-29 10:45:17 +08:00
2023-02-17 18:48:27 +08:00