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 79101200BF5 for ; Sat, 24 Dec 2016 00:13:00 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 71AD4160B3E; Fri, 23 Dec 2016 23:13: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 E7FB5160B1F for ; Sat, 24 Dec 2016 00:12:59 +0100 (CET) Received: (qmail 94235 invoked by uid 500); 23 Dec 2016 23:12:58 -0000 Mailing-List: contact issues-help@flink.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@flink.apache.org Delivered-To: mailing list issues@flink.apache.org Received: (qmail 94208 invoked by uid 99); 23 Dec 2016 23:12:58 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 23 Dec 2016 23:12:58 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id A7E062C2A69 for ; Fri, 23 Dec 2016 23:12:58 +0000 (UTC) Date: Fri, 23 Dec 2016 23:12:58 +0000 (UTC) From: "Fabian Hueske (JIRA)" To: issues@flink.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (FLINK-4088) Add interface to save and load TableSources MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 23 Dec 2016 23:13:00 -0000 [ https://issues.apache.org/jira/browse/FLINK-4088?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15773864#comment-15773864 ] Fabian Hueske commented on FLINK-4088: -------------------------------------- Sure, I assigned the issue to you and gave you contributor permissions (you can now assign issues to yourself). > Add interface to save and load TableSources > ------------------------------------------- > > Key: FLINK-4088 > URL: https://issues.apache.org/jira/browse/FLINK-4088 > Project: Flink > Issue Type: Improvement > Components: Table API & SQL > Affects Versions: 1.1.0 > Reporter: Fabian Hueske > Assignee: Minudika Malshan > > Add an interface to save and load table sources similar to Java's {{Serializable}} interface. > TableSources should implement the interface to become saveable and loadable. > This could be used as follows: > {code} > val cts = new CsvTableSource( > "/path/to/csvfile", > Array("name", "age", "address"), > Array(BasicTypeInfo.STRING_TYPEINFO, ...), > ... > ) > cts.saveToFile("/path/to/tablesource/file") > // ----- > val tEnv: TableEnvironment = ??? > tEnv.loadTableSource("persons", "/path/to/tablesource/file") > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)