+0
日增长
16,774
stars
5,551
forks
814
watchers
21,245
prs
7,400
issues
19
releases
README
Presto
Presto is a distributed SQL query engine for big data.
See the Presto installation documentation for deployment instructions.
See the Presto documentation for general documentation.
Mission and Architecture
See PrestoDB: Mission and Architecture.
Requirements
Mac OS X or Linux
Java 17 64-bit. Both Oracle JDK and OpenJDK are supported.
Maven 3.6.3+ (for building)
Python 2.4+ (for running with the launcher script)
Building Presto
Overview (Java)
Presto is a standard Maven project. Simply run the following command from the project root directory:
./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.
When building multiple Presto projects locally, each project may write updates to the user's global M2 cache, which could cause build issues. You can configure your local .mvn/maven.config to support a local cache specific to that project via -Dmaven.repo.local=./.m2/repository.
Presto has a comprehensive set of unit tests that can take several minutes to run. You can disable the tests when building:
./mvnw clean install -DskipTests
After building Presto for the first time, you can load the project into your IDE and run the server. We recommend using IntelliJ IDEA. Because Presto is a standard Maven project, you can import it into your IDE using the root pom.xml file. In IntelliJ, choose Open Project from the Quick Start box or choose Open from the File menu and select the root pom.xml file.
After opening the project in IntelliJ, double check that the Java SDK is properly configured for the project:
Open the File menu and select Project Structure
In the SDKs section, ensure that a distribution of JDK 17 is selected (create one if none exist)
In the Project section, ensure the Project language level is set to at least 8.0.
When using JDK 17, an IntelliJ bug requires you
to disable the Use '--release' option for cross-compilation (Java 9 and later) setting in
Settings Build, Execution, Deployment Compiler Java Compiler. If this option remains enabled,
you may encounter errors such as: package sun.misc does not exist because IntelliJ fails to resolve
certain internal JDK classes.
Presto comes with sample configuration that should work out-of-the-box for development. Use the following options to create a run configuration:
Main Class: com.facebook.presto.server.PrestoServer
VM Options: -ea -XX:+UseG1GC -XX:G1HeapRegionSize=32M -XX:+UseGCOverheadLimit -XX:+ExplicitGCInvokesConcurrent -Xmx2G -Dconfig=etc/config.properties -Dlog.levels-file=etc/log.properties -Djdk.attach.allowAttachSelf=true
Working directory: $MODULE_WORKING_DIR$ or $MODULE_DIR$(Depends your version of IntelliJ)
Use classpath of module: presto-main
The working directory should be the presto-main subdirectory. In IntelliJ, using $MODULE_DIR$ acTop issues
#8980Feature Request: Ranger authorization integration66 comments · 2017-09-15#13856[Design] Presto-on-Spark: A Tale of Two Computation Engines46 comments · 2019-12-12#24276Optimizer improvements for TPCDS45 comments · 2024-12-18#5918Variable support45 comments · 2016-08-22#10301Presto with clustered Hive tables fails if all buckets not created40 comments · 2018-03-30#19744Optimize queries with similar subplans (CTE) 38 comments · 2023-05-26#21926Redesign Exchange protocol to reduce query latency37 comments · 2024-02-14#2863Add support for case sensitive identifiers35 comments · 2015-05-04
Discussions
#28304Do we need to run all the other Java test suites in CI for changes made only to the `presto-ui` module?1 comments · 2026-08-10#26691Proposal: Security Assessment from Team Atlanta (DARPA AIxCC)2 comments · 2025-11-25#26569Connection Validation Behavior in Presto JDBC Driver , Is Lazy Validation Intentional?1 comments · 2025-11-10#26207Conventional Commits Now Required for All PRs1 comments · 2025-10-01#25887Any plan to support Infinity and -Infinity for floating point values?1 comments · 2025-08-25#25600docker compose build centos-native-dependency0 comments · 2025-07-23#25366Add SQL pipe syntax to Presto1 comments · 2025-06-18#25198In the iceberg equality delete as join solution, why do we need to use the partition field as the join key?2 comments · 2025-05-26
Latest release
Presto 0.300 0.300 2026-11-04See the release notes at https://prestodb.io/docs/current/release/release-0.300.html