Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge from master #1

Merged
merged 587 commits into from
Jun 27, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
587 commits
Select commit Hold shift + click to select a range
e098136
Fix jmx export issue in resource group configuration manager
May 31, 2017
de9f348
Change UpdateablePriorityQueue to implement Iterable
Jun 1, 2017
19f8ee1
Add query queued and running time limits to resource groups
Oct 29, 2016
f2543bb
Cap result of sequence function to 10000 entries
highker May 18, 2017
d804fd0
Add repeat function
highker Apr 26, 2017
c6a12f7
Include object overhead in big array sizeOf calculations
nezihyigitbasi May 3, 2017
bb2bf99
Include object overhead in grouped state getEstimatedSize
nezihyigitbasi May 5, 2017
bd64363
Remove unused field
nezihyigitbasi Jun 5, 2017
84f1b01
Add array aggregation benchmark
highker Apr 18, 2017
39343f2
Reduce aggregation to complex type memory usage
highker Apr 18, 2017
5611a18
Remove deprecated methods in AggregationNode
Apr 28, 2017
5c8cc82
Support generating interface
Jan 18, 2017
ec5ac90
Remove extra test cases
kokosing May 29, 2017
091b9a4
Make possible to filter not supported optimizers in tests
kokosing Jun 1, 2017
588a01d
Introduce LateralJoinNode
kokosing May 29, 2017
ab72f8b
Use LateralJoin for scalar subqueries
kokosing May 29, 2017
40785a0
Check that ApplyNode is used only for non scalar subqueries
kokosing May 29, 2017
baa7878
Throw exception instead of returning wrong value
kokosing May 29, 2017
592f41f
Filter AddLocalExchanges when testing subqueries logical plan
kokosing Jun 1, 2017
1e2bb6c
Extract BasePlanTest#assertPlan
kokosing Jun 1, 2017
97cb912
Use expression method instead of hardcoding AST tree
kokosing Jun 1, 2017
d6bf984
Format TestTransformCorrelatedScalarAggregationToJoin
kokosing Jun 1, 2017
762a0db
Fix ORDER BY with LIMIT expressions with same canonicals
kokosing Jun 6, 2017
07c98a7
Use static import for checkArgument
kokosing Jun 7, 2017
ca013b2
Support GROUPING() in legacy ORDER BY
petroav Jun 7, 2017
e4dfc8e
Use Hive Text instead of Java String in GenericHiveRecordCursor
dain Jun 7, 2017
4b2612d
Fix parsing of normal form tokens
martint Jun 5, 2017
c01d83c
Verify nonReserved contains only tokens
martint Jun 5, 2017
1fbd226
Remove legacy Hive connectors
electrum Jun 7, 2017
7936d29
Remove ResourceGroupId.fromSegmentedName
Jun 7, 2017
2c4378a
Use array as ResourceGroupId's JSON representation
Jun 7, 2017
e400e6a
Add checks for Kerberos properties in Hive connector
Mar 28, 2017
9b1691e
Remove unnecessary exception handlers
nezihyigitbasi Jun 7, 2017
603a034
Extract conversion from EquiJoinClause to ComparisonExpression
findepi Jun 7, 2017
1080d01
Fail when encrypted objects don't have unencrypted length header
nezihyigitbasi Apr 5, 2017
1218892
Updated timezone rules
hellium01 May 31, 2017
3284774
Introduce DummyMetadata
kokosing May 25, 2017
44fd6d5
Simple PlanNode matching in IterativeOptimizer
kokosing Jan 31, 2017
c856890
Fix test method typo
findepi Jun 8, 2017
214c1f6
Add missing timezones to zone-index
hellium01 Jun 9, 2017
e6792e8
Remove accidentally committed file
findepi Jun 9, 2017
44d517f
Add .editorconfig to .gitignore
findepi Jun 9, 2017
378f366
Add missing validations for Kerberos server configs
Jun 6, 2017
07f430b
Implement query timeout for PrestoStatement
caithagoras Jun 5, 2017
cdd2cfd
Add object overhead to estimated memory size
nezihyigitbasi May 13, 2017
6ac5605
Migrate properties description to separate doc page
fiedukow Jan 24, 2017
fc30c8c
Adjust properties doc page to fit new format
fiedukow Jan 24, 2017
b1e933a
Fix and extend existing properties description
fiedukow Jan 24, 2017
7072988
Add general properties description
fiedukow Jan 24, 2017
3186d4e
Add exchange properties description
fiedukow Jan 24, 2017
9245294
Add node scheduler properties description
fiedukow Jan 24, 2017
71c49fd
Fix maxUsedSpaceThreshold variable name
losipiuk Jun 6, 2017
2f5de96
Rename Driver.isBlocked to getBlockedFuture
findepi Jun 8, 2017
39add90
Fix race-condition in Driver checking memory overuse
findepi May 18, 2017
fadc589
Wait with LookupSourceFactory destruction until all users finish
findepi May 29, 2017
12eab0d
Fail LookupOuterOperator's future when getOuterPositionIterator() fails
findepi May 30, 2017
9348898
Increase build and probe table in join benchmarks
pnowojski May 26, 2017
685c20d
Do not use PositionLinks if they are empty
pnowojski May 26, 2017
36a68e6
Add default parameters to join benchmarks
pnowojski May 29, 2017
3de5d12
Add file based system access control
Apr 10, 2017
34e0659
Add catalog access control to AccessControl interface
May 31, 2017
8e6b53e
Document built-in system access control plugins
May 31, 2017
b13ea37
Expose grantee to AccessControl can grant checks
May 18, 2017
28678b3
Extract method to copy list of lists
findepi Jun 9, 2017
1ecba08
Fix exception handling in SpillableHashAggregationBuilder
findepi Jun 5, 2017
f40975c
Group related methods in PlanBuilder
losipiuk May 30, 2017
ba5d7b1
Default field values in AggregationBuilder
losipiuk May 30, 2017
8fe8c0b
Simplify plan building in TestPushAggregationThroughOuterJoin
losipiuk May 30, 2017
608d977
Simplify plan building in TestTransformCorrelatedScalarAggregationToJoin
losipiuk May 30, 2017
009f127
Drop unused aggregation() from PlanBuilder
losipiuk May 30, 2017
3542acc
Add AggregationBuilder.addGroupingSet method
losipiuk Jun 9, 2017
06e9f7a
Add optimizer properties description
fiedukow Jan 24, 2017
2a12dc0
Add table of contents to properties section
electrum Jun 12, 2017
42ca2fb
Fix typo in reserved-system-memory description
sanjay990 Jun 12, 2017
80c8dd0
Fix typo in resource groups documentation
nezihyigitbasi Jun 9, 2017
926179a
Add task properties description
fiedukow Jan 24, 2017
e1922b0
Revert "Avoid binding session for every row for lambda execution"
wenleix May 17, 2017
0c904db
Extend BindExpression to bind multiple values at a time
wenleix May 16, 2017
02d8b62
Add lambdaInterface field to ScalarFunctionImplementation
wenleix May 17, 2017
d1d92ff
Refactor BytecodeExpressionVisitor to RowExprssionCompiler
wenleix Jun 5, 2017
05f3141
Add context to RowExpressionCompiler
wenleix Jun 5, 2017
eb306e6
Refactor lambda bytecode generation into LambdaBytecodeGenerator
wenleix May 18, 2017
3f34aeb
Support compiling lambda as SAM class
wenleix May 18, 2017
517631b
Migrate parametric scalars to the new lambda execution framework
wenleix Jun 6, 2017
00587ea
Migrate rest functions to the new lambda execution framework
wenleix May 18, 2017
1657898
Remove compiling lambda as MethodHandle
wenleix May 19, 2017
f994e4e
Make FunctionType.getJavaType() fail
wenleix Jun 7, 2017
7269103
Fix correctness bug in PageFunctionCompiler
dain Jun 13, 2017
d306974
Simplify TestTopNOperator#testLimitZero
findepi May 31, 2017
b1547c5
Refactor OperatorAssertion.toPages
findepi May 31, 2017
57cb749
Fix OperatorAssertion#without to work regardless of indexes ordering
findepi May 31, 2017
9cf8cbc
Support blocking operators in OperatorAssertion.toPages
findepi May 31, 2017
21e3746
Rename Builder to FactoryBuilder
kokosing Jun 5, 2017
67dabf2
Fix formatting
kokosing Jun 5, 2017
ff2bdc5
Extract PositionLinks::Factory
kokosing Jun 5, 2017
82e77a6
Rename variable
kokosing Jun 5, 2017
cd65a15
Dont pass lessThanFunction to ArrayPositionLinks.FactoryBuilder
kokosing Jun 5, 2017
596b24c
Remove extra blank line
sanjay990 Jun 13, 2017
0da3435
Remove unused method
findepi Jun 13, 2017
dbfe98d
Add toString to OperatorContext
findepi Jun 8, 2017
e1aeb6c
Fix formatting
findepi Jun 12, 2017
b68ec9b
Update to Airlift 0.148
Jun 8, 2017
e875619
Redact values of sensitive config properties
Jun 8, 2017
08e7fa3
Recover the optimization in SliceArrayBlock
nezihyigitbasi Jun 8, 2017
5c4ff15
Close unused RuleTester instances in tests
sanjay990 Jun 12, 2017
226701f
Fix formatting
sanjay990 Jun 13, 2017
3babe23
Fix cli preprocessor stderr handling
dain Jun 11, 2017
747ee1c
Call cleanupQuery for queries that are canceled
nezihyigitbasi Jun 14, 2017
dac2e27
Add 0.179 release notes
dain Jun 14, 2017
d250dbf
[maven-release-plugin] prepare release 0.179
dain Jun 14, 2017
8d6a28d
[maven-release-plugin] prepare for next development iteration
dain Jun 14, 2017
c7b899f
Update Travis Java version
cawallin Jun 14, 2017
343315e
Improve product-tests README for SQL Server
sanjay990 Jun 13, 2017
5898a2e
Fix value skipping in ParquetShortDecimalColumnReader
Jun 12, 2017
c9d0525
Make TestFileBasedSystemAccessControl support concurrent test
dain Jun 15, 2017
2f12402
Ignore partition bucketing if table is not bucketed
electrum Jun 15, 2017
af18c02
Fix incorrect error on type mismatch for set operation
martint Jun 15, 2017
13e1496
Add Util.restrictOutputs()
alandpost Jun 7, 2017
ec45e2b
Add PruneSemiJoinColumns
alandpost Jun 8, 2017
5bd16f1
Add PruneSemiJoinFilteringSourceColumns
alandpost Jun 8, 2017
83bb292
Move column pruning rules to a separate set
alandpost Jun 14, 2017
6e5e1cf
Fix test of scalar correlated subquery
kokosing Jun 8, 2017
eeb9a4b
Add support LATERAL (query) to parser
ArturGajowy Nov 21, 2016
e3bf0b9
Add support for LATERAL to planner
losipiuk Nov 21, 2016
8cc6b1d
Transform correlated single row query to project
kokosing Jun 8, 2017
520b135
Extract PlanNodeDecorrelator
kokosing Jun 8, 2017
2450721
Transform correlated no-aggregation query to join
kokosing Jun 8, 2017
b6b8eb4
Test UNNEST and LATERAL with OUTER joins
kokosing Jun 14, 2017
fad2c88
Support INSERT for Cassandra connector
ebyhr May 19, 2017
b533744
Add regular expression properties description
rschlussel-zz Jan 24, 2017
696825b
Uppercase set operation name in error message
electrum Jun 15, 2017
026b4ef
Ensure everything is closed in SpillableHashAggregationBuilder
findepi Jun 8, 2017
25dcb4e
Add minimal DictionaryBlock constructor
findepi Jun 12, 2017
113bc67
Fix formatting
findepi Jun 13, 2017
3bf0784
Remove redundant parameter from DictionaryBlock constructor calls
findepi Jun 12, 2017
fd1419d
Add factory method for constructing dictionary pages
findepi Jun 12, 2017
64b8d73
Document and validate reserved keywords
electrum Jun 6, 2017
b7ed337
Make all non-standard reserved keywords non-reserved
electrum Jun 7, 2017
0a7b232
Alphabetize tokens and non-reserved list in grammar
electrum Jun 7, 2017
1d43bbd
Remove unimplemented POISSONIZED sample type
electrum Jun 15, 2017
f7852be
Remove obsolete comment
findepi Jun 16, 2017
319cdea
Add Thrift Connector API
May 8, 2017
dbf9fbb
Add Thrift Connector testing server
May 8, 2017
eec5e28
Add Thrift Connector
May 8, 2017
52e152a
Fix formatting
sanjay990 Jun 16, 2017
54e5ff1
Support secure internal communication
Nov 21, 2016
b8f8031
Add product tests suite for secured internal communication
Nov 21, 2016
4286e9d
Temporary workaround for providing keystore for Presto JDBC
Oct 7, 2016
190f260
Add product test that verifies HTTP port is closed on multinode-tls
Oct 10, 2016
9349fb0
Document encrypted internal communication
Sep 30, 2016
128ec5b
Separate product tests into 2 builds on travis
Nov 21, 2016
c9d786c
Document encryption performance impact
Nov 25, 2016
8f0d49f
Simplify AstUtils.nodeContains
findepi Jun 16, 2017
e92b0a0
Simplify AstUtils.preOrder
findepi Jun 16, 2017
c7a5a20
Simplify creation of Stream from Iterable with library method
findepi Jun 17, 2017
10c93df
Fix calls to HostAndPort.getHostText
findepi Jun 17, 2017
f75ec73
Support non-equality predicates pushdown for Cassandra clustering keys
sumitkgec Apr 14, 2017
67b0090
Move exec-maven-plugin configuration to execution
electrum Jun 19, 2017
121a193
Update maven-exec-plugin to 1.6.0
electrum Jun 19, 2017
2ef85e4
Remove Maven development profile for CLI
electrum Jun 19, 2017
b8a1bf4
Make base class for most iterative rule tests
alandpost Jun 19, 2017
7d11573
Reliably call Operator.finish() even if blocked
findepi Jun 5, 2017
c7a4e14
Organize imports
findepi Jun 20, 2017
c7203a5
Use tableScan for registered connector in TestRemoveEmptyDelete
losipiuk May 15, 2017
4588e6e
Change the return type of Block's size-related methods to long
nezihyigitbasi May 24, 2017
bc7c70e
Move config db testing methods to utility class
Jun 9, 2017
ca2fa96
Make H2TestUtil.NAME more descriptive
Jun 13, 2017
633d2fb
Change H2TestUtil session method names
Jun 13, 2017
91cfdc4
Refactor getSimpleQueryRunner in H2TestUtil
Jun 13, 2017
a1ba330
Refactor createQueryRunner in H2TestUtil
Jun 13, 2017
6272160
Remove abbreviated name in getDbConfigUrl
Jun 13, 2017
eb07511
Add runningTimeLimit and queuedTimeLimit to ResourceGroupInfo
Jun 14, 2017
b0fa5d2
Add ResourceGroupStateInfo entry point
Jun 10, 2017
7ca93c9
Bound sizes of blocks read from ORC files
highker Jun 13, 2017
191e72b
Remove unused PrestoHadoopConfiguration
electrum Jun 21, 2017
b0d0e0c
Do not wrap a Configuration that is already a JobConf
electrum Jun 21, 2017
e7557d9
Remove unnecessary stream in HiveMetadata
electrum Jun 21, 2017
20a5aa4
Rename DependencyExtractor to SymbolsExtractor
kokosing Jun 21, 2017
802f94e
Skip unknown costs in EXPLAIN output
findepi Jun 19, 2017
178f9f5
Add intermediate plan validatation
kokosing Apr 7, 2017
4fe87f4
Preserve javadoc and ordering for Swift classes
Jun 19, 2017
9f741f9
Improve error categorization in RCFileReader
nezihyigitbasi Jun 19, 2017
79ac4cc
Use the ExceptionWrappingMetadataReader to read the metadata
nezihyigitbasi Jun 21, 2017
00a8cfe
Add new interface to Block to get a breakdown retained sizes
highker May 23, 2017
e0e31d1
Add reference counting for BlockBigArray
highker May 23, 2017
53a3444
Add connectorId to NamenodeStats JMX name
dain Jun 21, 2017
c67e585
Add sanity check for @OperatorDependency and @FunctionDependency
haozhun Jun 21, 2017
a093aee
Move ArrayType, MapType, and RowType to SPI
haozhun Jun 21, 2017
c29b8a8
Add method to construct MapBlock from key/value blocks
haozhun Jun 21, 2017
6205771
Use MapBlock in ORC/Parquet reader
haozhun Jun 21, 2017
4a1c8dc
Migrate scalar functions to new map block in presto-main
haozhun Jun 21, 2017
c29d796
Migrate scalar functions to new map block in presto-ml
haozhun Jun 21, 2017
7d1e318
Remove intermediate BlockBuilder in MongoPageSource
haozhun Jun 21, 2017
244559f
Migrate presto-accumulo to new map block
haozhun Jun 21, 2017
3af3189
Make MapType.getObjectValue fail if a map does not use SingleMapBlock
haozhun Jun 21, 2017
75898b9
Improve TestMapBlock
haozhun Jun 21, 2017
b6a56ff
Minor style fixes to MapBlock
haozhun Jun 21, 2017
97d03b6
Add kill switch for population of hash table in map block
haozhun Jun 21, 2017
c313230
Assert that JoinNode hash symbols are for equijoins
alandpost Jun 20, 2017
08c922f
Add PruneCrossJoinColumns optimization rule
alandpost Jun 20, 2017
825a0ff
Add PruneJoinColumns optimization rule
alandpost Jun 20, 2017
66e93cd
Add PruneJoinChildrenColumns optimization rule
alandpost Jun 20, 2017
faa9130
Use restrictChildOutputs() in PruneCrossJoinColumns
alandpost Jun 20, 2017
d52a3ff
Fix pruning LateralNode when its symbols are unused
kokosing Jun 21, 2017
9bb48d0
Do not pass IsScalar throught FilterNode
kokosing Jun 21, 2017
b10d5c7
Add PruneMarkDistinctColumns optimization rule
alandpost May 24, 2017
c26d683
Use Util.restrictOutputs() in PushProjectionThroughExchange
alandpost Jun 22, 2017
55e42b1
Use Util.restrictOutputs() in EliminateCrossJoins
alandpost Jun 22, 2017
2cc8ab3
Remove Predicates.always{True,False} obsoleted by Guava
findepi Jun 22, 2017
ad6bee1
Fix formatting in RuleAssert
rschlussel-zz Jun 22, 2017
c50da23
Revert "Do not pass IsScalar throught FilterNode"
kokosing Jun 22, 2017
a4e3354
Update docker images version to 19
cawallin Jun 22, 2017
677eb82
Limit the size of ORC reader block to 1 GB
dain May 22, 2017
980b407
Fix TestBlockRetainedSizeBreakdown
highker Jun 22, 2017
7f0f62e
Fix error handling of RLE filter and projection
dain Jun 22, 2017
09a7978
Move Predicates util to com.facebook.presto.util.MorePredicates
ArturGajowy Jun 22, 2017
ff4a7dd
Add PlanBuilder.symbol(name) variant with default type
ArturGajowy Jun 22, 2017
28f4645
Remove duplicates of PlanBuilder.symbol(name)
ArturGajowy Jun 22, 2017
56b440d
Add PlanBuilder.markDistinct method
ArturGajowy Jun 22, 2017
f1e2368
Add tests for PushLimitThroughMarkDistinct rule
ArturGajowy Jun 22, 2017
b7dd5d0
Migrate TransformUncorrelatedLateralToJoin to Rule
ArturGajowy Jun 22, 2017
36d1afe
Migrate TransformUncorrelatedInPredicateSubqueryToSemiJoin to Rule
ArturGajowy Jun 22, 2017
15d1d00
Clean up RemoveUnreferencedScalarLateralNodes
ArturGajowy Jun 22, 2017
410c63c
Migrate RemoveUnreferencedScalarLateralNodes to Rule
ArturGajowy Jun 22, 2017
7fcf9d4
Make Util.pruneInputs return Optional<Set<Symbol>>
alandpost Jun 22, 2017
001c0e5
Use older Travis image
electrum Jun 23, 2017
859a02e
Check position count in Block and Page assertions
Feb 28, 2017
d243baf
Add configuration option to diable RCFile write validation
dain Jun 22, 2017
3ca2819
Enable new RCFile without validation by default
dain Jun 22, 2017
62a8af4
Use OkHttp for CLI and JDBC driver
electrum Mar 23, 2017
d46cf82
Allow configuring JDBC HTTP client per connection
electrum Mar 30, 2017
c4370c9
Simplify assertions in TestPrestoDriverUri
electrum Mar 29, 2017
defabcb
Improve properties/URL parameter handling
Jan 25, 2017
322c57d
Add support for SSL in JDBC driver
Jan 25, 2017
f7d2ddb
Extract base class for LDAP JDBC tests
electrum Mar 31, 2017
5a7d9d1
Add SSL LDAP product tests for Presto JDBC driver
electrum Mar 31, 2017
f978ab4
Add SOCKS proxy support for JDBC driver
electrum Mar 31, 2017
ce76411
Add HTTP proxy support for JDBC driver and CLI
electrum Apr 6, 2017
431f870
Add Kerberos support for JDBC driver
electrum Apr 10, 2017
7df7b6e
Fix statement resource handling of zero size pages
dain Jun 24, 2017
94d34ef
Fix formatting in QueryRewriter
sanjay990 Jun 26, 2017
9302693
Fix NPE in TestMemoryManager
electrum Jun 23, 2017
8091a67
Wait longer for schema agreement in Cassandra tests
Jun 22, 2017
920fc48
Retry when retrieving metadata in Cassandra tests
Jun 22, 2017
14cf725
Fix message for Hive partitions dropped during execution
electrum Jun 26, 2017
afe0c11
Remove redundant verify check
electrum Jun 26, 2017
5f0a575
Create a user friendly error message for Raptor
jessesleeping Apr 3, 2017
3f4a79d
Build instruction with maven wrapper
Lewuathe Jun 27, 2017
d4c4ad3
Fix PipelineContext fullyBlocked status check
raghavsethi Jun 27, 2017
d518b75
Add blocked drivers to StatementStats and StageStats
raghavsethi Jun 27, 2017
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,4 @@ benchmark_outputs
*.class
.checkstyle
.mvn/timing.properties
.editorconfig
25 changes: 18 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,17 @@ env:
- TEST_SPECIFIC_MODULES=presto-cassandra
- TEST_SPECIFIC_MODULES=presto-hive
- TEST_OTHER_MODULES=!presto-tests,!presto-raptor,!presto-accumulo,!presto-cassandra,!presto-hive,!presto-docs,!presto-server,!presto-server-rpm
- PRODUCT_TESTS=true
- PRODUCT_TESTS_BASIC_ENVIRONMENT=true
- PRODUCT_TESTS_SPECIFIC_ENVIRONMENT=true
- HIVE_TESTS=true

sudo: required
dist: trusty
group: deprecated-2017Q2
addons:
apt:
packages:
- oracle-java8-installer

cache:
directories:
Expand All @@ -40,7 +46,7 @@ install:
./mvnw install $MAVEN_FAST_INSTALL -pl '!presto-docs,!presto-server,!presto-server-rpm'
fi
- |
if [[ -v PRODUCT_TESTS ]]; then
if [[ -v PRODUCT_TESTS_BASIC_ENVIRONMENT || -v PRODUCT_TESTS_SPECIFIC_ENVIRONMENT ]]; then
./mvnw install $MAVEN_FAST_INSTALL -pl '!presto-docs,!presto-server-rpm'
fi
- |
Expand All @@ -62,28 +68,33 @@ script:
./mvnw test $MAVEN_SKIP_CHECKS_AND_DOCS -B -pl $TEST_OTHER_MODULES
fi
- |
if [[ -v PRODUCT_TESTS ]]; then
if [[ -v PRODUCT_TESTS_BASIC_ENVIRONMENT ]]; then
presto-product-tests/bin/run_on_docker.sh \
multinode -x quarantine,big_query,storage_formats,profile_specific_tests,tpcds
fi
- |
if [[ -v PRODUCT_TESTS ]]; then
if [[ -v PRODUCT_TESTS_SPECIFIC_ENVIRONMENT ]]; then
presto-product-tests/bin/run_on_docker.sh \
singlenode-kerberos-hdfs-impersonation -g storage_formats,cli,hdfs_impersonation,authorization
fi
- |
if [[ -v PRODUCT_TESTS ]]; then
if [[ -v PRODUCT_TESTS_SPECIFIC_ENVIRONMENT ]]; then
presto-product-tests/bin/run_on_docker.sh \
singlenode-ldap -g ldap_cli
singlenode-ldap -g ldap -x simba_jdbc
fi
# SQL server image sporadically hangs during the startup
# TODO: Uncomment it once issue is fixed
# https://github.com/Microsoft/mssql-docker/issues/76
# - |
# if [[ -v PRODUCT_TESTS ]]; then
# if [[ -v PRODUCT_TESTS_SPECIFIC_ENVIRONMENT ]]; then
# presto-product-tests/bin/run_on_docker.sh \
# singlenode-sqlserver -g sqlserver
# fi
- |
if [[ -v PRODUCT_TESTS_SPECIFIC_ENVIRONMENT ]]; then
presto-product-tests/bin/run_on_docker.sh \
multinode-tls -g smoke,cli,group-by,join,tls
fi
- |
if [[ -v HIVE_TESTS ]]; then
presto-hive-hadoop2/bin/run_on_docker.sh
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ See the [User Manual](https://prestodb.io/docs/current/) for deployment instruct

Presto is a standard Maven project. Simply run the following command from the project root directory:

mvn clean install
./mvnw clean install

On the first build, Maven will download all the dependencies from the internet and cache them in the local repository (`~/.m2/repository`), which can take a considerable amount of time. Subsequent builds will be faster.

Presto has a comprehensive set of unit tests that can take several minutes to run. You can disable the tests when building:

mvn clean install -DskipTests
./mvnw clean install -DskipTests

## Running Presto in your IDE

Expand Down
170 changes: 116 additions & 54 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
<parent>
<groupId>io.airlift</groupId>
<artifactId>airbase</artifactId>
<version>62</version>
<version>64</version>
</parent>

<groupId>com.facebook.presto</groupId>
<artifactId>presto-root</artifactId>
<version>0.175-SNAPSHOT</version>
<version>0.180-SNAPSHOT</version>
<packaging>pom</packaging>

<name>presto-root</name>
Expand Down Expand Up @@ -47,15 +47,15 @@
<air.maven.version>3.3.9</air.maven.version>

<dep.antlr.version>4.6</dep.antlr.version>
<dep.airlift.version>0.145</dep.airlift.version>
<dep.airlift.version>0.148</dep.airlift.version>
<dep.packaging.version>${dep.airlift.version}</dep.packaging.version>
<dep.slice.version>0.29</dep.slice.version>
<dep.aws-sdk.version>1.11.30</dep.aws-sdk.version>
<dep.tempto.version>1.30</dep.tempto.version>
<dep.okhttp.version>3.8.1</dep.okhttp.version>
<dep.tempto.version>1.31</dep.tempto.version>
<dep.testng.version>6.10</dep.testng.version>

<cli.skip-execute>true</cli.skip-execute>
<cli.main-class>None</cli.main-class>
<dep.nifty.version>0.15.1</dep.nifty.version>
<dep.swift.version>0.15.2</dep.swift.version>

<!-- use a fractional hour timezone offset for tests -->
<air.test.timezone>Asia/Katmandu</air.test.timezone>
Expand All @@ -81,10 +81,7 @@
<module>presto-orc</module>
<module>presto-rcfile</module>
<module>presto-hive</module>
<module>presto-hive-hadoop1</module>
<module>presto-hive-hadoop2</module>
<module>presto-hive-cdh4</module>
<module>presto-hive-cdh5</module>
<module>presto-teradata-functions</module>
<module>presto-example-http</module>
<module>presto-local-file</module>
Expand Down Expand Up @@ -114,6 +111,9 @@
<module>presto-plugin-toolkit</module>
<module>presto-resource-group-managers</module>
<module>presto-benchto-benchmarks</module>
<module>presto-thrift-connector-api</module>
<module>presto-thrift-testing-server</module>
<module>presto-thrift-connector</module>
</modules>

<dependencyManagement>
Expand Down Expand Up @@ -180,13 +180,6 @@
<version>${project.version}</version>
</dependency>

<dependency>
<groupId>com.facebook.presto</groupId>
<artifactId>presto-hive-cdh4</artifactId>
<version>${project.version}</version>
<type>zip</type>
</dependency>

<dependency>
<groupId>com.facebook.presto</groupId>
<artifactId>presto-example-http</artifactId>
Expand Down Expand Up @@ -337,32 +330,46 @@

<dependency>
<groupId>com.facebook.presto.hadoop</groupId>
<artifactId>hadoop-apache1</artifactId>
<version>0.4</version>
<artifactId>hadoop-apache2</artifactId>
<version>2.7.3-1</version>
</dependency>

<dependency>
<groupId>com.facebook.presto.hadoop</groupId>
<artifactId>hadoop-apache2</artifactId>
<version>0.10</version>
<groupId>com.facebook.presto.hive</groupId>
<artifactId>hive-apache</artifactId>
<version>1.2.0-2</version>
</dependency>

<dependency>
<groupId>com.facebook.presto.hadoop</groupId>
<artifactId>hadoop-cdh4</artifactId>
<version>0.10</version>
<groupId>com.facebook.presto.orc</groupId>
<artifactId>orc-protobuf</artifactId>
<version>3</version>
</dependency>

<dependency>
<groupId>com.facebook.presto.hive</groupId>
<artifactId>hive-apache</artifactId>
<version>1.2.0-1</version>
<groupId>com.facebook.presto</groupId>
<artifactId>presto-thrift-connector-api</artifactId>
<version>${project.version}</version>
</dependency>

<dependency>
<groupId>com.facebook.presto.orc</groupId>
<artifactId>orc-protobuf</artifactId>
<version>2</version>
<groupId>com.facebook.presto</groupId>
<artifactId>presto-thrift-connector-api</artifactId>
<version>${project.version}</version>
<type>test-jar</type>
</dependency>

<dependency>
<groupId>com.facebook.presto</groupId>
<artifactId>presto-thrift-testing-server</artifactId>
<version>${project.version}</version>
</dependency>

<dependency>
<groupId>com.facebook.presto</groupId>
<artifactId>presto-thrift-connector</artifactId>
<version>${project.version}</version>
<type>zip</type>
</dependency>

<dependency>
Expand All @@ -374,7 +381,7 @@
<dependency>
<groupId>io.airlift</groupId>
<artifactId>aircompressor</artifactId>
<version>0.5</version>
<version>0.7</version>
</dependency>

<dependency>
Expand Down Expand Up @@ -455,6 +462,12 @@
<version>${dep.airlift.version}</version>
</dependency>

<dependency>
<groupId>io.airlift</groupId>
<artifactId>jaxrs-testing</artifactId>
<version>${dep.airlift.version}</version>
</dependency>

<dependency>
<groupId>io.airlift</groupId>
<artifactId>jmx</artifactId>
Expand Down Expand Up @@ -566,7 +579,7 @@
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>5.1.35</version>
<version>5.1.41</version>
</dependency>

<dependency>
Expand Down Expand Up @@ -619,6 +632,54 @@
<version>2.78</version>
</dependency>

<dependency>
<groupId>com.squareup.okhttp3</groupId>
<artifactId>okhttp</artifactId>
<version>${dep.okhttp.version}</version>
</dependency>

<dependency>
<groupId>com.squareup.okhttp3</groupId>
<artifactId>mockwebserver</artifactId>
<version>${dep.okhttp.version}</version>
</dependency>

<dependency>
<groupId>com.facebook.swift</groupId>
<artifactId>swift-annotations</artifactId>
<version>${dep.swift.version}</version>
</dependency>

<dependency>
<groupId>com.facebook.swift</groupId>
<artifactId>swift-codec</artifactId>
<version>${dep.swift.version}</version>
</dependency>

<dependency>
<groupId>com.facebook.swift</groupId>
<artifactId>swift-service</artifactId>
<version>${dep.swift.version}</version>
</dependency>

<dependency>
<groupId>com.facebook.swift</groupId>
<artifactId>swift-javadoc</artifactId>
<version>${dep.swift.version}</version>
</dependency>

<dependency>
<groupId>com.facebook.nifty</groupId>
<artifactId>nifty-core</artifactId>
<version>${dep.nifty.version}</version>
</dependency>

<dependency>
<groupId>com.facebook.nifty</groupId>
<artifactId>nifty-client</artifactId>
<version>${dep.nifty.version}</version>
</dependency>

<dependency>
<groupId>org.apache.thrift</groupId>
<artifactId>libthrift</artifactId>
Expand Down Expand Up @@ -897,7 +958,7 @@
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>1.2.1</version>
<version>1.6.0</version>
</plugin>

<plugin>
Expand All @@ -919,6 +980,27 @@
</configuration>
</plugin>

<plugin>
<groupId>com.ning.maven.plugins</groupId>
<artifactId>maven-dependency-versions-check-plugin</artifactId>
<configuration>
<exceptions>
<exception>
<groupId>com.google.inject</groupId>
<artifactId>guice</artifactId>
<expectedVersion>4.0-beta5</expectedVersion>
<resolvedVersion>4.0</resolvedVersion>
</exception>
<exception>
<groupId>com.google.inject.extensions</groupId>
<artifactId>guice-multibindings</artifactId>
<expectedVersion>4.0-beta5</expectedVersion>
<resolvedVersion>4.0</resolvedVersion>
</exception>
</exceptions>
</configuration>
</plugin>

<!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.-->
<plugin>
<!--suppress MavenModelInspection -->
Expand Down Expand Up @@ -1094,26 +1176,6 @@
</build>

<profiles>
<!-- run cli for development: mvn -am -pl presto-cli -P cli compile exec:java -->
<profile>
<id>cli</id>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<configuration>
<skip>${cli.skip-execute}</skip>
<executable>${java.home}/bin/java</executable>
<mainClass>${cli.main-class}</mainClass>
<arguments>
<argument>--debug</argument>
</arguments>
</configuration>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>eclipse-compiler</id>
<build>
Expand Down
8 changes: 7 additions & 1 deletion presto-accumulo/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>com.facebook.presto</groupId>
<artifactId>presto-root</artifactId>
<version>0.175-SNAPSHOT</version>
<version>0.180-SNAPSHOT</version>
</parent>

<artifactId>presto-accumulo</artifactId>
Expand Down Expand Up @@ -317,5 +317,11 @@
<artifactId>testng</artifactId>
<scope>test</scope>
</dependency>

<dependency>
<groupId>javax.annotation</groupId>
<artifactId>javax.annotation-api</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
</project>
Loading