DRILL-6422: Update guava to 23.0 and shade it
authorVolodymyr Vysotskyi <vvovyk@gmail.com>
Mon, 23 Apr 2018 08:38:39 +0000 (11:38 +0300)
committerVolodymyr Vysotskyi <vvovyk@gmail.com>
Tue, 28 Aug 2018 17:04:25 +0000 (20:04 +0300)
commit44e63bd0deda72af726f51e0ff78fc2b636c64eb
tree6729d28338ead5c071a1c23f2cbcabe1e340387f
parentd8f9fb6a5cf22a01fa3f48bd40e7dbeb3cb6e4e4
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
83 files changed:
common/src/main/java/org/apache/drill/common/util/DrillFileUtils.java
common/src/main/java/org/apache/drill/common/util/GuavaUtils.java [new file with mode: 0644]
contrib/storage-hbase/src/test/java/org/apache/drill/hbase/BaseHBaseTest.java
contrib/storage-jdbc/src/main/java/org/apache/drill/exec/store/jdbc/DrillJdbcRuleBase.java
contrib/storage-jdbc/src/main/java/org/apache/drill/exec/store/jdbc/JdbcStoragePlugin.java
contrib/storage-mongo/src/main/java/org/apache/drill/exec/store/mongo/MongoSubScan.java
distribution/src/assemble/bin.xml
docs/dev/UpgradeGuava.md [new file with mode: 0644]
drill-shaded/drill-shaded-guava/pom.xml [new file with mode: 0644]
drill-shaded/pom.xml [new file with mode: 0644]
drill-yarn/src/main/java/org/apache/drill/yarn/zk/ZKClusterCoordinator.java
exec/java-exec/src/main/java/org/apache/drill/exec/coord/zk/ZKClusterCoordinator.java
exec/java-exec/src/main/java/org/apache/drill/exec/expr/HoldingContainerExpression.java
exec/java-exec/src/main/java/org/apache/drill/exec/physical/base/AbstractReceiver.java
exec/java-exec/src/main/java/org/apache/drill/exec/physical/base/AbstractSubScan.java
exec/java-exec/src/main/java/org/apache/drill/exec/physical/config/UnnestPOP.java
exec/java-exec/src/main/java/org/apache/drill/exec/physical/config/Values.java
exec/java-exec/src/main/java/org/apache/drill/exec/planner/FileSystemPartitionDescriptor.java
exec/java-exec/src/main/java/org/apache/drill/exec/planner/common/DrillValuesRelBase.java
exec/java-exec/src/main/java/org/apache/drill/exec/planner/logical/DrillValuesRel.java
exec/java-exec/src/main/java/org/apache/drill/exec/planner/physical/ValuesPrel.java
exec/java-exec/src/main/java/org/apache/drill/exec/schema/Field.java
exec/java-exec/src/main/java/org/apache/drill/exec/schema/NamedField.java
exec/java-exec/src/main/java/org/apache/drill/exec/schema/OrderedField.java
exec/java-exec/src/main/java/org/apache/drill/exec/store/dfs/WorkspaceSchemaFactory.java
exec/java-exec/src/test/java/org/apache/drill/exec/DrillSystemTestBase.java
exec/java-exec/src/test/java/org/apache/drill/exec/RunRootExec.java
exec/java-exec/src/test/java/org/apache/drill/exec/TestQueriesOnLargeFile.java
exec/java-exec/src/test/java/org/apache/drill/exec/ZookeeperHelper.java
exec/java-exec/src/test/java/org/apache/drill/exec/client/DumpCatTest.java
exec/java-exec/src/test/java/org/apache/drill/exec/fn/impl/TestAggregateFunction.java
exec/java-exec/src/test/java/org/apache/drill/exec/fn/impl/TestDateFunctions.java
exec/java-exec/src/test/java/org/apache/drill/exec/fn/impl/TestMathFunctions.java
exec/java-exec/src/test/java/org/apache/drill/exec/fn/impl/TestMultiInputAdd.java
exec/java-exec/src/test/java/org/apache/drill/exec/fn/impl/TestNewAggregateFunctions.java
exec/java-exec/src/test/java/org/apache/drill/exec/fn/impl/TestRepeatedFunction.java
exec/java-exec/src/test/java/org/apache/drill/exec/impersonation/TestInboundImpersonationPrivileges.java
exec/java-exec/src/test/java/org/apache/drill/exec/memory/TestAllocators.java
exec/java-exec/src/test/java/org/apache/drill/exec/physical/config/TestParsePhysicalPlan.java
exec/java-exec/src/test/java/org/apache/drill/exec/physical/impl/TestBroadcastExchange.java
exec/java-exec/src/test/java/org/apache/drill/exec/physical/impl/TestCastFunctions.java
exec/java-exec/src/test/java/org/apache/drill/exec/physical/impl/TestCastVarCharToBigInt.java
exec/java-exec/src/test/java/org/apache/drill/exec/physical/impl/TestDecimal.java
exec/java-exec/src/test/java/org/apache/drill/exec/physical/impl/TestDistributedFragmentRun.java
exec/java-exec/src/test/java/org/apache/drill/exec/physical/impl/TestExtractFunctions.java
exec/java-exec/src/test/java/org/apache/drill/exec/physical/impl/TestHashToRandomExchange.java
exec/java-exec/src/test/java/org/apache/drill/exec/physical/impl/TestReverseImplicitCast.java
exec/java-exec/src/test/java/org/apache/drill/exec/physical/impl/TestSimpleFragmentRun.java
exec/java-exec/src/test/java/org/apache/drill/exec/physical/impl/TestSimpleFunctions.java
exec/java-exec/src/test/java/org/apache/drill/exec/physical/impl/TestUnionExchange.java
exec/java-exec/src/test/java/org/apache/drill/exec/physical/impl/agg/TestAgg.java
exec/java-exec/src/test/java/org/apache/drill/exec/physical/impl/filter/TestSimpleFilter.java
exec/java-exec/src/test/java/org/apache/drill/exec/physical/impl/join/TestHashJoin.java
exec/java-exec/src/test/java/org/apache/drill/exec/physical/impl/join/TestMergeJoin.java
exec/java-exec/src/test/java/org/apache/drill/exec/physical/impl/join/TestMergeJoinMulCondition.java
exec/java-exec/src/test/java/org/apache/drill/exec/physical/impl/limit/TestSimpleLimit.java
exec/java-exec/src/test/java/org/apache/drill/exec/physical/impl/mergereceiver/TestMergingReceiver.java
exec/java-exec/src/test/java/org/apache/drill/exec/physical/impl/orderedpartitioner/TestOrderedPartitionExchange.java
exec/java-exec/src/test/java/org/apache/drill/exec/physical/impl/project/TestSimpleProjection.java
exec/java-exec/src/test/java/org/apache/drill/exec/physical/impl/sort/TestSimpleSort.java
exec/java-exec/src/test/java/org/apache/drill/exec/physical/impl/trace/TestTraceMultiRecordBatch.java
exec/java-exec/src/test/java/org/apache/drill/exec/physical/impl/trace/TestTraceOutputDump.java
exec/java-exec/src/test/java/org/apache/drill/exec/physical/impl/union/TestSimpleUnion.java
exec/java-exec/src/test/java/org/apache/drill/exec/physical/impl/writer/TestWriter.java
exec/java-exec/src/test/java/org/apache/drill/exec/planner/logical/DrillOptiqTest.java
exec/java-exec/src/test/java/org/apache/drill/exec/pop/PopUnitTestBase.java
exec/java-exec/src/test/java/org/apache/drill/exec/pop/TestInjectionValue.java
exec/java-exec/src/test/java/org/apache/drill/exec/record/TestRecordIterator.java
exec/java-exec/src/test/java/org/apache/drill/exec/record/vector/TestDateTypes.java
exec/java-exec/src/test/java/org/apache/drill/exec/store/TestImplicitFileColumns.java
exec/java-exec/src/test/java/org/apache/drill/exec/store/parquet/ParquetRecordReaderTest.java
exec/java-exec/src/test/java/org/apache/drill/exec/store/text/TextRecordReaderTest.java
exec/java-exec/src/test/java/org/apache/drill/exec/vector/complex/writer/TestJsonReader.java
exec/java-exec/src/test/java/org/apache/drill/exec/work/batch/TestSpoolingBuffer.java
exec/jdbc-all/pom.xml
exec/jdbc/src/main/java/org/apache/drill/jdbc/impl/DrillConnectionImpl.java
exec/jdbc/src/main/java/org/apache/drill/jdbc/impl/DrillDatabaseMetaDataImpl.java
logical/src/main/java/org/apache/drill/common/expression/NullExpression.java
logical/src/main/java/org/apache/drill/common/expression/TypedNullConstant.java
logical/src/main/java/org/apache/drill/common/expression/ValueExpressions.java
logical/src/main/java/org/apache/drill/common/logical/data/SourceOperator.java
pom.xml
src/main/resources/checkstyle-config.xml