amorynan commented on code in PR #15966: URL: https://github.com/apache/doris/pull/15966#discussion_r1089860918
########## be/src/vec/functions/array/function_array_element.h: ########## @@ -81,6 +94,79 @@ class FunctionArrayElement : public IFunction { } private: + //=========================== map element===========================// + ColumnPtr _get_mapped_idx(const ColumnArray& key_column, + const ColumnWithTypeAndName& argument) { + if (key_column.get_data().is_column_string()) { + return _mapped_key_string(key_column, argument); + } + return nullptr; Review Comment: using column.compare_at can cover other key types -- 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