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 4614B200BF3 for ; Thu, 22 Dec 2016 04:00:00 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 44B53160B39; Thu, 22 Dec 2016 03:00:00 +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 8FCD1160B26 for ; Thu, 22 Dec 2016 03:59:59 +0100 (CET) Received: (qmail 10520 invoked by uid 500); 22 Dec 2016 02:59:58 -0000 Mailing-List: contact issues-help@drill.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@drill.apache.org Delivered-To: mailing list issues@drill.apache.org Received: (qmail 10500 invoked by uid 99); 22 Dec 2016 02:59:58 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Dec 2016 02:59:58 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 8A73E2C0059 for ; Thu, 22 Dec 2016 02:59:58 +0000 (UTC) Date: Thu, 22 Dec 2016 02:59:58 +0000 (UTC) From: "Paul Rogers (JIRA)" To: issues@drill.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (DRILL-5152) Enhance the mock data source: better data, SQL access MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 22 Dec 2016 03:00:00 -0000 Paul Rogers created DRILL-5152: ---------------------------------- Summary: Enhance the mock data source: better data, SQL access Key: DRILL-5152 URL: https://issues.apache.org/jira/browse/DRILL-5152 Project: Apache Drill Issue Type: Improvement Components: Tools, Build & Test Affects Versions: 1.9.0 Reporter: Paul Rogers Assignee: Paul Rogers Priority: Minor Drill provides a mock data storage engine that generates random data. The mock engine is used in some older unit tests that need a volume of data, but that are not too particular about the details of the data. The mock data source continues to have use even for modern tests. For example, the work in the external storage batch requires tests with varying amounts of data, but the exact form of the data is not important, just the quantity. For example, if we want to ensure that spilling happens at various trigger points, we need to read the right amount of data for that trigger. The existing mock data source has two limitations: 1. It generates only "black/white" (alternating) values, which is awkward for use in sorting. 2. The mock generator is accessible only from a physical plan, but not from SQL queries. This enhancement proposes to fix both limitations: 1. Generate a uniform, randomly distributed set of values. 2. Provide an encoding that lets a SQL query specify the data to be generated. Example SQL query: {code} SELECT id_i, name_s50 FROM `mock`.employee_10K; {code} The above says to generate two fields: INTEGER (the "_i" suffix) and VARCHAR(50) (the "_s50") suffix; and to generate 10,000 rows (the "_10K" suffix on the table.) -- This message was sent by Atlassian JIRA (v6.3.4#6332)