Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 76643200C1D for ; Thu, 16 Feb 2017 22:40:49 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 7244F160B61; Thu, 16 Feb 2017 21:40:49 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id BC9E9160B52 for ; Thu, 16 Feb 2017 22:40:48 +0100 (CET) Received: (qmail 50172 invoked by uid 500); 16 Feb 2017 21:40:47 -0000 Mailing-List: contact dev-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 dev@ignite.apache.org Received: (qmail 50161 invoked by uid 99); 16 Feb 2017 21:40:47 -0000 Received: from mail-relay.apache.org (HELO mail-relay.apache.org) (140.211.11.15) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Feb 2017 21:40:47 +0000 Received: from mail-qk0-f182.google.com (mail-qk0-f182.google.com [209.85.220.182]) by mail-relay.apache.org (ASF Mail Server at mail-relay.apache.org) with ESMTPSA id 63A251A0143 for ; Thu, 16 Feb 2017 21:40:47 +0000 (UTC) Received: by mail-qk0-f182.google.com with SMTP id s186so28745316qkb.1 for ; Thu, 16 Feb 2017 13:40:47 -0800 (PST) X-Gm-Message-State: AMke39k8hK95cMVqwKiDFWBnjytpsZHRQf3f5rM9lEBUNGQ7pdUZnU/gDr6gMu0OoxNUkaM499MaGRnAQrU34/ir X-Received: by 10.55.89.196 with SMTP id n187mr4218264qkb.17.1487281246372; Thu, 16 Feb 2017 13:40:46 -0800 (PST) MIME-Version: 1.0 Received: by 10.237.62.165 with HTTP; Thu, 16 Feb 2017 13:40:05 -0800 (PST) In-Reply-To: References: From: Dmitriy Setrakyan Date: Thu, 16 Feb 2017 13:40:05 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: DML data streaming To: dev@ignite.apache.org Content-Type: multipart/alternative; boundary=001a114c977e5f341c0548aca68a archived-at: Thu, 16 Feb 2017 21:40:49 -0000 --001a114c977e5f341c0548aca68a Content-Type: text/plain; charset=UTF-8 Vladimir, I am not sure I understand your point. The value type name should be the table name, no? On Thu, Feb 16, 2017 at 12:13 AM, Vladimir Ozerov wrote: > Dima, > > At this point we require the following additional data which is outside of > standard SQL: > - Key type > - Value type > - Set of key columns > > I do not know yet how we will define these values. At the very least we can > calculate them automatically in some cases. For "keyFieldName" and > "valFieldName" things are easier, as we can always derive them from table > definition. > > Example 1 - primitives: > > CREATE TABLE ( > *pk_id* BIGINT PRIMARY KEY, > *val* BIGINT > ) > > keyFieldName = "*pk_id*", valFieldName = "*val*" > > Example 2 - composites: > > CREATE TABLE ( > *pk_id* BIGINT PRIMARY KEY, > val1 BIGINT, > val2 VARCHAR > ) > > keyFieldName = "*pk_id*", valFieldName = null (because value is complex and > is composed of two attributes). > > Vladimir. > > > On Wed, Feb 15, 2017 at 11:42 PM, Dmitriy Setrakyan > > wrote: > > > On Wed, Feb 15, 2017 at 4:28 AM, Vladimir Ozerov > > wrote: > > > > > Ok, let's put aside current fields configuration, I'll create separate > > > thread for it. As far as _KEY and _VAL, proposed change is exactly > about > > > mappings: > > > > > > class QueryEntity { > > > ... > > > String keyFieldName; > > > String valFieldName; > > > ... > > > } > > > > > > The key thing is that we will not require users to be aware of our > system > > > columns. Normally user should not bother about existence of hidden _KEY > > and > > > _VAL columns. Instead, we just allow them to optionally reference the > > whole > > > key and/or val through predefined name. > > > > > > > > Vladimir, how will it work from the DDL perspective. Let's say whenever > > user wants to create a table in Ignite? > > > --001a114c977e5f341c0548aca68a--