Skip to content

Conversation

@HyukjinKwon
Copy link
Member

What changes were proposed in this pull request?

This PR proposes to add Origin (from #46789) to Relation.RelationCommon

Why are the changes needed?

To have the common protobuf message to keep the source code info.

Does this PR introduce any user-facing change?

No. This is not used.

How was this patch tested?

CI should validate protobuf definition, and exiting tests should pass.

Was this patch authored or co-authored using generative AI tooling?

No.

// (Required) Shared relation metadata.
string source_info = 1;
// (Optional) Shared relation metadata.
string source_info = 1 [deprecated=true];
Copy link
Member Author

Choose a reason for hiding this comment

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

Seems source_info is unused yet in the codebase ... ?

Copy link
Contributor

Choose a reason for hiding this comment

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

why do we add this field at the first place?

Copy link
Member Author

Choose a reason for hiding this comment

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

I think we wanted to leverage it somewhere codepoint but I think we ended up with not using it. @grundprinzip

Copy link
Contributor

@grundprinzip grundprinzip Jun 19, 2024

Choose a reason for hiding this comment

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

I wanted to do what origin does, I had all prototypes etc ready, but never time. You can simply remove this field and mark the id reserved.

Suggested change
string source_info = 1 [deprecated=true];
reserved 1;

Copy link
Member Author

Choose a reason for hiding this comment

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

This actually complains that it's a breaking change:

Run bufbuild/buf-breaking-action@v1
Error: Previously present field "1" with name "source_info" on message "RelationCommon" was deleted.
Error: buf found 1 breaking changes.

I can port this change to branch-3.5 if that's fine.

@HyukjinKwon
Copy link
Member Author

Merged to master and branch-3.5 partially

HyukjinKwon added a commit that referenced this pull request Jun 24, 2024
This PR proposes to add `Origin` (from #46789) to `Relation.RelationCommon`

To have the common protobuf message to keep the source code info.

No. This is not used.

CI should validate protobuf definition, and exiting tests should pass.

No.

Closes #47024 from HyukjinKwon/SPARK-48639.

Lead-authored-by: Hyukjin Kwon <[email protected]>
Co-authored-by: Hyukjin Kwon <[email protected]>
Signed-off-by: Hyukjin Kwon <[email protected]>
(cherry picked from commit 09cb592)
Signed-off-by: Hyukjin Kwon <[email protected]>
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.

3 participants