Return-Path: X-Original-To: apmail-ignite-issues-archive@minotaur.apache.org Delivered-To: apmail-ignite-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C9D7D1810D for ; Fri, 9 Oct 2015 10:58:26 +0000 (UTC) Received: (qmail 44069 invoked by uid 500); 9 Oct 2015 10:58:26 -0000 Delivered-To: apmail-ignite-issues-archive@ignite.apache.org Received: (qmail 44042 invoked by uid 500); 9 Oct 2015 10:58:26 -0000 Mailing-List: contact issues-help@ignite.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ignite.apache.org Delivered-To: mailing list issues@ignite.apache.org Received: (qmail 44003 invoked by uid 99); 9 Oct 2015 10:58:26 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Oct 2015 10:58:26 +0000 Date: Fri, 9 Oct 2015 10:58:26 +0000 (UTC) From: "Pavel Tupitsyn (JIRA)" To: issues@ignite.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (IGNITE-1571) .Net: Improve Guid and DateTime reader/writer interface. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/IGNITE-1571?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14950207#comment-14950207 ] Pavel Tupitsyn commented on IGNITE-1571: ----------------------------------------- Agree to revert API changes since we keep specialized methods only for Java interoperability. However, we can't throw exceptions when there is null for value type. This breaks a lot of things. For example Cache.Get() will throw an error if there is no such key, which is incorrect. > .Net: Improve Guid and DateTime reader/writer interface. > -------------------------------------------------------- > > Key: IGNITE-1571 > URL: https://issues.apache.org/jira/browse/IGNITE-1571 > Project: Ignite > Issue Type: Task > Components: interop > Affects Versions: ignite-1.4 > Reporter: Vladimir Ozerov > Assignee: Pavel Tupitsyn > Priority: Critical > Fix For: 1.5 > > > Currently we force user to write Guid and DateTime as nullables. We do this to be more compatible with Java. > But user is more likely to operate on plain types: Guid, Guid[], DateTime, DateTime[]. > We need to add these methods to API, and rename existing ones to "ReadNullableDateTime", etc.. > Note that while trivial to on writer side, it will be harder to implement for readers. Currently we lookup by type ID, which will be equal for the type and it's nullable counterpart. For this reason we probably must lookup by type ID + type or simply by type. -- This message was sent by Atlassian JIRA (v6.3.4#6332)