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 2021/12/02 01:01:00 UTC

[jira] [Commented] (ASTERIXDB-2992) Fix integer types constructors handling of floating-point string

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

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

Commit 8abcf84df9e1dcb94abf978589204de1ca0684da in asterixdb's branch refs/heads/master from Dmitry Lychagin
[ https://gitbox.apache.org/repos/asf?p=asterixdb.git;h=8abcf84 ]

[ASTERIXDB-2992][FUN] Integer type constructors should accept non-integers

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

Details:
- Make integer type constructors accept non-integer
  numbers and convert them to integers
- Add testcases

Change-Id: Iba39eaa04a70cdb6cc50f2399263459197af2820
Reviewed-on: https://asterix-gerrit.ics.uci.edu/c/asterixdb/+/14283
Integration-Tests: Jenkins <je...@fulliautomatix.ics.uci.edu>
Tested-by: Jenkins <je...@fulliautomatix.ics.uci.edu>
Reviewed-by: Dmitry Lychagin <dm...@couchbase.com>
Reviewed-by: Ali Alsuliman <al...@gmail.com>


> Fix integer types constructors handling of floating-point string
> ----------------------------------------------------------------
>
>                 Key: ASTERIXDB-2992
>                 URL: https://issues.apache.org/jira/browse/ASTERIXDB-2992
>             Project: Apache AsterixDB
>          Issue Type: Bug
>          Components: FUN - Functions
>    Affects Versions: 0.9.7
>            Reporter: Dmitry Lychagin
>            Assignee: Dmitry Lychagin
>            Priority: Major
>             Fix For: 0.9.7
>
>
> The integer type constructors need to handle a floating-point string expression similar to a floating-point number expression instead of returning NULL.
> {noformat}tinyint(expr), smallint(expr), int(expr), and bigint(expr)
> e.g tinyint(4.1) and tinyint("4.1"){noformat}



--
This message was sent by Atlassian Jira
(v8.20.1#820001)