Skip to content
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

[SPARK-40971][CONNECT][DSL] Do not need to use proto. to refer generated classes in Connect DSL. #38445

Closed
wants to merge 1 commit into from

Conversation

amaliujia
Copy link
Contributor

What changes were proposed in this pull request?

The Connect DSL only deal with Connect proto, thus there is no need to use proto. to refer to those proto generates class. Instead, we can import more from the proto package to simplify the DSL code. There won't be ambiguity to class references after this change.

Why are the changes needed?

Codebase simplification.

Does this PR introduce any user-facing change?

No

How was this patch tested?

Existing UT

@amaliujia
Copy link
Contributor Author

R: @cloud-fan

@amaliujia amaliujia changed the title [SPARK-40971][CONNECT][DSL] Imports more from connect proto package to avoid calling proto. in Connect DSL. [SPARK-40971][CONNECT][DSL] Do not need to use proto. to refer generated classes in Connect DSL. Oct 31, 2022
@cloud-fan
Copy link
Contributor

thanks, merging to master!

@cloud-fan cloud-fan closed this in c85c294 Oct 31, 2022
SandishKumarHN pushed a commit to SandishKumarHN/spark that referenced this pull request Dec 12, 2022
…rated classes in Connect DSL

### What changes were proposed in this pull request?

The Connect DSL only deal with Connect proto, thus there is no need to use `proto.` to refer to those proto generates class. Instead, we can import more from the proto package to simplify the DSL code. There won't be ambiguity to class references after this change.

### Why are the changes needed?

Codebase simplification.

### Does this PR introduce _any_ user-facing change?

No
### How was this patch tested?

Existing UT

Closes apache#38445 from amaliujia/clean_up_dsl.

Authored-by: Rui Wang <rui.wang@databricks.com>
Signed-off-by: Wenchen Fan <wenchen@databricks.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants