flink-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Timo Walther (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (FLINK-4088) Add interface to save and load TableSources
Date Thu, 16 Nov 2017 10:47:00 GMT

    [ https://issues.apache.org/jira/browse/FLINK-4088?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16255111#comment-16255111
] 

Timo Walther commented on FLINK-4088:
-------------------------------------

[~Minudika] what is the status of this issue? If you don't want to work on it anymore, please
unassign it from you.

> 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.4.14#64029)

Mime
View raw message