ignite-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pavel Tupitsyn (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (IGNITE-5006) .NET: SQL does not work with F# record types
Date Tue, 18 Apr 2017 10:16:41 GMT

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

Pavel Tupitsyn commented on IGNITE-5006:
----------------------------------------

Backing fields have {{@}} suffix in F#. This symbol is not used in C#. Updated {{BinaryUtils.CleanFieldName}}
to remove this suffix. Tested with records and classes in F#, now everything works out of
the box.

> .NET: SQL does not work with F# record types
> --------------------------------------------
>
>                 Key: IGNITE-5006
>                 URL: https://issues.apache.org/jira/browse/IGNITE-5006
>             Project: Ignite
>          Issue Type: Bug
>          Components: platforms
>    Affects Versions: 1.7
>            Reporter: Pavel Tupitsyn
>            Assignee: Pavel Tupitsyn
>              Labels: .NET
>             Fix For: 2.0
>
>
> The following code returns null results:
> {code}
> type Person = 
>     { 
>         [<QuerySqlField>]
>         id : int; 
>         [<QuerySqlField>]
>         name : String 
>     }
> ...
> cache.QueryFields(new SqlFieldsQuery("from person select id")).GetAll()
> {code}
> F# record fields have {{@}} symbol in the end. We should clean up or escape these.
> {{Person [idHash=59332389, id@=1, name@=John]}}
> Make sure other F#-specific types do not cause problems (tuples, structs, classes, nested
types).



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

Mime
View raw message