Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions x-pack/plugin/esql-datasource-ndjson/qa/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ dependencies {
tasks.named('javaRestTest') {
usesDefaultDistribution("to be triaged")
maxParallelForks = 1
enabled = buildParams.snapshotBuild

// Increase timeouts for S3 operations which may take longer than standard queries
systemProperty 'tests.rest.client_timeout', '60'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,11 +120,15 @@ public void testFileUriWindowsTripleSlash() {
assertEquals("/C:/path/to/file.parquet", path.path());
}

public void testFileUriFunctionOnUnix() {
public void testFileUriFunction() {
java.nio.file.Path p = PathUtils.get("/tmp/test/data.parquet");
String uri = StoragePath.fileUri(p);
assertEquals("file:///tmp/test/data.parquet", uri);
String absPath = p.toAbsolutePath().toString().replace('\\', '/');
if (absPath.startsWith("/") == false) {
absPath = "/" + absPath;
}
assertEquals("file://" + absPath, uri);
StoragePath sp = StoragePath.of(uri);
assertEquals("/tmp/test/data.parquet", sp.path());
assertEquals(absPath, sp.path());
}
}
Loading