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 7D536200C00 for ; Wed, 4 Jan 2017 03:20:05 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 7BE20160B46; Wed, 4 Jan 2017 02:20:05 +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 6F0FF160B43 for ; Wed, 4 Jan 2017 03:20:04 +0100 (CET) Received: (qmail 21174 invoked by uid 500); 4 Jan 2017 02:19: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 21155 invoked by uid 99); 4 Jan 2017 02:19:58 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Jan 2017 02:19:58 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 881DC2C03DB for ; Wed, 4 Jan 2017 02:19:58 +0000 (UTC) Date: Wed, 4 Jan 2017 02:19:58 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: issues@flink.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (FLINK-5280) Extend TableSource to support nested data MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 04 Jan 2017 02:20:05 -0000 [ https://issues.apache.org/jira/browse/FLINK-5280?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15796909#comment-15796909 ] ASF GitHub Bot commented on FLINK-5280: --------------------------------------- Github user wuchong commented on the issue: https://github.com/apache/flink/pull/3039 What about extracting `getDataSet(ExecutionEnvironment)` and `getDataStream(StreamExecutionEnvironment)` to interfaces that called like `DataSetGetter` and `DataStreamGetter`. And we can make `BatchTableSource` extend `TableSource` abstract class and implement `DataSetGetter` interface. Make `StreamTableSource` extend `TableSource` abstract class and implement `DataStreamGetter` interface. And make `BatchStreamTableSource` implement both `DataSetGetter` and `DataStreamGetter`. So that we can use `TableSource` plus `DataSetGetter` where only `BatchTableSource` is expected. For example, the `BatchTableSourceScan` can be changed to like this: ```scala class BatchTableSourceScan( cluster: RelOptCluster, traitSet: RelTraitSet, table: RelOptTable, val tableSource: TableSource[_], val datasetGetter: DataSetGetter) ``` Can this solve our problem ? > Extend TableSource to support nested data > ----------------------------------------- > > Key: FLINK-5280 > URL: https://issues.apache.org/jira/browse/FLINK-5280 > Project: Flink > Issue Type: Improvement > Components: Table API & SQL > Affects Versions: 1.2.0 > Reporter: Fabian Hueske > Assignee: Ivan Mushketyk > > The {{TableSource}} interface does currently only support the definition of flat rows. > However, there are several storage formats for nested data that should be supported such as Avro, Json, Parquet, and Orc. The Table API and SQL can also natively handle nested rows. > The {{TableSource}} interface and the code to register table sources in Calcite's schema need to be extended to support nested data. -- This message was sent by Atlassian JIRA (v6.3.4#6332)