-
Notifications
You must be signed in to change notification settings - Fork 234
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add unit tests #99
Add unit tests #99
Conversation
@@ -89,7 +89,7 @@ class MixedDataset(sqlCtx: SQLContext) { | |||
Dataset[(RawPanda, CoffeeShop)] = { | |||
//tag::joinWith[] | |||
val result: Dataset[(RawPanda, CoffeeShop)] = pandas.joinWith(coffeeShops, | |||
$"zip" === $"zip") | |||
pandas("zip") === coffeeShops("zip")) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Below log is the reason I need to change as above:
[info] - self join *** FAILED ***
[info] org.apache.spark.sql.AnalysisException: Reference 'zip' is ambiguous, could be: zip#178, zip#195.;
[info] at org.apache.spark.sql.catalyst.plans.logical.LogicalPlan.resolve(LogicalPlan.scala:287)
val result: Dataset[(RawPanda, RawPanda)] = pandas.joinWith(pandas, | ||
$"zip" === $"zip") | ||
val result: Dataset[(RawPanda, RawPanda)] = pandas.as("l").joinWith(pandas.as("r"), | ||
$"l.zip" === $"r.zip") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ditto
Codecov Report
@@ Coverage Diff @@
## master #99 +/- ##
==========================================
+ Coverage 44.76% 48.48% +3.71%
==========================================
Files 39 33 -6
Lines 994 959 -35
Branches 35 21 -14
==========================================
+ Hits 445 465 +20
+ Misses 549 494 -55 Continue to review full report at Codecov.
|
Fix part of #64.
Finish the rest of the unit tests of WordCountTest, AccumulatorsTest, and MixedDatasetSuite.
In the same time, I add comment mark to ignore coverage of the main method.