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

HIVE-28021: escape percent symbol #9667

Open
wants to merge 14 commits into
base: main
Choose a base branch
from
Open

Conversation

tthorpeIBM
Copy link

@tthorpeIBM tthorpeIBM commented Feb 6, 2024

In order to allow the percent symbol to be used as a schema or table name, the percent symbol needs to be escaped.

What changes were proposed in this pull request?

In alpha 2 and earlier, including a percent symbol wouldn't cause exceptions. This change is to make beta 1 and beyond compatible.

Why are the changes needed?

Currently, in the beta 1 code, if the percent symbol is used as a schema or table name, you will get an UnknownFormatConversionException: Conversion = '_'

Does this PR introduce any user-facing change?

No

Is the change a dependency upgrade?

No

How was this patch tested?

Tested it manually by creating a table with a percent, specifically "[|]#&%@"."[|]#&%@"
Added a unit test - apache/hive#5024

@github-actions github-actions bot added the hive label Feb 6, 2024
@tthorpeIBM tthorpeIBM closed this Mar 7, 2024
@tthorpeIBM tthorpeIBM reopened this Mar 7, 2024
@github-actions github-actions bot removed the MR label Mar 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants