xiaokang commented on code in PR #17344:
URL: https://github.com/apache/doris/pull/17344#discussion_r1125600558


##########
gensrc/script/doris_builtins_functions.py:
##########
@@ -100,7 +104,7 @@
     [['element_at', '%element_extract%'], 'STRING', ['ARRAY_STRING', 
'BIGINT'], 'ALWAYS_NULLABLE'],
 
     # map element
-    [['element_at', '%element_extract%'], 'INT', ['MAP_STRING_INT', 'STRING'], 
'ALWAYS_NULLABLE'],
+    [['element_at', '%element_extract%'], 'V', ['MAP<K, V>', 'K'], 
'ALWAYS_NULLABLE', ['K', 'V']],
 

Review Comment:
   yes, only one is need for each array function. You should add [‘K’] in the 
last entry to specify which types are template type, just like C++ template 
declaration.
   
   `[['array_sort'], 'ARRAY<K>',   ['ARRAY<K>'], '', ['K']]`



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to