You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@asterixdb.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2020/01/24 18:46:00 UTC

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

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

ASF subversion and git services commented on ASTERIXDB-2566:
------------------------------------------------------------

Commit 00aa061e19ec97454dfaf251b554be37ea9ea709 in asterixdb's branch refs/heads/master from Glenn
[ https://gitbox.apache.org/repos/asf?p=asterixdb.git;h=00aa061 ]

[ASTERIXDB-2566][TYPE][FUN] Added complete set of is_* type functions
and a generic get_type function.

- user model changes: no
- storage format changes: no
- interface changes: no

details:
- Added a is_binary type function.
- Added spatial types functions: is_point, is_line, is_rectangle, is_circle, is_polygon, is_spatial
- Added temporal type functions: is_date, is_datetime, is_time, is_duration, is_interval, is_temporal
- Added a is_uuid type function.
- Added a is_multiset function.
- Added a get_type function.

Change-Id: Icee5f2de7178e27091d457d37603ee6b4c2e0629
Reviewed-on: https://asterix-gerrit.ics.uci.edu/c/asterixdb/+/4303
Tested-by: Jenkins <je...@fulliautomatix.ics.uci.edu>
Integration-Tests: Jenkins <je...@fulliautomatix.ics.uci.edu>
Contrib: Ian Maxon <im...@uci.edu>
Reviewed-by: Ian Maxon <im...@uci.edu>


> 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 Westmann
>            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
(v8.3.4#803005)