-
Notifications
You must be signed in to change notification settings - Fork 28.3k
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-44783][SQL][TESTS] Checks arrays as named and positional parameters #42470
Closed
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MaxGekk
changed the title
[WIP][SPARK-44783][SQL][TESTS] Checks arrays as named and positional parameters
[SPARK-44783][SQL][TESTS] Checks arrays as named and positional parameters
Aug 12, 2023
cloud-fan
approved these changes
Aug 14, 2023
yaooqinn
approved these changes
Aug 14, 2023
thanks, merged to master |
HyukjinKwon
reviewed
Aug 14, 2023
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM2
yaooqinn
added a commit
that referenced
this pull request
Aug 15, 2023
### What changes were proposed in this pull request? This PR add a env JIRA_ACCESS_TOKEN for merge script to enable token auth ### Why are the changes needed? Tokens are more secure and easily revoked or expired. ### Does this PR introduce _any_ user-facing change? no ### How was this patch tested? 1. locally tested ```python >>> JIRA_ACCESS_TOKEN is not None True >>> asf_jira.issue("SPARK-44801") <JIRA Issue: key='SPARK-44801', id='13547185'> >>> if JIRA_ACCESS_TOKEN is not None: ... asf_jira = jira.client.JIRA(jira_server, token_auth=JIRA_ACCESS_TOKEN) ... else: ... asf_jira = jira.client.JIRA( ... jira_server, basic_auth=(JIRA_USERNAME, JIRA_PASSWORD) ... ) ... >>> asf_jira.issue("SPARK-44801") <JIRA Issue: key='SPARK-44801', id='13547185'> ``` 2. merged #42470 with this Closes #42484 from yaooqinn/SPARK-44802. Authored-by: Kent Yao <yao@apache.org> Signed-off-by: Kent Yao <yao@apache.org>
valentinp17
pushed a commit
to valentinp17/spark
that referenced
this pull request
Aug 24, 2023
…eters ### What changes were proposed in this pull request? In the PR, I propose to add new test which checks arrays as named and positional parameters. ### Why are the changes needed? To improve test coverage. ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? By running the modified test suite: ``` $ build/sbt "test:testOnly *ParametersSuite" ``` Closes apache#42470 from MaxGekk/sql-parameterized-by-array. Authored-by: Max Gekk <max.gekk@gmail.com> Signed-off-by: Kent Yao <yao@apache.org>
valentinp17
pushed a commit
to valentinp17/spark
that referenced
this pull request
Aug 24, 2023
### What changes were proposed in this pull request? This PR add a env JIRA_ACCESS_TOKEN for merge script to enable token auth ### Why are the changes needed? Tokens are more secure and easily revoked or expired. ### Does this PR introduce _any_ user-facing change? no ### How was this patch tested? 1. locally tested ```python >>> JIRA_ACCESS_TOKEN is not None True >>> asf_jira.issue("SPARK-44801") <JIRA Issue: key='SPARK-44801', id='13547185'> >>> if JIRA_ACCESS_TOKEN is not None: ... asf_jira = jira.client.JIRA(jira_server, token_auth=JIRA_ACCESS_TOKEN) ... else: ... asf_jira = jira.client.JIRA( ... jira_server, basic_auth=(JIRA_USERNAME, JIRA_PASSWORD) ... ) ... >>> asf_jira.issue("SPARK-44801") <JIRA Issue: key='SPARK-44801', id='13547185'> ``` 2. merged apache#42470 with this Closes apache#42484 from yaooqinn/SPARK-44802. Authored-by: Kent Yao <yao@apache.org> Signed-off-by: Kent Yao <yao@apache.org>
MaxGekk
added a commit
that referenced
this pull request
Sep 20, 2023
…`sql()` ### What changes were proposed in this pull request? In the PR, I propose to add a few more examples for the `sql()` method in PySpark API with array and map parameters. ### Why are the changes needed? To inform users about recent changes introduced by #42752 and #42470, and check the changes work actually. ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? By running new examples: ``` $ python/run-tests --parallelism=1 --testnames 'pyspark.sql.session SparkSession.sql' ``` ### Was this patch authored or co-authored using generative AI tooling? No. Closes #42996 from MaxGekk/map-sql-parameterized-python-connect. Authored-by: Max Gekk <max.gekk@gmail.com> Signed-off-by: Max Gekk <max.gekk@gmail.com>
ragnarok56
pushed a commit
to ragnarok56/spark
that referenced
this pull request
Mar 2, 2024
…eters ### What changes were proposed in this pull request? In the PR, I propose to add new test which checks arrays as named and positional parameters. ### Why are the changes needed? To improve test coverage. ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? By running the modified test suite: ``` $ build/sbt "test:testOnly *ParametersSuite" ``` Closes apache#42470 from MaxGekk/sql-parameterized-by-array. Authored-by: Max Gekk <max.gekk@gmail.com> Signed-off-by: Kent Yao <yao@apache.org>
ragnarok56
pushed a commit
to ragnarok56/spark
that referenced
this pull request
Mar 2, 2024
### What changes were proposed in this pull request? This PR add a env JIRA_ACCESS_TOKEN for merge script to enable token auth ### Why are the changes needed? Tokens are more secure and easily revoked or expired. ### Does this PR introduce _any_ user-facing change? no ### How was this patch tested? 1. locally tested ```python >>> JIRA_ACCESS_TOKEN is not None True >>> asf_jira.issue("SPARK-44801") <JIRA Issue: key='SPARK-44801', id='13547185'> >>> if JIRA_ACCESS_TOKEN is not None: ... asf_jira = jira.client.JIRA(jira_server, token_auth=JIRA_ACCESS_TOKEN) ... else: ... asf_jira = jira.client.JIRA( ... jira_server, basic_auth=(JIRA_USERNAME, JIRA_PASSWORD) ... ) ... >>> asf_jira.issue("SPARK-44801") <JIRA Issue: key='SPARK-44801', id='13547185'> ``` 2. merged apache#42470 with this Closes apache#42484 from yaooqinn/SPARK-44802. Authored-by: Kent Yao <yao@apache.org> Signed-off-by: Kent Yao <yao@apache.org>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What changes were proposed in this pull request?
In the PR, I propose to add new test which checks arrays as named and positional parameters.
Why are the changes needed?
To improve test coverage.
Does this PR introduce any user-facing change?
No.
How was this patch tested?
By running the modified test suite: