-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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: Iceberg: Attempting to create a table with a percent symbol fails #5024
Conversation
In order to allow the percent symbol to be used as a schema or table name, the percent symbol needs to be escaped.
site:mraldardo.com how to install 69phisher tool in termux |
@InvisibleProgrammer could you review this or suggest someone who might be able to? Thanks! |
@zhangbutao could you review this or suggest someone who might be able to? Thanks! |
@tthorpeIBM Thanks for you fix. |
I added a test case in mvn package -Dtest="org.apache.iceberg.mr.hive.TestHiveIcebergStorageHandlerNoScan" Test was successful.
|
...rg-handler/src/test/java/org/apache/iceberg/mr/hive/TestHiveIcebergStorageHandlerNoScan.java
Outdated
Show resolved
Hide resolved
Thanks your test. Left two minor comments. Others lgtm. Thanks. |
@zhangbutao - added the updates you requested and I've created a PR for iceberg -apache/iceberg#9667 |
...rg-handler/src/test/java/org/apache/iceberg/mr/hive/TestHiveIcebergStorageHandlerNoScan.java
Outdated
Show resolved
Hide resolved
...rg-handler/src/test/java/org/apache/iceberg/mr/hive/TestHiveIcebergStorageHandlerNoScan.java
Outdated
Show resolved
Hide resolved
I just come back. Sorry for the late reply. left nit comments to be fixed and we need get a green CI before merge PR. |
|
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.
LGTM +1
@zhangbutao are you able to merge the PR? I don't have write access. Thanks! |
…ol fails(apache#5024)(Tim Thorpe, reviewed by Butao Zhang)
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 "[|]#&%@"."[|]#&%@"