You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@asterixdb.apache.org by "Till (JIRA)" <ji...@apache.org> on 2019/05/15 02:08:00 UTC

[jira] [Updated] (ASTERIXDB-2566) Missing type functions for use in SQL++

     [ https://issues.apache.org/jira/browse/ASTERIXDB-2566?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Till updated ASTERIXDB-2566:
----------------------------
    Description: 
(Initially reported by AsterixDB user Nick Digeronimo)

The AsterixDB docs seem to be missing type identification functions for some types. For example, there is no "is_date" function. In fact, there are a number of missing type checks for types date, datetime, time, duration, and possibly more. A generic "get_type" method might be helpful to solve this problem.

The type functions are listed on the AsterixDB help page: [https://asterixdb.apache.org/docs/0.9.4/sqlpp/builtins.html#TypeFunctions]

We should have an is_XXX function for each of the supported primitive types plus each of the structured types.

We should also have the suggested get_type function (name TBD), e.g., which would take a value in and return the string name of its type.

  was:
(Initially reported by AsterixDB user Nick Digeronimo)

The AsterixDB docs seem to be missing type identification functions for some types. For example, there is no "is_date" function. In fact, there are a number of missing type checks for types date, datetime, time, duration, and possibly more. A generic "get_type" method might be helpful to solve this problem.

The type functions are listed on the AsterixDB help page: [https://asterixdb.apache.org/docs/0.9.4/sqlpp/builtins.html#TypeFunctions|[http://example.com].|http://example.com]./]

We should have an is_XXX function for each of the supported primitive types plus each of the structured types.

We should also have the suggested get_type function (name TBD), e.g., which would take a value in and return the string name of its type.


> Missing type functions for use in SQL++
> ---------------------------------------
>
>                 Key: ASTERIXDB-2566
>                 URL: https://issues.apache.org/jira/browse/ASTERIXDB-2566
>             Project: Apache AsterixDB
>          Issue Type: Bug
>          Components: DOC - Documentation, FUN - Functions, SQL - Translator SQL++
>    Affects Versions: 0.9.4.1
>            Reporter: Michael J. Carey
>            Assignee: Till
>            Priority: Major
>             Fix For: 0.9.4.2
>
>
> (Initially reported by AsterixDB user Nick Digeronimo)
> The AsterixDB docs seem to be missing type identification functions for some types. For example, there is no "is_date" function. In fact, there are a number of missing type checks for types date, datetime, time, duration, and possibly more. A generic "get_type" method might be helpful to solve this problem.
> The type functions are listed on the AsterixDB help page: [https://asterixdb.apache.org/docs/0.9.4/sqlpp/builtins.html#TypeFunctions]
> We should have an is_XXX function for each of the supported primitive types plus each of the structured types.
> We should also have the suggested get_type function (name TBD), e.g., which would take a value in and return the string name of its type.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)