Skip to content

[SPARK-44178][CONNECT] Support positional parameters in sql()#41698

Closed
MaxGekk wants to merge 6 commits into
apache:masterfrom
MaxGekk:parameterized-query-pos-param-proto
Closed

[SPARK-44178][CONNECT] Support positional parameters in sql()#41698
MaxGekk wants to merge 6 commits into
apache:masterfrom
MaxGekk:parameterized-query-pos-param-proto

Conversation

@MaxGekk
Copy link
Copy Markdown
Member

@MaxGekk MaxGekk commented Jun 22, 2023

What changes were proposed in this pull request?

In the PR, I propose to add a sequence of literal expressions to

  1. Proto API: SqlCommand and the SQL relation
  2. Scala connect API: SparkSession. sql

This PR is a follow up of #41568.

Why are the changes needed?

Currently SparkSession.sql in Spark Connect doesn't support parameterized SQL with positional parameters. The changes allow to achieve feature parity with Scala/Java/PySpark APIs.

Does this PR introduce any user-facing change?

No, the changes just extend the existing API.

How was this patch tested?

By running new test:

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

@MaxGekk MaxGekk changed the title [WIP][CONNECT] Support positional parameters in sql() [SPARK-44178][CONNECT] Support positional parameters in sql() Jun 25, 2023
@MaxGekk MaxGekk marked this pull request as ready for review June 25, 2023 11:21
@MaxGekk
Copy link
Copy Markdown
Member Author

MaxGekk commented Jun 25, 2023

@grundprinzip @hvanhovell @cloud-fan @ueshin @HyukjinKwon Could you have a look at the PR, please.

Copy link
Copy Markdown
Member

@dongjoon-hyun dongjoon-hyun left a comment

Choose a reason for hiding this comment

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

+1, LGTM.

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.

2 participants