diff options
author | Volodymyr Vysotskyi <vvovyk@gmail.com> | 2018-04-23 11:38:39 +0300 |
---|---|---|
committer | Volodymyr Vysotskyi <vvovyk@gmail.com> | 2018-08-28 20:04:25 +0300 |
commit | 44e63bd0deda72af726f51e0ff78fc2b636c64eb (patch) | |
tree | 6729d28338ead5c071a1c23f2cbcabe1e340387f /exec/java-exec/src/test/java/org/apache/drill/exec/store/TestImplicitFileColumns.java | |
parent | d8f9fb6a5cf22a01fa3f48bd40e7dbeb3cb6e4e4 (diff) |
DRILL-6422: Update guava to 23.0 and shade it
- Fix compilation errors for new version of Guava.
- Remove usage of deprecated API
- Shade guava and add dependencies to the shaded version
- Ban unshaded package
- Introduce drill-shaded module and move guava-shaded under it
- Add methods to convert shaded guava lists to the unshaded ones
- Add instruction for publishing artifacts to the Apache repository
Diffstat (limited to 'exec/java-exec/src/test/java/org/apache/drill/exec/store/TestImplicitFileColumns.java')
-rw-r--r-- | exec/java-exec/src/test/java/org/apache/drill/exec/store/TestImplicitFileColumns.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/exec/java-exec/src/test/java/org/apache/drill/exec/store/TestImplicitFileColumns.java b/exec/java-exec/src/test/java/org/apache/drill/exec/store/TestImplicitFileColumns.java index 67cb6c5d8..4222958de 100644 --- a/exec/java-exec/src/test/java/org/apache/drill/exec/store/TestImplicitFileColumns.java +++ b/exec/java-exec/src/test/java/org/apache/drill/exec/store/TestImplicitFileColumns.java @@ -59,11 +59,11 @@ public class TestImplicitFileColumns extends BaseTestQuery { public static void setup() throws Exception { File files = dirTestWatcher.makeRootSubDir(FILES); mainFile = new File(files, MAIN_FILE); - Files.write(MAIN, mainFile, Charsets.UTF_8); + Files.asCharSink(mainFile, Charsets.UTF_8).write(MAIN); File nestedFolder = new File(files, NESTED); nestedFolder.mkdirs(); nestedFile = new File(nestedFolder, NESTED_FILE); - Files.write(NESTED, nestedFile, Charsets.UTF_8); + Files.asCharSink(nestedFile, Charsets.UTF_8).write(NESTED); dirTestWatcher.copyResourceToRoot(JSON_TBL); dirTestWatcher.copyResourceToRoot(PARQUET_TBL); |