You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@spark.apache.org by Liu Genie <ge...@outlook.com> on 2020/09/10 01:36:26 UTC

回复: For the same data source in two SQLs, how to read it once?

I think Yang Sun means createTempView, which will cache data in memory instead of writing to disk.

And I sugguest this post should be discussed in user@spark.apache.org mail list.
________________________________
发件人: Gang Li <lg...@gmail.com>
发送时间: 2020年9月9日 17:06
收件人: dev@spark.apache.org <de...@spark.apache.org>
主题: Re: For the same data source in two SQLs, how to read it once?

If use a temporary table, the execution process is shown in the following
figure
<http://apache-spark-developers-list.1001551.n3.nabble.com/file/t3738/tmp1.png>

Is there any way to achieve the following figure?
<http://apache-spark-developers-list.1001551.n3.nabble.com/file/t3738/tmp2.png>

thanks!



--
Sent from: http://apache-spark-developers-list.1001551.n3.nabble.com/

---------------------------------------------------------------------
To unsubscribe e-mail: dev-unsubscribe@spark.apache.org


Re: 回复: For the same data source in two SQLs, how to read it once?

Posted by Gang Li <lg...@gmail.com>.
I will pay attention in the future, thank you very much for your suggestions.



--
Sent from: http://apache-spark-developers-list.1001551.n3.nabble.com/

---------------------------------------------------------------------
To unsubscribe e-mail: dev-unsubscribe@spark.apache.org