You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "qingwei zhong (Jira)" <ji...@apache.org> on 2022/10/27 13:11:00 UTC

[jira] [Commented] (FLINK-29780) how to persist flink table like spark persist dataset

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

qingwei zhong commented on FLINK-29780:
---------------------------------------

spark provides a DataSet.persist() method to cache data. I was wondering if flink has a similar method, or how can I achieve the same results as spark.

> how to persist flink table like spark persist dataset
> -----------------------------------------------------
>
>                 Key: FLINK-29780
>                 URL: https://issues.apache.org/jira/browse/FLINK-29780
>             Project: Flink
>          Issue Type: Bug
>          Components: Table SQL / API
>            Reporter: qingwei zhong
>            Priority: Major
>
> I have code:
> table1 = table...
> table2 = table1....
> table3 = table1...
>  
> How many times would (table1 = table...) be executed?
> Once or twice?
> I think it executes once, but it actually executes twice, so how do I make it only execute once



--
This message was sent by Atlassian Jira
(v8.20.10#820010)