Skip to content

Comments

[SPARK-42585][CONNECT][FOLLOWUP] Store cached local relations as proto#41107

Closed
MaxGekk wants to merge 7 commits intoapache:masterfrom
MaxGekk:cached-blob-in-proto
Closed

[SPARK-42585][CONNECT][FOLLOWUP] Store cached local relations as proto#41107
MaxGekk wants to merge 7 commits intoapache:masterfrom
MaxGekk:cached-blob-in-proto

Conversation

@MaxGekk
Copy link
Member

@MaxGekk MaxGekk commented May 9, 2023

What changes were proposed in this pull request?

In the PR, I propose to store the cached local relations in the proto format, the same as LocalRelation. Also I reverted transformLocalRelation() to the state before the commit 0d7618a.

Why are the changes needed?

To explicitly specify the format of cached local relations in the proto API.

Does this PR introduce any user-facing change?

Yes but the feature of cached local relations haven't been released yet.

How was this patch tested?

By running the existing tests:

$ build/sbt "test:testOnly *.ArtifactManagerSuite"
$ build/sbt "test:testOnly *.ClientE2ETestSuite"
$ build/sbt "test:testOnly *.ArtifactStatusesHandlerSuite"

@MaxGekk MaxGekk changed the title [WIP][SQL][CONNECT] Store cached local relations as proto [WIP][SPARK-42585][CONNECT][FOLLOWUP] Store cached local relations as proto May 9, 2023
@MaxGekk MaxGekk changed the title [WIP][SPARK-42585][CONNECT][FOLLOWUP] Store cached local relations as proto [SPARK-42585][CONNECT][FOLLOWUP] Store cached local relations as proto May 9, 2023
@MaxGekk MaxGekk marked this pull request as ready for review May 9, 2023 18:17
@MaxGekk MaxGekk requested review from HyukjinKwon and hvanhovell May 9, 2023 18:17
.setSchema(schema)
.setData(data)
.build()
artifactManager.cacheArtifact(localRelation.toByteArray)
Copy link
Contributor

@amaliujia amaliujia May 10, 2023

Choose a reason for hiding this comment

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

is the byte format of the proto LocalRelation compatible with existing code? FYI @vicennial

Copy link
Contributor

@amaliujia amaliujia May 10, 2023

Choose a reason for hiding this comment

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

Oh I see so from the server side it also re-construct LocalRelation proto from the bytes. Probably @vicennial can confirm if all the places are updated.

Copy link
Contributor

Choose a reason for hiding this comment

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

Thanks for the heads up! It looks good to me

@MaxGekk
Copy link
Member Author

MaxGekk commented May 10, 2023

@MaxGekk
Copy link
Member Author

MaxGekk commented May 10, 2023

Merging to master. Thank you, @HyukjinKwon @vicennial @amaliujia for review.

@MaxGekk MaxGekk closed this in 5750bdc May 10, 2023
LuciferYang pushed a commit to LuciferYang/spark that referenced this pull request May 10, 2023
### What changes were proposed in this pull request?
In the PR, I propose to store the cached local relations in the proto format, the same as `LocalRelation`. Also I reverted `transformLocalRelation()` to the state before the commit apache@0d7618a.

### Why are the changes needed?
To explicitly specify the format of cached local relations in the proto API.

### Does this PR introduce _any_ user-facing change?
Yes but the feature of cached local relations haven't been released yet.

### How was this patch tested?
By running the existing tests:
```
$ build/sbt "test:testOnly *.ArtifactManagerSuite"
$ build/sbt "test:testOnly *.ClientE2ETestSuite"
$ build/sbt "test:testOnly *.ArtifactStatusesHandlerSuite"
```

Closes apache#41107 from MaxGekk/cached-blob-in-proto.

Authored-by: Max Gekk <max.gekk@gmail.com>
Signed-off-by: Max Gekk <max.gekk@gmail.com>
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.

4 participants