You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tajo.apache.org by "Hyunsik Choi (JIRA)" <ji...@apache.org> on 2013/09/29 15:53:23 UTC

[jira] [Commented] (TAJO-215) Catalog should allow compatible types when finding functions

    [ https://issues.apache.org/jira/browse/TAJO-215?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13781379#comment-13781379 ] 

Hyunsik Choi commented on TAJO-215:
-----------------------------------

This problem is also caused when a function is called with NULL parameters. For example, consider regexp_replace as follows:
{code}
select regexp_replace(null, '^AB', 'ab') as result;
{code}

This expression will find a function whose parameter type is (null type, text, text). This call cannot find regexp_replace(text, text, text) function.

> Catalog should allow compatible types when finding functions
> ------------------------------------------------------------
>
>                 Key: TAJO-215
>                 URL: https://issues.apache.org/jira/browse/TAJO-215
>             Project: Tajo
>          Issue Type: Bug
>          Components: catalog
>            Reporter: Hyunsik Choi
>
> Current catalog is strong typed. Given a find request, it only can search for a certain function with the same argument types. However, in many cases, catalog should find functions with compatible parameter types.



--
This message was sent by Atlassian JIRA
(v6.1#6144)