You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Igor Sapego (JIRA)" <ji...@apache.org> on 2017/06/01 08:23:04 UTC

[jira] [Comment Edited] (IGNITE-3795) CPP: Add test with SQL scalar functions returning java.sql.Date

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

Igor Sapego edited comment on IGNITE-3795 at 6/1/17 8:22 AM:
-------------------------------------------------------------

Added test. Result - exception:
{noformat}
Invalid header [position=12, expected=11, actual=-2]
{noformat}

The value -2 is the header which defined as {{OPTM_MARSH}} in Java. So it seems that {{Date}} values returned in non-binary form by SQL engine. It seems like values are returned in {{java.sql.Date}} which fails to marshal as binary value because binary Date is actually {{java.util.Date}}.


was (Author: isapego):
Added test. Result - exception:
{noformat}
Invalid header [position=12, expected=11, actual=-2]
{noformat}

The value -2 is the header which defined as {{OPTM_MARSH}} in Java. So it seems that {{Date}} values returned in non-binary form by SQL engine. It seems like values are returned in {{java.sql.Date}} which fails to marshal as binary value as binary Date is actually {{java.util.Date}}.

> CPP: Add test with SQL scalar functions returning java.sql.Date
> ---------------------------------------------------------------
>
>                 Key: IGNITE-3795
>                 URL: https://issues.apache.org/jira/browse/IGNITE-3795
>             Project: Ignite
>          Issue Type: Task
>          Components: platforms
>    Affects Versions: 1.7
>            Reporter: Igor Sapego
>            Assignee: Igor Sapego
>              Labels: cpp
>             Fix For: 2.1
>
>
> Some SQL scalar functions as {{CURRENT_DATE}}, {{CURDATE}} return values of type {{java.sql.Date}}. Add tests with SQL request using these functions to C++ to check if they are going to work properly.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)