Fix build: newTempFolder (#16170)

This commit is contained in:
Zoltan Haindrich 2024-03-19 16:53:56 +01:00 committed by GitHub
parent e3b75ac11f
commit 1ad489a2ae
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -50,7 +50,7 @@ public class MSQExportTest extends MSQTestBase
.add("dim1", ColumnType.STRING)
.add("cnt", ColumnType.LONG).build();
File exportDir = temporaryFolder.newFolder("export/");
File exportDir = newTempFolder("export");
final String sql = StringUtils.format("insert into extern(local(exportPath=>'%s')) as csv select cnt, dim1 as dim from foo", exportDir.getAbsolutePath());
testIngestQuery().setSql(sql)
@ -81,7 +81,7 @@ public class MSQExportTest extends MSQTestBase
.add("dim1", ColumnType.STRING)
.add("cnt", ColumnType.LONG).build();
File exportDir = temporaryFolder.newFolder("export/");
File exportDir = newTempFolder("export");
final String sql = StringUtils.format("insert into extern(local(exportPath=>'%s')) as csv select dim1 as table_dim, count(*) as table_count from foo where dim1 = 'abc' group by 1", exportDir.getAbsolutePath());
testIngestQuery().setSql(sql)