Skip to content
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

Use proper test ranges in feature converter test #143

Merged
merged 6 commits into from
Oct 1, 2018
Merged

Conversation

tovbinm
Copy link
Collaborator

@tovbinm tovbinm commented Sep 29, 2018

Related issues
#115

Describe the proposed solution
This is a continuation of #135 PR by @ajayborra

@tovbinm
Copy link
Collaborator Author

tovbinm commented Sep 29, 2018

@ajayborra please have a look.

@tovbinm tovbinm changed the title Use proper test ranges in feature coverter test Use proper test ranges in feature converter test Sep 29, 2018
@codecov
Copy link

codecov bot commented Sep 29, 2018

Codecov Report

Merging #143 into master will increase coverage by 0.15%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master    #143      +/-   ##
=========================================
+ Coverage   86.25%   86.4%   +0.15%     
=========================================
  Files         299     299              
  Lines        9749    9748       -1     
  Branches      538     537       -1     
=========================================
+ Hits         8409    8423      +14     
+ Misses       1340    1325      -15
Impacted Files Coverage Δ
.../op/features/types/FeatureTypeSparkConverter.scala 99.06% <100%> (+8.32%) ⬆️
...om/salesforce/op/utils/spark/OpSparkListener.scala 97.4% <0%> (-1.3%) ⬇️
...com/salesforce/op/features/FeatureSparkTypes.scala 96.12% <0%> (+0.43%) ⬆️
...ala/com/salesforce/op/features/types/package.scala 52.17% <0%> (+0.72%) ⬆️
...es/src/main/scala/com/salesforce/op/OpParams.scala 89.79% <0%> (+4.08%) ⬆️
.../salesforce/op/features/FeatureBuilderMacros.scala 100% <0%> (+100%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update dc4f527...e44d98a. Read the comment docs.

@ajayborra
Copy link
Contributor

Lgtm @tovbinm , 👍the tuple feeding approch with scala.Function.tupled

(arrType(DoubleType), weakTypeTag[types.Geolocation], arrType(DoubleType)),
(arrType(StringType), weakTypeTag[types.TextList], arrType(StringType)),
(mapType(StringType), weakTypeTag[types.TextMap], mapType(StringType)),
(mapType(DoubleType), weakTypeTag[types.RealMap], mapType(DoubleType)),
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do you need map float, map int, map short, etc as well?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought about it, but I dont think it's that important. Maybe in another PR.

@tovbinm tovbinm merged commit 449b0bc into master Oct 1, 2018
@tovbinm tovbinm deleted the mt/test-ranges branch October 1, 2018 17:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants