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

Upgrade to 181 #98

Merged
merged 280 commits into from
Jul 27, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
280 commits
Select commit Hold shift + click to select a range
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
e0a9e61
Extract joinNode variable
kokosing Jun 23, 2017
04126de
Replace ScalarQueryUtil with QueryCardinalityUtil
kokosing Jun 23, 2017
9a8d609
Remove SATURATED_FLOOR_CAST double->decimal
losipiuk Jun 27, 2017
a516c00
Remove SATURATED_FLOOR_CAST double->bigint
losipiuk Jun 27, 2017
47e6280
Remove SATURATED_FLOOR_CAST real->[bigint,integer]
losipiuk Jun 27, 2017
c4a87df
Refactor to use sqlVarbinaryHex in TestVarbinaryFunctions
wenleix May 24, 2017
3b735df
Add VARBINARY concatenation support
wenleix May 16, 2017
98b5372
Remove extra blank line in JDBC metadata query
electrum Jun 28, 2017
286cff5
Fix NoClassDefFound for annotation based non-static scalar functions
haozhun Jun 28, 2017
89da491
Rename product test group ml_connector to ml_functions
haozhun Jun 28, 2017
7c64e31
Fix product test ml_functions to avoid constant folding
haozhun Jun 28, 2017
4262d67
Add documentation for Thrift connector
Jun 27, 2017
5887792
Automatically validate Thrift connector IDL
Jun 27, 2017
82e21f5
Add documentation for Thrift Value Set
Jun 28, 2017
b925500
Add new error code HIVE_PARTITION_DROPPED_DURING_QUERY
electrum Jun 29, 2017
35c275f
Fix formatting in Secure Internal Communication docs
electrum Jun 29, 2017
9cc3803
Add documentation for new JDBC driver features
electrum Jun 30, 2017
6a0aaa8
Add 0.180 release notes
electrum Jun 29, 2017
e73d416
[maven-release-plugin] prepare release 0.180
electrum Jun 30, 2017
9a8d593
[maven-release-plugin] prepare for next development iteration
electrum Jun 30, 2017
40fa566
Add missing JsonCreator annotation
miniway Jun 30, 2017
d00e4f2
Introduce the concept of QueryType to QueryExecution
nezihyigitbasi Jun 23, 2017
8748215
Add support for selecting resource groups based on query type
nezihyigitbasi Jun 26, 2017
9b9b7a5
Update resource groups documentation
nezihyigitbasi Jun 26, 2017
a59abf1
Export waiting time counters
raghavsethi May 3, 2017
473384a
Rewrite TaskExecutorSimulator and add experiments
raghavsethi Apr 15, 2017
98cfccd
Move TestTaskExecutor to executor package
raghavsethi May 3, 2017
d743fb0
Change local scheduling to be fair within a level
raghavsethi Apr 15, 2017
2395e96
Change local scheduling to guarantee a time share to levels
raghavsethi Apr 26, 2017
a865cde
Add null checks to TaskHandle constructor
raghavsethi Jun 23, 2017
cc5e2f5
Add flag to switch to legacy local scheduling behavior
raghavsethi Jun 27, 2017
f9f3542
Replace deprecated usage of propagateIfInstanceOf
nezihyigitbasi Jun 30, 2017
c20f57d
Remove unused fields
nezihyigitbasi Jun 27, 2017
e634769
Fix flaky test TestQueues.testTooManyQueries
nezihyigitbasi Jun 27, 2017
2d1c689
Increase the timeout of TestQueues.testTooManyQueries
nezihyigitbasi Jun 29, 2017
1b356c3
Fix flaky level multipliers test by increasing tolerances
raghavsethi Jun 30, 2017
72e7ec5
Fix broken links in product-tests README
sanjay990 Jul 1, 2017
3fa2f71
Assign type to symbol in TestRemoveUnreferencedScalarLateralNodes
losipiuk Jun 29, 2017
6996a93
Add information about rows distribution per task to explain analyze
maciejgrzybek Apr 27, 2017
c631c5e
Provide assertQueryOrdered overload that accepts session
findepi Jun 16, 2017
842dc10
Expose aggregation keys that are also source fields to ORDER BY
findepi Jun 13, 2017
1ebafcc
Auto-reformat the WindowOperator
maciejgrzybek Mar 23, 2017
cc03378
Add missing test for explain analyze with type specified
maciejgrzybek Mar 23, 2017
17a868a
Add VERBOSE option to EXPLAIN
maciejgrzybek Mar 23, 2017
dcb967f
Add additional statistics for WindowOperator
maciejgrzybek Feb 14, 2017
5feaf2e
Move Mergeable to Util package
maciejgrzybek Jun 1, 2017
4f7854b
Make Mergeable capable of merging Optionals
maciejgrzybek Jun 1, 2017
0318d40
Make PlanNodeStats Mergeable
maciejgrzybek Jun 1, 2017
e295d3b
Print window node specific statistics in explain analyze
Feb 15, 2017
51e61b8
Prevent providing WindowInfo before the operator finishes
maciejgrzybek Mar 23, 2017
896b554
Add documentation for EXPLAIN ANALYZE VERBOSE mode
maciejgrzybek Apr 17, 2017
7488862
Remove redundant by-hand memoization of Assignments#getOutputs()
ArturGajowy Mar 17, 2017
423b7ea
Add Assignments#equals() and Assignments#hashCode()
ArturGajowy Mar 17, 2017
a4b0852
Add PlanBuilder.join(...) overload with a filter parameter
ArturGajowy Jun 22, 2017
db475bf
Add PlanBuilder.tableScan(...) overloads with originalConstraint
ArturGajowy Jun 22, 2017
77de222
Support matching originalConstraint in plan matcher
ArturGajowy Jun 23, 2017
2d839ed
Migrate CanonicalizeExpressions to Rule
ArturGajowy Mar 17, 2017
fd502f0
Add RemoveTrivialFilters rule
ArturGajowy Jul 3, 2017
91fb55c
Simplify Assignments usage
kokosing Jul 3, 2017
7c9f719
Glue IterativeOptimizers which are next to each other
kokosing Jul 4, 2017
b61cb7f
Optimize count queries for fixed cardinality
Jun 6, 2017
683a62f
Update docker images version to 20
sanjay990 Jun 30, 2017
9dfbf93
Move providing OuterPositionIterator to LookupSourceFactory
findepi Jun 8, 2017
e68b875
fixup! Move providing OuterPositionIterator to LookupSourceFactory
findepi Jun 13, 2017
c6df1f2
fixup! Move providing OuterPositionIterator to LookupSourceFactory
findepi Jun 21, 2017
e7a5ab4
Fix SingleMapBlock instance size field
nezihyigitbasi Jul 5, 2017
bb0a72b
Fix bug where PageBuilder is not reset when full in functions
haozhun Jul 5, 2017
a083b90
Fix potential overflow in getRegionSizeInBytes calculations
nezihyigitbasi Jul 5, 2017
7c5b3b8
Fix potential overflow in calculateCompactSize
nezihyigitbasi Jul 5, 2017
bbfe437
Add Maven dependency to JDBC driver documentation
electrum Jun 30, 2017
c99f00c
Improve documentation for EXPLAIN ANALYZE VERBOSE
electrum Jul 5, 2017
df87ed0
Check for IndexSourceNode domain handle symbols
alandpost Jun 5, 2017
794dbe5
Add PruneIndexSourceColumns optimization rule
alandpost Jun 5, 2017
b2fc861
Extract MoreLists.filter method
kokosing Jun 23, 2017
abc5784
Use fiterkeys instead of filtering manually
kokosing Jul 6, 2017
0e4eaa8
Fix potential overflow in getSizeInBytes
nezihyigitbasi Jul 6, 2017
1755357
Don't return full thrift split in "getSplitInfo()"
Jul 7, 2017
44a9878
Don't check if a future is done in thrift page src
Jul 7, 2017
1c78f53
Remove outdated comment
kokosing Jul 7, 2017
f119b98
Move pattern matching to separate package
kokosing Jun 27, 2017
e4eb06d
Rename test to match its responsibilty
kokosing Jun 29, 2017
0ffb42e
Check interfaces of given object when checking pattern
kokosing Jun 29, 2017
19cd8ab
Support FOREIGN TABLE for PostgreSQL
miniway Jul 5, 2017
a8cf076
Fix InlineProjections on subqueries
alandpost Jul 7, 2017
5eea8dd
Fix native memory leak in RCFile writer
highker Jul 8, 2017
1b2ed1c
Make travis upload PR artifacts to different directory
fiedukow Jul 6, 2017
0b1a3b0
Make PagesIndex.clear() free memory
findepi Jun 14, 2017
2b898db
Fix PagesIndex compaction after clear()
findepi Jun 14, 2017
6ae5918
Use a builder for WindowNode matching
alandpost Jun 30, 2017
a25ff10
Add more complete WindowNode matching
alandpost Jul 5, 2017
a6e2fe5
Fix unit test flakiness
kokosing Jul 8, 2017
ea7d068
Implement Statement.cancel() in JDBC driver
arbfranklin Dec 30, 2016
df85179
Link to committing guideline in README
findepi Jun 21, 2017
9c164d4
Reduce number of FileSystem.getFileStatus() calls
zhenxiao Jun 22, 2017
53e650b
Improve error handling for varargs functions
caithagoras Jun 5, 2017
7136430
Close block builder before throwing
nezihyigitbasi Jul 6, 2017
8bf441a
Fix failing test for SQL Server
sanjay990 Jun 27, 2017
985ee4a
Add access control check for DROP COLUMN
electrum Jul 11, 2017
d70b505
Add execution for DROP COLUMN
ebyhr Jun 12, 2017
7629b25
Support DROP COLUMN for Hive
ebyhr Jun 12, 2017
ea4fede
Support DROP COLUMN for Raptor
ebyhr Jun 12, 2017
b18e1c9
Add RemoveUnreferencedScalarApplyNodes rule
kokosing Jul 11, 2017
f819365
Remove Lateral input when it is not needed
kokosing Jul 11, 2017
4c62f6e
Add basic example to JDBC documentation
electrum Jul 11, 2017
6d619dc
Minor changes to AbstractTestBlock
haozhun Jul 11, 2017
777c57d
Test that cachedInstance in scalar function uses bounded memory
haozhun Jul 11, 2017
faa36df
Add unit testing infra for TableWriter and Union
rschlussel-zz Feb 20, 2017
99fc965
Add newSymbol() method that accepts a symbol
rschlussel-zz Jul 11, 2017
a7f3fba
Migrate PushTableWriteThroughUnion
rschlussel-zz Jun 2, 2017
80f6b1f
Remove extra explicit type
kokosing Jul 7, 2017
4e456e7
Use Comparator.comparing in EliminateCrossJoins
kokosing Jul 7, 2017
925a080
Introduce Rule.Context
kokosing Jul 7, 2017
29ac2fa
Handle UncheckedIOException in RcFileFileWriter
dain Jul 11, 2017
3fca275
Fix serialization of HeartbeatFailureDetector.Stats
Jul 11, 2017
e0605c2
Remove unused QueryExplanation class
findepi Jul 13, 2017
9c62693
Fix race condition for CREATE TABLE IF NOT EXISTS
sfilipco May 22, 2017
fb09d0b
Fixup merge conflict for CREATE TABLE IF NOT EXISTS
highker Jul 14, 2017
1c46d7b
Parallelize Accumulo index range scanning
adamjshook Jun 5, 2016
7f49ee0
Add sub group information to ResourceGroupStateInfo
Jul 13, 2017
ee1030b
Factor out ProjectOffPushDownRule
alandpost Jun 22, 2017
56ce00e
Rename method to recurseOnlyWhen
kokosing Jul 12, 2017
e85fdc3
Add missing javadoc
kokosing Jul 11, 2017
b5cd782
Streamline Matcher toString() methods
kokosing Jul 11, 2017
acd59b1
Refactor ExpressionVerifier: change context to Node
kokosing Jul 11, 2017
db0ad59
Support more expressions in ExpressionVerfifier
kokosing Jul 11, 2017
e9c459a
Disable fake support for subquery nodes
kokosing Jul 11, 2017
bdf8574
Add PruneOutputColumns rule
alandpost Jun 15, 2017
631c22f
Fix thread-safety of SpillContexts
findepi Jun 8, 2017
efa4e9b
Prevent accidental wrong use of OperatorSpillContext
findepi Jun 12, 2017
c75a1ae
Add documentation for date function
prateek1306 Jul 16, 2017
89b4818
Remove deprecation in PlanNodeSearcher
kokosing Jul 17, 2017
cb3388a
Use zlib from JDK instead of Hadoop for RCFile
highker Jul 12, 2017
a8530aa
Make sure we close the output stream on close()
nezihyigitbasi Jul 17, 2017
ec3ddb7
Add 0.181 release notes
martint Jul 18, 2017
5266fb1
Fix humongous allocation when computing retained size for SliceArrayB…
wenleix Jul 19, 2017
a0c4425
Update 0.181 release notes
wenleix Jul 19, 2017
fa26528
[maven-release-plugin] prepare release 0.181
martint Jul 19, 2017
d8a6e9e
avoid unnecessary version conflict during merge
Jul 27, 2017
791d3d5
merged 0.181, resolved conflicts
Jul 27, 2017
c8a76bb
use twitter tag 0.181-tw-0.37, update ThriftHiveRecordCursorProvider …
Jul 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
  •  
  •  
  •  
35 changes: 27 additions & 8 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ env:
- MAVEN_OPTS="-Xmx512M -XX:+ExitOnOutOfMemoryError"
- MAVEN_SKIP_CHECKS_AND_DOCS="-Dair.check.skip-all=true -Dmaven.javadoc.skip=true"
- MAVEN_FAST_INSTALL="-DskipTests $MAVEN_SKIP_CHECKS_AND_DOCS -B -q -T C1"
- ARTIFACTS_UPLOAD_PATH=travis_build_artifacts/${TRAVIS_REPO_SLUG}/${TRAVIS_BRANCH}/${TRAVIS_BUILD_NUMBER}
- ARTIFACTS_UPLOAD_PATH_BRANCH=travis_build_artifacts/${TRAVIS_REPO_SLUG}/${TRAVIS_BRANCH}/${TRAVIS_BUILD_NUMBER}
- ARTIFACTS_UPLOAD_PATH_PR=travis_build_artifacts_pr/${TRAVIS_REPO_SLUG}/${TRAVIS_BRANCH}/${TRAVIS_BUILD_NUMBER}
- TEST_FLAGS=""
matrix:
- MAVEN_CHECKS=true
Expand All @@ -16,11 +17,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,14 +47,21 @@ 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
- |
if [[ -v HIVE_TESTS ]]; then
./mvnw install $MAVEN_FAST_INSTALL -pl presto-hive-hadoop2 -am
fi

before_script:
- |
export ARTIFACTS_UPLOAD_PATH=${ARTIFACTS_UPLOAD_PATH_BRANCH}
if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then
export ARTIFACTS_UPLOAD_PATH=${ARTIFACTS_UPLOAD_PATH_PR}
fi

script:
- |
if [[ -v MAVEN_CHECKS ]]; then
Expand All @@ -62,28 +76,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
5 changes: 3 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 Expand Up @@ -83,3 +83,4 @@ We recommend you use IntelliJ as your IDE. The code style template for the proje
* Consider using String formatting (printf style formatting using the Java `Formatter` class): `format("Session property %s is invalid: %s", name, value)` (note that `format()` should always be statically imported). Sometimes, if you only need to append something, consider using the `+` operator.
* Avoid using the ternary operator except for trivial expressions.
* Use an assertion from Airlift's `Assertions` class if there is one that covers your case rather than writing the assertion by hand. Over time we may move over to more fluent assertions like AssertJ.
* When writing a Git commit message, follow these [guidelines](https://chris.beams.io/posts/git-commit/).
134 changes: 106 additions & 28 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

<groupId>com.facebook.presto</groupId>
<artifactId>presto-root</artifactId>
<version>0.179-tw-0.36</version>
<version>0.181-tw-0.37</version>
<packaging>pom</packaging>

<name>presto-root</name>
Expand All @@ -30,7 +30,7 @@
<scm>
<connection>scm:git:git://github.com/twitter-forks/presto.git</connection>
<url>https://github.com/twitter-forks/presto</url>
<tag>0.179-tw-0.36</tag>
<tag>0.181-tw-0.37</tag>
</scm>

<properties>
Expand All @@ -51,11 +51,11 @@
<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.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 Down Expand Up @@ -112,6 +112,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 @@ -344,6 +347,32 @@
<version>3</version>
</dependency>

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

<dependency>
<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>
<groupId>com.facebook.hive</groupId>
<artifactId>hive-dwrf</artifactId>
Expand All @@ -353,7 +382,7 @@
<dependency>
<groupId>io.airlift</groupId>
<artifactId>aircompressor</artifactId>
<version>0.7</version>
<version>0.8</version>
</dependency>

<dependency>
Expand Down Expand Up @@ -604,6 +633,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 @@ -693,7 +770,7 @@
<dependency>
<groupId>io.airlift</groupId>
<artifactId>testing-postgresql-server</artifactId>
<version>9.6.1-1</version>
<version>9.6.3-1</version>
</dependency>

<dependency>
Expand Down Expand Up @@ -890,7 +967,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 @@ -912,6 +989,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 @@ -1087,26 +1185,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
2 changes: 1 addition & 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.179-tw-0.36</version>
<version>0.181-tw-0.37</version>
</parent>

<artifactId>presto-accumulo</artifactId>
Expand Down
Loading