HyukjinKwon commented on a change in pull request #33422:
URL: https://github.com/apache/spark/pull/33422#discussion_r672937934
##########
File path:
sql/core/src/test/java/test/org/apache/spark/sql/JavaDataFrameSuite.java
##########
@@ -523,4 +523,55 @@ public void testUDF() {
.map(row -> row.get(0).toString() +
row.getString(1)).toArray(String[]::new);
Assert.assertArrayEquals(expected, result);
}
+
+ /**
+ * Tests the Java API of Observation and Dataset.observe(Observation,
Column, Column*).
+ */
+ @Test
+ public void testObservation() {
+ Observation namedObservation = new Observation("named");
+ Observation unnamedObservation = new Observation();
+
+ Dataset<Long> df = spark
+ .range(100)
Review comment:
Actually we should keep it with 2 space indentation here same as Scala
side.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]