[
https://issues.apache.org/jira/browse/ASTERIXDB-1901?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15999606#comment-15999606
]
Yingyi Bu commented on ASTERIXDB-1901:
--------------------------------------
[~idleft] where is your defined type TextType used?
1. The compiler tries to get everything as closed as possible.
2. What's the query plan?
> UDF fails at constant parameter
> -------------------------------
>
> Key: ASTERIXDB-1901
> URL: https://issues.apache.org/jira/browse/ASTERIXDB-1901
> Project: Apache AsterixDB
> Issue Type: Bug
> Reporter: Xikui Wang
> Assignee: Xikui Wang
>
> If the declared datatype for UDF input is a open type, UDF will fail when
> given constant record (which has a closed datatype implicitly)
> Execute following query with default lib installed can reproduce this issue:
> {noformat}
> drop dataverse externallibtest if exists;
> create dataverse externallibtest;
> use dataverse externallibtest;
> create type TextType if not exists as open {
> id: int32,
> text: string
> };
> testlib#toUpper({"id":1, "text":"lower text"})
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)