Skip to content

[SPARK-58566][SQL][TESTS] Add tests for QuotingUtils.quoteIdentifier and escapeSingleQuotedString - #57766

Closed
uros-b wants to merge 1 commit into
apache:masterfrom
uros-b:test-quotingutils
Closed

[SPARK-58566][SQL][TESTS] Add tests for QuotingUtils.quoteIdentifier and escapeSingleQuotedString#57766
uros-b wants to merge 1 commit into
apache:masterfrom
uros-b:test-quotingutils

Conversation

@uros-b

@uros-b uros-b commented Aug 4, 2026

Copy link
Copy Markdown
Member

What changes were proposed in this pull request?

Adds unit tests for QuotingUtils.quoteIdentifier and escapeSingleQuotedString, which had no direct coverage.

Why are the changes needed?

These pure string helpers back-tick-escape identifiers and backslash-escape single quotes; the tests pin their contract (wrapping, doubling, escaping, empty input).

Does this PR introduce any user-facing change?

No.

How was this patch tested?

This PR is the test. build/sbt "catalyst/testOnly *QuotingUtilsSuite".

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

Generated-by: Claude Code (Opus 4.8)

@uros-b uros-b left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Waiting for CI

@uros-b uros-b changed the title [SPARK-58566][SQL] Add tests for QuotingUtils.quoteIdentifier and escapeSingleQuotedString [SPARK-58566][SQL][TESTS] Add tests for QuotingUtils.quoteIdentifier and escapeSingleQuotedString Aug 4, 2026
@uros-b

uros-b commented Aug 5, 2026

Copy link
Copy Markdown
Member Author

Thank you @HyukjinKwon @zhengruifeng @szehon-ho!

@uros-b uros-b closed this in 6521926 Aug 5, 2026
uros-b added a commit that referenced this pull request Aug 5, 2026
…nd escapeSingleQuotedString

### What changes were proposed in this pull request?
Adds unit tests for `QuotingUtils.quoteIdentifier` and `escapeSingleQuotedString`, which had no direct coverage.

### Why are the changes needed?
These pure string helpers back-tick-escape identifiers and backslash-escape single quotes; the tests pin their contract (wrapping, doubling, escaping, empty input).

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

### How was this patch tested?
This PR is the test. `build/sbt "catalyst/testOnly *QuotingUtilsSuite"`.

### Was this patch authored or co-authored using generative AI tooling?
Generated-by: Claude Code (Opus 4.8)

Closes #57766 from uros-b/test-quotingutils.

Authored-by: Uros Bojanic <221401595+uros-b@users.noreply.github.com>
Signed-off-by: Uros Bojanic <221401595+uros-b@users.noreply.github.com>
(cherry picked from commit 6521926)
Signed-off-by: Uros Bojanic <221401595+uros-b@users.noreply.github.com>
uros-b added a commit that referenced this pull request Aug 5, 2026
…nd escapeSingleQuotedString

### What changes were proposed in this pull request?
Adds unit tests for `QuotingUtils.quoteIdentifier` and `escapeSingleQuotedString`, which had no direct coverage.

### Why are the changes needed?
These pure string helpers back-tick-escape identifiers and backslash-escape single quotes; the tests pin their contract (wrapping, doubling, escaping, empty input).

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

### How was this patch tested?
This PR is the test. `build/sbt "catalyst/testOnly *QuotingUtilsSuite"`.

### Was this patch authored or co-authored using generative AI tooling?
Generated-by: Claude Code (Opus 4.8)

Closes #57766 from uros-b/test-quotingutils.

Authored-by: Uros Bojanic <221401595+uros-b@users.noreply.github.com>
Signed-off-by: Uros Bojanic <221401595+uros-b@users.noreply.github.com>
(cherry picked from commit 6521926)
Signed-off-by: Uros Bojanic <221401595+uros-b@users.noreply.github.com>
@uros-b

uros-b commented Aug 5, 2026

Copy link
Copy Markdown
Member Author

Merge Summary:

Posted by merge_spark_pr.py

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants