Github user cloud-fan commented on a diff in the pull request:
https://github.com/apache/spark/pull/11931#discussion_r57308998
--- Diff:
repl/scala-2.11/src/test/scala/org/apache/spark/repl/ReplSuite.scala ---
@@ -381,4 +381,13 @@ class ReplSuite extends SparkFunSuite {
assertDoesNotContain("error:", output)
assertDoesNotContain("Exception", output)
}
+
+ test("define case class and create Dataset together") {
+ val output = runInterpreter("local-cluster[1,1,1024]",
+ """
+ |case class A(value: Int);
sqlContext.createDataset(Seq(A(1)))(newProductEncoder[A])
--- End diff --
We should use `Seq(A(1)).toDS()` here, but it exposes another bug of our
spark shell: we can't find implicit for `DatasetHolder`. Will file a JIRA later.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]