asterixdb-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dmitry Lychagin (JIRA)" <>
Subject [jira] [Resolved] (ASTERIXDB-1951) Cleanup type constructor functions
Date Fri, 23 Jun 2017 16:52:00 GMT


Dmitry Lychagin resolved ASTERIXDB-1951.
    Resolution: Fixed

> Cleanup type constructor functions
> ----------------------------------
>                 Key: ASTERIXDB-1951
>                 URL:
>             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,
> - we already have a keyword for creating 'null's 
> - the function only accepts one string value: 'null', while raising error for all other
> The proposal is to remove this type constructor function from the function library

This message was sent by Atlassian JIRA

View raw message