You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Dongjoon Hyun (JIRA)" <ji...@apache.org> on 2018/10/14 05:12:00 UTC

[jira] [Resolved] (SPARK-25727) makeCopy failed in InMemoryRelation

     [ https://issues.apache.org/jira/browse/SPARK-25727?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dongjoon Hyun resolved SPARK-25727.
-----------------------------------
       Resolution: Fixed
    Fix Version/s: 2.4.0

Issue resolved by pull request 22715
[https://github.com/apache/spark/pull/22715]

> makeCopy failed in InMemoryRelation
> -----------------------------------
>
>                 Key: SPARK-25727
>                 URL: https://issues.apache.org/jira/browse/SPARK-25727
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 2.4.0
>            Reporter: Xiao Li
>            Assignee: Xiao Li
>            Priority: Major
>             Fix For: 2.4.0
>
>
> {code}
>     val data = Seq(100).toDF("count").cache()
>     data.queryExecution.optimizedPlan.toJSON
> {code}
> The above code can generate the following error:
> {code}
> assertion failed: InMemoryRelation fields: output, cacheBuilder, statsOfPlanToCache, outputOrdering, values: List(count#178), CachedRDDBuilder(true,10000,StorageLevel(disk, memory, deserialized, 1 replicas),*(1) Project [value#176 AS count#178]
> +- LocalTableScan [value#176]
> ,None), Statistics(sizeInBytes=12.0 B, hints=none)
> java.lang.AssertionError: assertion failed: InMemoryRelation fields: output, cacheBuilder, statsOfPlanToCache, outputOrdering, values: List(count#178), CachedRDDBuilder(true,10000,StorageLevel(disk, memory, deserialized, 1 replicas),*(1) Project [value#176 AS count#178]
> +- LocalTableScan [value#176]
> ,None), Statistics(sizeInBytes=12.0 B, hints=none)
> 	at scala.Predef$.assert(Predef.scala:170)
> 	at org.apache.spark.sql.catalyst.trees.TreeNode.jsonFields(TreeNode.scala:611)
> 	at org.apache.spark.sql.catalyst.trees.TreeNode.org$apache$spark$sql$catalyst$trees$TreeNode$$collectJsonValue$1(TreeNode.scala:599)
> 	at org.apache.spark.sql.catalyst.trees.TreeNode.jsonValue(TreeNode.scala:604)
> 	at org.apache.spark.sql.catalyst.trees.TreeNode.toJSON(TreeNode.scala:590)
> {code}



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

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