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 42323200CDA for ; Fri, 4 Aug 2017 19:41:03 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 4084516DDE1; Fri, 4 Aug 2017 17:41:03 +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 81BE016DDC7 for ; Fri, 4 Aug 2017 19:41:02 +0200 (CEST) Received: (qmail 6114 invoked by uid 500); 4 Aug 2017 17:41:01 -0000 Mailing-List: contact dev-help@orc.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@orc.apache.org Delivered-To: mailing list dev@orc.apache.org Received: (qmail 6100 invoked by uid 99); 4 Aug 2017 17:41:01 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 Aug 2017 17:41:01 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 049A3C2A82 for ; Fri, 4 Aug 2017 17:41:01 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.604 X-Spam-Level: ** X-Spam-Status: No, score=2.604 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, KAM_NUMSUBJECT=0.5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001, SUBJ_ALL_CAPS=1.625] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=iq80-com.20150623.gappssmtp.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id UEE8ueWygiVV for ; Fri, 4 Aug 2017 17:41:00 +0000 (UTC) Received: from mail-pg0-f45.google.com (mail-pg0-f45.google.com [74.125.83.45]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 98B685FD38 for ; Fri, 4 Aug 2017 17:40:59 +0000 (UTC) Received: by mail-pg0-f45.google.com with SMTP id u185so10582126pgb.1 for ; Fri, 04 Aug 2017 10:40:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iq80-com.20150623.gappssmtp.com; s=20150623; h=from:content-transfer-encoding:mime-version:subject:date:references :to:in-reply-to:message-id; bh=TtnGtmnfRzyQKbMvpSVBekMiYCGfBT7QmdizPWqySEQ=; b=mZUcWGUAcG7U00xjdLn32dBZaTLTo9tK0rOH099ULvgNbC70etZ7+vqKbU7JjEcKAr vZWYHXcnN0ABKEWgBvui/CjmKHiR/wOfstsvx7yZXf6duvQ6JuisIvNmX7brTBaDhGyG BdN3XPMb2CT5ZVRyLdpxVybR/0tExyO4R/B2vzqP2GKCkq7DglFpZeEa8MkAreUD6r3V rnOWK/QSXgTnIcbOeMmVaAUcKcX0qVbegoPqPnmu8IJPXeeH5lUPFwwPJUNw1sz3yw4+ tMu6mhmoDGkosC539V+yfidsyx2RGiF6AhKUOJHTEo3bZjmZiqNcbGRW/3XFe3TorQpN BoBw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:content-transfer-encoding:mime-version :subject:date:references:to:in-reply-to:message-id; bh=TtnGtmnfRzyQKbMvpSVBekMiYCGfBT7QmdizPWqySEQ=; b=gDqnIWfKmsnFhHreNnMzhvNcaXeqoUTCYrJbkQcfgf/q5ZB74+BBuLYLyYb1pl8p8n N03QlVr2B4t95cPHNS3ogLPNSR1SlE5ZpD2Deiy4o+zLLgskeZNLWy9GHhThuD3IUHBP D+xGdZZ8i1yLI9oyA2mPX+8Pef2jNcJdg882EwB7GcbZZG6NvZCNBjbyvDJ5NF37nFzs HYVobTYYsjQGQN/opX4GpVh0wI9GircYa9dD3C+6AM54GSSucOVsOK7XSpQHLN0h3R00 GXu3dtkz14qcBkUf80mkPvKFFu0g/ieX9uGj/vTuY92nVC37/gsLqPRh2NNL0bMhd2yE Hx8A== X-Gm-Message-State: AIVw112RwNof4P1a5a81NA2wO6yLMVNEnUbd8iYPmfux7e3S/0kXvnKa YyklVXHucHE1cbkcZDJTHA== X-Received: by 10.98.152.77 with SMTP id q74mr3279924pfd.40.1501868458318; Fri, 04 Aug 2017 10:40:58 -0700 (PDT) Received: from ?IPv6:2620:10d:c081:1110::13b4? ([2620:10d:c090:180::1:d7ec]) by smtp.gmail.com with ESMTPSA id y2sm3474805pfy.119.2017.08.04.10.40.56 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 04 Aug 2017 10:40:57 -0700 (PDT) From: Dain Sundstrom Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Subject: Re: [DISCUSS] ORC 2.0 Date: Fri, 4 Aug 2017 10:40:56 -0700 References: To: dev@orc.apache.org In-Reply-To: Message-Id: X-Mailer: Apple Mail (2.3273) archived-at: Fri, 04 Aug 2017 17:41:03 -0000 +1 to all of the ideas If we are cool with incompatible changes=E2=80=A6 * Allow dictionary for VARBINARY * Disallow old encodings in new files (e.g., no v1) * Fix DATE encoding epoch * Rearrange stripe so index is next to footer so a single IOP can get = all data * Change metastore properties so there is a logical mapping from column = names to physical column identifiers so columns can be renamed * New timestamp encoding with fixed size per file.. similar to decimal * For compression like zstd, we may want to ship a compression = dictionary for a stream Stuff we could do today * A flag that says if CHAR or VHARCHAR contain any multi byte = characters (isAsciiOnly) * Max character count for CHAR or VARCHAR (so we don=E2=80=99t need to = check length for schema changes) * Max length for VARBINARY (easier to estimate memory usage) * Truncated MIN/MAX for VARBINARY/CHAR/VARCHAR For the new encodings, we should pick encodings that play well with = vectorization which is coming in Java 10 (Java 9 also has vastly = improved auto vectorization). -dain > On Aug 4, 2017, at 9:29 AM, Owen O'Malley = wrote: >=20 > All, > We've started the process of updating the encodings for ORC. These > changes are going to extend the format in ways that aren't forward > compatible. (eg. The ORC 1.4 readers won't be able to read the new = format.) >=20 > The changes that I've heard about are: > * Decimal encoding - this will like be separated in to two categories > + precision <=3D 18 > + precision > 18 > In both cases the precision and scale will be fixed for the entire = file > rather than per value. > * a new Float/Double encoding > * a new RLE encoding >=20 > Are there other encodings that we should consider adding? >=20 > We haven't made forward incompatible changes in a while. Currently the = ORC > Writer can write either: > * Hive 0.11 ORC files > * Hive 0.12 ORC files >=20 > So I'd like to propose that we add a new ORC 2.0 file version and all = of > these changes need to be so tagged. >=20 > The new ORC writers will maintain the ability to write the old = versions of > the files (Hive 0.11 ORC and Hive 0.12 ORC) as well as the ORC 2.0 = files. > The new reader will automatically read all three versions. >=20 > Thoughts? >=20 > Owen