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

Soham Aurangabadkar commented on SPARK-20782:
---------------------------------------------

Hello, I was looking at this issue. A workaround that according to me could be 
used using existing APIs is: 

{{dataset.storageLevel.equals(StorageLevel.NONE)}}

The reason I think it's accurate is because {{storageLevel}} checks pretty much 
exactly what the suggestion in the issue is. Apologies if I'm mistaken.

What do you'll think? Thanks!

[~jlaskowski] [~cloud_fan] [~maropu]

> Dataset's isCached operator
> ---------------------------
>
>                 Key: SPARK-20782
>                 URL: https://issues.apache.org/jira/browse/SPARK-20782
>             Project: Spark
>          Issue Type: Improvement
>          Components: SQL
>    Affects Versions: 2.3.0
>            Reporter: Jacek Laskowski
>            Priority: Trivial
>
> It'd be very convenient to have {{isCached}} operator that would say whether 
> a query is cached in-memory or not.
> It'd be as simple as the following snippet:
> {code}
> // val q2: DataFrame
> spark.sharedState.cacheManager.lookupCachedData(q2.queryExecution.logical).isDefined
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org

Reply via email to