Skip to content

Implement ML Features #381. SQLTransformer class and testcase #781

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

Merged
merged 16 commits into from
Jan 15, 2021

Conversation

ramanathanv
Copy link
Contributor

Hi,
I am creating this draft pull request that implements the basic methods in SQLTransformer class along with Test cases.
This is related to "Implement ML Features" #381

@dnfadmin
Copy link

dnfadmin commented Nov 20, 2020

CLA assistant check
All CLA requirements met.

@ramanathanv ramanathanv marked this pull request as ready for review November 20, 2020 16:24
@ramanathanv
Copy link
Contributor Author

Hi @GoEddie . I have implemented your review comments and have added TransformSchema() and GetStatement() in SQLTransformer class.

@ramanathanv ramanathanv reopened this Nov 24, 2020
@ramanathanv
Copy link
Contributor Author

Closed by mistake!

Copy link
Contributor

@GoEddie GoEddie left a comment

Choose a reason for hiding this comment

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

Looks good, a couple of small things

Copy link
Collaborator

@Niharikadutta Niharikadutta left a comment

Choose a reason for hiding this comment

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

Added a few comments @ramanathanv . Thanks!

@ramanathanv
Copy link
Contributor Author

@GoEddie , @Niharikadutta . Thank you for the review comments! I have implemented them in the commit now.

Copy link
Collaborator

@Niharikadutta Niharikadutta left a comment

Choose a reason for hiding this comment

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

A few nits, but otherwise LGTM. Thanks @ramanathanv !

@ramanathanv
Copy link
Contributor Author

Hi @GoEddie , @Niharikadutta . I have implemented the code review fixes. But I notice that the build fails and I guess it is not due to the code change. Can you please help me verify?

@Niharikadutta
Copy link
Collaborator

Hi @GoEddie , @Niharikadutta . I have implemented the code review fixes. But I notice that the build fails and I guess it is not due to the code change. Can you please help me verify?

@ramanathanv Yes this is a known issue that occurs intermittently and is being tracked in #773 . I have re-triggered this pipeline to re-run all the tests. Thanks!

@ramanathanv
Copy link
Contributor Author

@ramanathanv Yes this is a known issue that occurs intermittently and is being tracked in #773 . I have re-triggered this pipeline to re-run all the tests. Thanks!

Thanks @Niharikadutta and @GoEddie . The build has passed all checks now. Please let me know if there is something pending from my end for this pull request to be accepted.

@GoEddie
Copy link
Contributor

GoEddie commented Dec 8, 2020

There is one comment left to complete (adding a short summary of the test) and then it looks good to me:

https://github.com/dotnet/spark/pull/781/files/4fcda8904d374c52fbb97dbf7618145d0a15ca4e#r535114596

@ramanathanv
Copy link
Contributor Author

There is one comment left to complete (adding a short summary of the test) and then it looks good to me:

https://github.com/dotnet/spark/pull/781/files/4fcda8904d374c52fbb97dbf7618145d0a15ca4e#r535114596

Hi @GoEddie . I had included the comment earlier. But missed to "resolve" the review comment. I have now resolved it.

@GoEddie
Copy link
Contributor

GoEddie commented Dec 18, 2020

Hi @ramanathanv i'm not sure what happened to your changes but most of the comments have been resolved but without the code changes - maybe you have a local commit that you haven't pushed up to github? (or you made them on another branch or something?)

For example:

https://github.com/dotnet/spark/pull/781/files/4fcda8904d374c52fbb97dbf7618145d0a15ca4e#r535114596

The comment is: "nit: Can we add a small summary for this test?" but there is no summary, the ///

method headers

or:

https://github.com/dotnet/spark/pull/781/files/4fcda8904d374c52fbb97dbf7618145d0a15ca4e#r530571957

The code style says to use var only when calling a constructor, in this case where you call the constructor and then a method (TransformSchema) then we should use StructType instead of var

If you look through the other comments you will see a few things to implement - if you aren't sure what to do or need a hand with them let me know and I can help!

@ramanathanv
Copy link
Contributor Author

Hi @GoEddie .
When I navigate to the "Files Changed" submenu within this PR, I notice that the review comments are indeed fixed. I have attached a screenshot along with this conversation. Can you please recheck and let me know if you are able to see the code with the review comments fixed?

image

@GoEddie
Copy link
Contributor

GoEddie commented Dec 22, 2020

@ramanathanv looks good!

@GoEddie
Copy link
Contributor

GoEddie commented Dec 22, 2020

@Niharikadutta could you review?

Copy link
Contributor

@imback82 imback82 left a comment

Choose a reason for hiding this comment

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

LGTM, thanks @ramanathanv!

@imback82 imback82 merged commit d2822c3 into dotnet:master Jan 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants