[
https://issues.apache.org/jira/browse/SPARK-25727?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16650153#comment-16650153
]
Apache Spark commented on SPARK-25727:
--------------------------------------
User 'mgaido91' has created a pull request for this issue:
https://github.com/apache/spark/pull/22726
> 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: [email protected]
For additional commands, e-mail: [email protected]