[
https://issues.apache.org/jira/browse/ASTERIXDB-1951?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Dmitry Lychagin closed ASTERIXDB-1951.
--------------------------------------
> Cleanup type constructor functions
> ----------------------------------
>
> Key: ASTERIXDB-1951
> URL: https://issues.apache.org/jira/browse/ASTERIXDB-1951
> Project: Apache AsterixDB
> Issue Type: Improvement
> Components: FUN - Functions
> Reporter: Dmitry Lychagin
>
> 1) Currently primitive type constructor functions behavior is inconsistent
> when input value has the same type as the constructed type.
> Constructor functions for 'string' and 'binary' types allow input value to be
> 'string'/'binary' and just return it as is, while other functions raise type
> mismatch exception.
> We should make sure that all constructor functions for primitive types pass
> through values of their respective types.
> 2) Current implementation for 'null' type constructor function is incorrect.
> It returns 'missing' instead of 'null'. Moreover it's unclear whether this
> function is necessary at all, because
> - we already have a keyword for creating 'null's
> - the function only accepts one string value: 'null', while raising error for
> all other strings.
> The proposal is to remove this type constructor function from the function
> library
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)