Skip to content

Conversation

@pgovind
Copy link
Contributor

@pgovind pgovind commented Oct 5, 2020

Fix for #654

Apache arrow changes are here: apache/arrow#8348

Alright, this is ready to review now!

cc @eerhardt @suhsteve

@pgovind pgovind changed the title Turn on GroupedMap unit test WIP: Turn on GroupedMap unit test Oct 5, 2020
@rapoth rapoth marked this pull request as draft October 9, 2020 23:47
@eerhardt
Copy link
Member

we need a minor change in MDA

Does this mean we will need to ship a new version of MDA? Is it possible to get that minor change in now?

@pgovind pgovind changed the title WIP: Turn on GroupedMap unit test Changes to support Arrow 2.0 and Spark 3.0 Oct 20, 2020
@pgovind
Copy link
Contributor Author

pgovind commented Oct 21, 2020

Done, I believe this is ready to review now. We're handling the spark version internally in the Spark worker, so no UDFs have to change.

eerhardt
eerhardt previously approved these changes Oct 21, 2020
Copy link
Member

@eerhardt eerhardt left a comment

Choose a reason for hiding this comment

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

Changes look good to me. Thanks for the great work here, @pgovind.

You may want to change the PR from "Draft" now.

@pgovind
Copy link
Contributor Author

pgovind commented Oct 21, 2020

You may want to change the PR from "Draft" now.

I'm not sure I can. I think only the repo owners can do that. @rapoth @suhsteve @imback82

@suhsteve suhsteve marked this pull request as ready for review October 21, 2020 19:05
suhsteve
suhsteve previously approved these changes Oct 21, 2020
Copy link
Member

@suhsteve suhsteve left a comment

Choose a reason for hiding this comment

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

LGTM. Just a few minor comments. Thanks @pgovind !

@suhsteve
Copy link
Member

@pgovind would it be possible to add a E2E test that uses chained Arrow/FxDataFrame UDFs ?

@pgovind
Copy link
Contributor Author

pgovind commented Oct 22, 2020

would it be possible to add a E2E test that uses chained Arrow/FxDataFrame UDFs ?

I think they exist already right? I see chained UDFs being tested in E2ETests/IpcTests/Sql/DataFrameTests.cs?

@pgovind pgovind dismissed stale reviews from suhsteve and eerhardt via 8a67ece October 22, 2020 17:18
@suhsteve
Copy link
Member

would it be possible to add a E2E test that uses chained Arrow/FxDataFrame UDFs ?

I think they exist already right? I see chained UDFs being tested in E2ETests/IpcTests/Sql/DataFrameTests.cs?

Great, I see them now.

Copy link
Member

@suhsteve suhsteve left a comment

Choose a reason for hiding this comment

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

some minor nits.

Prashanth Govindarajan added 2 commits October 22, 2020 12:36

private RecordBatch WrapColumnsInStructIfApplicable(RecordBatch batch)
{
if (_version >= new Version(Versions.V3_0_0))
Copy link
Member

Choose a reason for hiding this comment

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

maybe this instead ?

Suggested change
if (_version >= new Version(Versions.V3_0_0))
if (_version.Major >= 3)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ha, that's actually what I had first, until I saw this:

if (SparkSettings.Version < new Version(version))
.

Are you worried about the new ? I don't mind changing it!!

Copy link
Member

@suhsteve suhsteve Oct 22, 2020

Choose a reason for hiding this comment

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

just a very minor micro optimization. We can keep, I don't mind either. 👍

suhsteve
suhsteve previously approved these changes Oct 22, 2020
@pgovind
Copy link
Contributor Author

pgovind commented Oct 23, 2020

Just so you know, I don't have merge permissions here :) So one of you will need to merge this PR

imback82
imback82 previously approved these changes Oct 23, 2020
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 for the great work @pgovind!

@imback82 imback82 dismissed stale reviews from suhsteve and themself via e2cc263 October 23, 2020 18:42
@imback82 imback82 merged commit d6f0b09 into dotnet:master Oct 23, 2020
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.

4 participants