You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@toree.apache.org by ma...@apache.org on 2016/11/15 04:29:50 UTC

[1/3] incubator-toree git commit: Update test_toree.py

Repository: incubator-toree
Updated Branches:
  refs/heads/master 46fab7690 -> 9b577f19d


Update test_toree.py

Fix not retrieving the element for the test.

Project: http://git-wip-us.apache.org/repos/asf/incubator-toree/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-toree/commit/6ec20e12
Tree: http://git-wip-us.apache.org/repos/asf/incubator-toree/tree/6ec20e12
Diff: http://git-wip-us.apache.org/repos/asf/incubator-toree/diff/6ec20e12

Branch: refs/heads/master
Commit: 6ec20e129c4c063a939ee2bae61da39ba4666c0f
Parents: 2d478dc
Author: Marius van Niekerk <ma...@gmail.com>
Authored: Thu Oct 20 08:13:57 2016 -0400
Committer: mariusvniekerk <ma...@gmail.com>
Committed: Mon Nov 14 19:38:19 2016 -0500

----------------------------------------------------------------------
 test_toree.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-toree/blob/6ec20e12/test_toree.py
----------------------------------------------------------------------
diff --git a/test_toree.py b/test_toree.py
index fe2d02b..10b0a6e 100644
--- a/test_toree.py
+++ b/test_toree.py
@@ -44,7 +44,7 @@ class ToreeScalaKernelTests(jupyter_kernel_test.KernelTests):
                 import ses.implicits._
                 import org.apache.spark.sql.functions._
                 val ds = spark.createDataset(Seq(Foo(1), Foo(2)))
-                ds.agg(sum($"bar")).collect.head"""), 
+                ds.agg(sum($"bar")).collect.head(0)"""), 
           'result': '3'
         },
         {'code': '%showtypes on\n1', 'result': 'Int = 1'},


[2/3] incubator-toree git commit: Added a simple integration test for verifying that case classes and the dataset api work

Posted by ma...@apache.org.
Added a simple integration test for verifying that case classes and the dataset api work


Project: http://git-wip-us.apache.org/repos/asf/incubator-toree/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-toree/commit/2d478dc2
Tree: http://git-wip-us.apache.org/repos/asf/incubator-toree/tree/2d478dc2
Diff: http://git-wip-us.apache.org/repos/asf/incubator-toree/diff/2d478dc2

Branch: refs/heads/master
Commit: 2d478dc2722aa9c47585385a6fd33dacb337bcd9
Parents: 46fab76
Author: Marius van Niekerk <ma...@gmail.com>
Authored: Mon Oct 17 17:08:02 2016 -0400
Committer: mariusvniekerk <ma...@gmail.com>
Committed: Mon Nov 14 19:38:19 2016 -0500

----------------------------------------------------------------------
 test_toree.py | 12 ++++++++++++
 1 file changed, 12 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-toree/blob/2d478dc2/test_toree.py
----------------------------------------------------------------------
diff --git a/test_toree.py b/test_toree.py
index db639e8..fe2d02b 100644
--- a/test_toree.py
+++ b/test_toree.py
@@ -17,6 +17,8 @@
 
 import unittest
 import jupyter_kernel_test
+import textwrap
+
 
 class ToreeScalaKernelTests(jupyter_kernel_test.KernelTests):
     # Required --------------------------------------
@@ -35,6 +37,16 @@ class ToreeScalaKernelTests(jupyter_kernel_test.KernelTests):
     test_statements_execute_result = [
         {'code': '6*7', 'result': '42'},
         {'code': 'sc.parallelize(List(1, 2, 3, 4)).map(_*2).reduce(_+_)', 'result': '20'},
+        {
+            'code': textwrap.dedent("""\
+                case class Foo(bar: Int)
+                val ses = spark
+                import ses.implicits._
+                import org.apache.spark.sql.functions._
+                val ds = spark.createDataset(Seq(Foo(1), Foo(2)))
+                ds.agg(sum($"bar")).collect.head"""), 
+          'result': '3'
+        },
         {'code': '%showtypes on\n1', 'result': 'Int = 1'},
         {'code': '%showtypes off\n1', 'result': '1'}
     ]


[3/3] incubator-toree git commit: Merging github PR #76

Posted by ma...@apache.org.
Merging github PR #76


Project: http://git-wip-us.apache.org/repos/asf/incubator-toree/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-toree/commit/9b577f19
Tree: http://git-wip-us.apache.org/repos/asf/incubator-toree/tree/9b577f19
Diff: http://git-wip-us.apache.org/repos/asf/incubator-toree/diff/9b577f19

Branch: refs/heads/master
Commit: 9b577f19df83dab95419b781de710ea2a393202a
Parents: 46fab76 6ec20e1
Author: mariusvniekerk <ma...@gmail.com>
Authored: Mon Nov 14 23:29:20 2016 -0500
Committer: mariusvniekerk <ma...@gmail.com>
Committed: Mon Nov 14 23:29:20 2016 -0500

----------------------------------------------------------------------
 test_toree.py | 12 ++++++++++++
 1 file changed, 12 insertions(+)
----------------------------------------------------------------------