Skip to content

Conversation

@Sudhar287
Copy link
Contributor

What changes were proposed in this pull request?

This is a proof-of-concept PR for replacing floorDiv in localRebaseGregorianToJulianDays() to only div so that performance can be improved.
For this, we need to ensure that utcCal.getTimeInMillis % MILLIS_PER_DAY == 0

If my method to verify the above is correct, then I will update this PR to simply remove floorDiv and add div.

For SPARK-31579 @MaxGekk

Why are the changes needed?

Better and faster performance

Does this PR introduce any user-facing change?

No

How was this patch tested?

Unit testing.

@AmplabJenkins
Copy link

Can one of the admins verify this patch?

@maropu maropu changed the title Floor div to div [WIP][SPARK-31579][SQL] Floor div to div May 19, 2020
@maropu
Copy link
Member

maropu commented May 19, 2020

Hi, @Sudhar287. Is this PR still WIP? I set WIP in the title though.

@Sudhar287
Copy link
Contributor Author

Thanks for the response @maropu! This is not a work in progress.
This is a working proof of concept. I was asked to share my findings before I made the 1 line code change.

@maropu
Copy link
Member

maropu commented May 19, 2020

Ah I see. But, I think you don't need to open a new PR for that purpose. Could you close this?

@Sudhar287
Copy link
Contributor Author

Okay. But how else should I share my findings? My idea was to simply update this PR once the proof is validated...

@maropu
Copy link
Member

maropu commented May 19, 2020

If you want to discuss this topic, I think you should do in the JIRA side by showing your PoF patch in your local (forked) repository.

@Sudhar287
Copy link
Contributor Author

Right. Got it!

@Sudhar287 Sudhar287 closed this May 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants