paimon
paimon copied to clipboard
[Bug] URISyntaxException when run test on windows
Search before asking
- [X] I searched in the issues and found nothing similar.
Paimon version
0.9-SNAPSHOT
Compute Engine
flink
Minimal reproduce step
On my windows laptop,execute :
mvn -Dtest=HashBucketAssignerTest#testAssign test
What doesn't meet your expectations?
current url : traceable://C:%25255CUsers%25255Cgaoxiong%25255CAppData%25255CLocal%25255CTemp%25255Cjunit4564634346496172550user.sys
it should add slash between uri and path : traceable://C:%25255CUsers%25255Cgaoxiong%25255CAppData%25255CLocal%25255CTemp%25255Cjunit4564634346496172550 /user.sys
log :
[INFO] -------------------------------------------------------
[INFO] T E S T S
[INFO] -------------------------------------------------------
[INFO] Running org.apache.paimon.index.HashBucketAssignerTest
[ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 1.391 s <<< FAILURE! - in org.apache.paimon.index.HashBucketAssignerTest
[ERROR] org.apache.paimon.index.HashBucketAssignerTest.testAssign Time elapsed: 1.333 s <<< ERROR!
java.lang.IllegalArgumentException: java.net.URISyntaxException: Relative path in absolute URI: traceable://C:%25255CUsers%25255Cgaoxiong%25255CAppData%25255CLocal%25255CTemp%25255Cjunit4564634346496172550user.sys
at org.apache.paimon.fs.Path.initialize(Path.java:235)
at org.apache.paimon.fs.Path.<init>(Path.java:119)
at org.apache.paimon.fs.Path.<init>(Path.java:72)
at org.apache.paimon.privilege.FileBasedPrivilegeManager.getTable(FileBasedPrivilegeManager.java:366)
at org.apache.paimon.privilege.FileBasedPrivilegeManager.getUserTable(FileBasedPrivilegeManager.java:352)
at org.apache.paimon.privilege.FileBasedPrivilegeManager.privilegeEnabled(FileBasedPrivilegeManager.java:118)
at org.apache.paimon.catalog.FileSystemCatalogFactory.create(FileSystemCatalogFactory.java:55)
at org.apache.paimon.catalog.CatalogFactory.createCatalog(CatalogFactory.java:95)
at org.apache.paimon.catalog.CatalogFactory.createCatalog(CatalogFactory.java:66)
at org.apache.paimon.catalog.PrimaryKeyTableTestBase.beforeEachBase(PrimaryKeyTableTestBase.java:61)
Anything else?
No response
Are you willing to submit a PR?
- [X] I'm willing to submit a PR!