EDUCBA

EDUCBA

MENUMENU
  • Free Tutorials
  • Free Courses
  • Certification Courses
  • 360+ Courses All in One Bundle
  • Login
Home Data Science Data Science Tutorials Head to Head Differences Tutorial Spark SQL vs Presto
Secondary Sidebar
Head to Head Differences Tutorial
  • Differences Tutorial
    • Scikit Learn vs TensorFlow
    • Azure Functions vs Logic Apps
    • Azure Data Factory vs Databricks
    • SHA1 vs MD5
    • Azure SQL Database vs Managed Instance
    • Azure SQL Database vs SQL Server
    • PostgreSQL vs MySQL
    • PostgreSQL vs MySQL Benchmark
    • ArangoDB vs MongoDB
    • Cloud Computing vs Big Data Analytics
    • T-SQL vs SQL
    • PostgreSQL vs MariaDB
    • Spark vs Impala
    • Datadog vs Splunk
    • Domo vs Tableau
    • Data Scientist vs Data Engineer vs Statistician
    • Big Data Vs Machine Learning
    • Predictive Analytics vs Business Intelligence
    • AI vs Machine Learning vs Deep Learning
    • Business Intelligence vs Data Warehouse
    • Apache Kafka vs Flume
    • Data Science vs Machine Learning
    • Business Analytics Vs Predictive Analytics
    • Data mining vs Web mining
    • Data Science Vs Data Mining
    • Data Science Vs Business Analytics
    • Analyst vs Associate
    • Apache Hive vs Apache Spark SQL
    • Apache Nifi vs Apache Spark
    • Apache Spark vs Apache Flink
    • Apache Storm vs Kafka
    • Artificial Intelligence vs Business Intelligence
    • Artificial Intelligence vs Human Intelligence
    • Al vs ML vs Deep Learning
    • SQL vs SQLite
    • Assembly Language vs Machine Language
    • AWS vs AZURE
    • AWS vs Azure vs Google Cloud
    • Big Data vs Data Mining
    • Big Data vs Data Science
    • Big Data vs Data Warehouse
    • Blu-Ray vs DVD
    • Business Intelligence vs Big Data
    • Business Intelligence vs Business Analytics
    • Business Intelligence vs Data analytics
    • Business Intelligence VS Data Mining
    • Business Intelligence vs Machine Learning
    • Business Process Re-Engineering vs CI
    • Cassandra vs Elasticsearch
    • Cassandra vs Redis
    • Cloud Computing Public vs Private
    • Cloud Computing vs Fog Computing
    • Cloud Computing vs Grid Computing
    • Cloud Computing vs Hadoop
    • Computer Network vs Data Communication
    • Computer Science vs Data Science
    • Computer Scientist vs Data Scientist
    • Customer Analytics vs Web Analytics
    • Data Analyst vs Data Scientist
    • Data Analytics vs Business Analytics
    • Data Analytics vs Data Analysis
    • Data Analytics Vs Predictive Analytics
    • Data Lake vs Data Warehouse
    • Data Mining Vs Data Visualization
    • Data mining vs Machine learning
    • Data Mining Vs Statistics
    • Data Mining vs Text Mining
    • Data Science vs Artificial Intelligence
    • Data science vs Business intelligence
    • Data Science Vs Data Engineering
    • Data Science vs Data Visualization
    • Data Science vs Software Engineering
    • Data Scientist vs Big Data
    • Data Scientist vs Business Analyst
    • Data Scientist vs Data Engineer
    • Data Scientist vs Data Mining
    • Data Scientist vs Machine Learning
    • Data Scientist vs Software Engineer
    • Data visualisation vs Data analytics
    • Data vs Information
    • Data Warehouse vs Data Mart
    • Data Warehouse vs Database
    • Data Warehouse vs Hadoop
    • Data Warehousing VS Data Mining
    • DBMS vs RDBMS
    • Deep Learning vs Machine learning
    • Digital Analytics vs Digital Marketing
    • Digital Ocean vs AWS
    • DOS vs Windows
    • ETL vs ELT
    • Small Data Vs Big Data
    • Apache Hadoop vs Apache Storm
    • Hadoop vs HBase
    • Between Data Science vs Web Development
    • Hadoop vs MapReduce
    • Hadoop Vs SQL
    • Google Analytics vs Mixpanel
    • Google Analytics Vs Piwik
    • Google Cloud vs AWS
    • Hadoop vs Apache Spark
    • Hadoop vs Cassandra
    • Hadoop vs Elasticsearch
    • Hadoop vs Hive
    • Hadoop vs MongoDB
    • HADOOP vs RDBMS
    • Hadoop vs Spark
    • Hadoop vs Splunk
    • Hadoop vs SQL Performance
    • Hadoop vs Teradata
    • HBase vs HDFS
    • Hive VS HUE
    • Hive vs Impala
    • JDBC vs ODBC
    • Kafka vs Kinesis
    • Kafka vs Spark
    • Cloud Computing vs Data Analytics
    • Data Mining Vs Data Analysis
    • Data Science vs Statistics
    • Big Data Vs Predictive Analytics
    • MapReduce vs Yarn
    • Hadoop vs Redshift
    • Looker vs Tableau
    • Machine Learning vs Artificial Intelligence
    • Machine Learning vs Neural Network
    • Machine Learning vs Predictive Analytics
    • Machine Learning vs Predictive Modelling
    • Machine Learning vs Statistics
    • MariaDB vs MySQL
    • Mathematica vs Matlab
    • Matlab vs Octave
    • MATLAB vs R
    • MongoDB vs Cassandra
    • MongoDB vs DynamoDB
    • MongoDB vs HBase
    • MongoDB vs Oracle
    • MongoDB vs Postgres
    • MongoDB vs PostgreSQL
    • MongoDB vs SQL
    • MongoDB vs SQL server
    • MS SQL vs MYSQL
    • MySQL vs MongoDB
    • MySQL vs MySQLi
    • MySQL vs NoSQL
    • MySQL vs SQL Server
    • MySQL vs SQLite
    • Neural Networks vs Deep Learning
    • PIG vs MapReduce
    • Pig vs Spark
    • PL SQL vs SQL
    • Power BI Dashboard vs Report
    • Power BI vs Excel
    • Power BI vs QlikView
    • Power BI vs SSRS
    • Power BI vs Tableau
    • Power BI vs Tableau vs Qlik
    • PowerShell vs Bash
    • PowerShell vs CMD
    • PowerShell vs Command Prompt
    • PowerShell vs Python
    • Predictive Analysis vs Forecasting
    • Predictive Analytics vs Data Mining
    • Predictive Analytics vs Data Science
    • Predictive Analytics vs Descriptive Analytics
    • Predictive Analytics vs Statistics
    • Predictive Modeling vs Predictive Analytics
    • Private Cloud vs Public Cloud
    • Regression vs ANOVA
    • Regression vs Classification
    • ROLAP vs MOLAP
    • ROLAP vs MOLAP vs HOLAP
    • Spark SQL vs Presto
    • Splunk vs Elastic Search
    • Splunk vs Nagios
    • Splunk vs Spark
    • Splunk vs Tableau
    • Spring Cloud vs Spring Boot
    • Spring vs Hibernate
    • Spring vs Spring Boot
    • Spring vs Struts
    • SQL Server vs PostgreSQL
    • Sqoop vs Flume
    • Statistics vs Machine learning
    • Supervised Learning vs Deep Learning
    • Supervised Learning vs Reinforcement Learning
    • Supervised Learning vs Unsupervised Learning
    • Tableau vs Domo
    • Tableau vs Microstrategy
    • Tableau vs Power BI vs QlikView
    • Tableau vs QlikView
    • Tableau vs Spotfire
    • Talend Vs Informatica PowerCenter
    • Talend vs Mulesoft
    • Talend vs Pentaho
    • Talend vs SSIS
    • TensorFlow vs Caffe
    • Tensorflow vs Pytorch
    • TensorFlow vs Spark
    • TeraData vs Oracle
    • Text Mining vs Natural Language Processing
    • Text Mining vs Text Analytics
    • Cloud Computing vs Virtualization
    • Unit Test vs Integration Test?
    • Universal analytics vs Google Analytics
    • Visual Analytics vs Tableau
    • R vs Python
    • R vs SPSS
    • Star Schema vs Snowflake Schema
    • DDL vs DML
    • R vs R Squared
    • ActiveMQ vs Kafka
    • TDM vs FDM
    • Linear Regression vs Logistic Regression
    • Slf4j vs Log4j
    • Redis vs Kafka
    • Travis vs Jenkins
    • Fact Table vs Dimension Table
    • OLTP vs OLAP
    • Openstack vs Virtualization
    • Cluster v/s Factor analysis
    • Informatica vs Datastage
    • CCBA vs CBAP
    • SPSS vs EXCEL
    • Excel vs Tableau
    • Cassandra vs MySQL
    • RabbitMQ vs Kafka
    • SAAS vs Cloud
    • RabbitMQ vs Redis
    • AMQP vs MQTT
    • Forward Chaining vs Backward Chaining
    • Google Data Studio vs Tableau
    • ActiveMQ vs RabbitMQ
    • Cloud vs Data Center
    • Cores vs Threads
    • Inner Join vs Outer Join
    • ZeroMQ vs Kafka
    • Mxnet vs TensorFlow
    • Redis vs Memcached
    • RDBMS vs NoSQL
    • AWS Direct Connect vs VPN
    • Cassandra vs Couchbase
    • Elegoo vs Arduino
    • Redis vs MongoDB
    • Chef vs Puppet
    • GSM vs GPRS
    • Keras vs TensorFlow vs PyTorch
    • Cloudflare vs CloudFront
    • Bitmap vs Vector
    • Left Join vs Right Join
    • IaaS vs PaaS
    • Blue Prism vs UiPath
    • GNSS vs GPS
    • Cloudflare vs Akamai
    • GCP vs AWS vs Azure
    • Arduino Mega vs Uno
    • Qualitative vs Quantitative Data
    • Arduino Micro vs Nano
    • PIC vs Arduino
    • PRTG vs Solarwinds
    • PostgreSQL vs SQLite
    • Metabase vs Tableau
    • Arduino Leonardo vs Uno
    • Arduino Due vs Mega
    • ETL Vs Database Testing
    • DBMS vs File System
    • CouchDB vs MongoDB
    • Arduino Nano vs Mini
    • IaaS vs PaaS vs SaaS
    • On-premise vs off-premise
    • Couchbase vs CouchDB
    • Tableau Dimension vs Measure
    • Cognos vs Tableau
    • Data vs Metadata
    • RethinkDB vs MongoDB
    • Cloudera vs Snowflake
    • HBase vs Cassandra
    • Business Analytics vs Business Intelligence
    • R Programming vs Python
    • MongoDB vs Hadoop
    • MySQL vs Oracle
    • OData vs GraphQL
    • Soft Computing vs Hard Computing
    • Binary Tree vs Binary Search Tree
    • Datadog vs CloudWatch
    • B tree vs Binary tree
    • Cloudera vs Hortonworks
    • DevSecOps vs DevOps
    • PostgreSQL Varchar vs Text
    • PostgreSQL Database vs schema
    • MapReduce vs spark
    • Hypervisor vs Docker
    • SciLab vs Octave
    • DocumentDB vs DynamoDB
    • PostgreSQL union vs union all
    • OrientDB vs Neo4j
    • Data visualization vs Business Intelligence
    • QlikView vs Qlik Sense
    • Neo4j vs MongoDB
    • Postgres Schema vs Database
    • Mxnet vs Pytorch
    • Naive Bayes vs Logistic Regression
    • Random Forest vs Decision Tree
    • Random Forest vs XGBoost
    • DynamoDB vs Cassandra
    • Looker vs Power BI
    • PostgreSQL vs RedShift
    • Presto vs Hive
    • Random forest vs Gradient boosting
    • Gradient boosting vs AdaBoost
    • Amazon rds vs Redshift
    • Bigquery vs Bigtable
    • Data Architect vs Data Engineer
    • DataSet vs DataTable
    • dataset vs dataframe
    • Dataset vs Database
    • New Relic vs Splunk
    • Data Architect and Management Designer
    • Data Engineer vs Data Analyst
    • Grafana vs Tableau
    • MySQL text vs Varchar
    • Relational Database vs Flat File
    • Datadog vs Prometheus
    • Neo4j vs Neptune
    • Data Mining vs Data warehousing
    • DocumentDB vs MongoDB
    • PostScript vs PCL
    • QRadar vs Splunk
    • Qlik Sense vs Tableau
    • DigitalOcean vs Google Cloud
    • PostgreSQL vs Elasticsearch
    • Redshift vs blueshift
    • Gitlab vs Azure DevOps

Related Courses

Online Data Science Course

Online Tableau Training

Azure Training Course

Hadoop Certification Course

Data Visualization Courses

All in One Data Science Course

Spark SQL vs Presto

By Priya PedamkarPriya Pedamkar

Spark SQL vs Presto

Differences Between to Spark SQL vs Presto

Presto in simple terms is ‘SQL Query Engine’, initially developed for Apache Hadoop. It’s an open source distributed SQL query engine designed for running interactive analytic queries against data sets of all sizes.

Spark SQL is a distributed in-memory computation engine with a SQL layer on top of structured and semi-structured data sets. Since its in-memory processing, the processing will be fast in Spark SQL.

Start Your Free Data Science Course

Hadoop, Data Science, Statistics & others

Head to Head Comparison Between Spark SQL and Presto (Infographics)

Below are the Top 7 comparison between Spark SQL and Presto:

All in One Data Science Bundle(360+ Courses, 50+ projects)
Python TutorialMachine LearningAWSArtificial Intelligence
TableauR ProgrammingPowerBIDeep Learning
Price
View Courses
360+ Online Courses | 50+ projects | 1500+ Hours | Verifiable Certificates | Lifetime Access
4.7 (85,992 ratings)

Spark SQL vs Presto

Key Differences Between Spark SQL and Presto

Below is the list, about the key difference between Presto and Spark SQL:

  • Apache Spark introduces a programming module for processing structured data called Spark SQL. Spark SQL includes an encoding abstraction called Data Frame which can act as distributed SQL query engine.
  • The motive behind the beginning of Presto was to enable interactive analytics and approaches to the speed of commercial data warehouses with the power to scale size of organizations matching Facebook.
  • Whereas Spark SQL is a component on top of Spark Core that introduces a new data abstraction called SchemaRDD (Resilient Distributed Datasets), it provides support for structured/semi-structured data.
  • Presto was designed as an alternative to tools that query HDFS data using MapReduce jobs such as Hive or Pig, but Presto is not limited to HDFS.
  • Spark SQL follows in-memory processing, that increases the processing speed. Spark is designed to process a wide range of workloads such as batch queries, iterative algorithms, interactive queries, streaming etc.
  • Presto is capable of executing the federative queries. Below is the example of Presto Federated Queries

Let us assume any RDBMS with table sample1

And HIVE with table sample2,

‘Testdb’ is the database in both hive and MYSQL. Using Presto we can evaluate data using in a single query once their connectors are configured correctly as shown below-

presto> <Function (select/Group by ..etc)> hive.Testdb.sample2

Function (select/Group by ..etc)>mysql.Testdb.sample1

  • Spark SQL architecture consists of Spark SQL, Schema RDD, and Data Frame
    • A Data Frame is a collection of data; the data is organized into named columns. Technically, it is same as relational database tables.
    • Schema RDD: Spark Core contains special data structure called RDD. Spark SQL works on schemas, tables, and records. Therefore, a user can use the Schema RDD as a temporary table. So that user can call this Schema RDD as Data Frame
  • Data Frame Capabilities: Data frame process the data in the size of Kilobytes to Petabytes on a single node cluster to multiple node clusters,
  • Data Frame supports different data formats ( CSV, elasticsearch, Cassandra etc) and storage systems (HDFS, HIVE tables, MySQL, etc), It can be integrated with all Big Data tools/frameworks via Spark-Core and provides API for languages such as Python, Java, Scala, and R Programming.
  • Whereas Presto is a distributed engine, works on a cluster setup. Presto architecture is simple to understand and extensible. Presto client (CLI) submits SQL statements to a master daemon coordinator which manages the processing.
  • Companies using Presto: Facebook, Netflix, Airbnd, Dropbox etc.
  • Apache Spark Use Cases can be found in Industries like Finance, Retail, Healthcare, and Travel etc. Many e-commerce websites like eBay, Alibaba, Pinterest are using Spark SQL to analyze hundreds of petabytes of data on its e-commerce platform.

Comparisons Table Spark SQL and Presto

Below is the topmost comparison between SQL and Presto.

 Basis of comparison between SQL vs Presto Presto Spark SQL
Eco-Systems / Platforms  Hadoop, Big Data Processing etc  Spark Framework, Big Data Processing etc
Purpose Presto is designed for running SQL queries over Big Data (Huge workloads).
It was designed by Facebook to process their huge workloads..
Spark SQL is one of the components of Apache Spark Core.
Spark Core is the fundamental execution engine for spark platform
Set up
  • Presto is a distributed SQL query engine for processing pet bytes of data and it runs on a cluster like set up with a set of machines.
  • A full Presto cluster setup includes a coordinator (Manager Node) and multiple workers. User submits the queries from a client which is the Presto CLI to the coordinator. The coordinator parses, analyzes, and plans the query execution and then it will distribute the query processing to the workers.
  • Spark SQL setup will be out of the box if you install and configure Apache Spark Cluster
  • Apache Spark is Hadoop’s sub-project.
  • Apaches Spark is a cluster based Big Data processing technology, designed for fast computation.
Capabilities/Features Presto allows data querying over many data sources; For example, Data might be residing in data stores: Hive, Cassandra, RDBMS, and some other proprietary data stores. Spark SQL gives flexibility in integration with other data sources using the data frames and JDBC connectors.
Support for Connectors Presto supports pluggable connectors. These connectors provide data sets for queries.

Below are several pre-existing connectors available in presto, while Presto provides the ability to connect with custom connectors, as well.
Below are some of the connectors it support

  • Hadoop/Hive
  • Cassandra
  • Teradata
  • PostgreSQL
  • Oracle etc

 

A Data Frame interface allows different Data Sources to work on Spark SQL.
Spark SQL includes a server mode with industry-standard JDBC and ODBC connectivity.
Federated Queries Presto supports the Federated Queries. Presto can be configured to connect with different DBs and once configured; its CLI can be used to launch ‘Federated Queries’.
In one Presto query user can combine data from multiple data sources and run the query.
Spark SQL comes with an inbuilt feature to connect with other databases using JDBC that is “JDBC to other Databases”, it aids in federation feature.
Spark creates the data frames using the JDBC: database feature by leveraging scala/python API, but it also works directly with Spark SQL Thrift server and allows users to query external JDBC tables effortlessly like other hive/spark tables.
Who Uses? Data Analysts, Data Engineers, Data Scientists etc Data Analysts, Data Engineers, Data Scientists, Spark Developer etc

Conclusions

Spark SQL and Presto, both are SQL distributed engines available in the market.

Presto is very helpful when it comes to BI-type queries, and Spark SQL leads performance-wise in large analytics queries. When comparing with respect to configuration, Presto set up easy than Spark SQL. Both Spark SQL and Presto are standing equally in a market and solving a different kind of business problems.

Recommended Articles

This has been a guide to Spark SQL vs Presto. Here we have discussed Spark SQL vs Presto head to head comparison, key differences, along with infographics and comparison table. You may also look at the following articles to learn more –

  1. Apache Spark vs Apache Flink – 8 useful Things You Need To Know
  2. Apache Hive vs Apache Spark SQL – 13 Amazing Differences
  3. Best 6 Comparisons Between Hadoop Vs SQL
  4. Hadoop vs Teradata -Valuable Differnces
Popular Course in this category
SQL Training Program (7 Courses, 8+ Projects)
  7 Online Courses |  8 Hands-on Projects |  73+ Hours |  Verifiable Certificate of Completion
4.5
Price

View Course

Related Courses

Data Scientist Training (85 Courses, 67+ Projects)4.9
Tableau Training (8 Courses, 8+ Projects)4.8
Azure Training (6 Courses, 5 Projects, 4 Quizzes)4.7
Hadoop Training Program (20 Courses, 14+ Projects, 4 Quizzes)4.7
Data Visualization Training (15 Courses, 5+ Projects)4.7
All in One Data Science Bundle (360+ Courses, 50+ projects)4.7
18 Shares
Share
Tweet
Share
Primary Sidebar
Footer
About Us
  • Blog
  • Who is EDUCBA?
  • Sign Up
  • Live Classes
  • Corporate Training
  • Certificate from Top Institutions
  • Contact Us
  • Verifiable Certificate
  • Reviews
  • Terms and Conditions
  • Privacy Policy
  •  
Apps
  • iPhone & iPad
  • Android
Resources
  • Free Courses
  • Database Management
  • Machine Learning
  • All Tutorials
Certification Courses
  • All Courses
  • Data Science Course - All in One Bundle
  • Machine Learning Course
  • Hadoop Certification Training
  • Cloud Computing Training Course
  • R Programming Course
  • AWS Training Course
  • SAS Training Course

ISO 10004:2018 & ISO 9001:2015 Certified

© 2022 - EDUCBA. ALL RIGHTS RESERVED. THE CERTIFICATION NAMES ARE THE TRADEMARKS OF THEIR RESPECTIVE OWNERS.

EDUCBA
Free Data Science Course

SPSS, Data visualization with Python, Matplotlib Library, Seaborn Package

*Please provide your correct email id. Login details for this Free course will be emailed to you

By signing up, you agree to our Terms of Use and Privacy Policy.

EDUCBA Login

Forgot Password?

By signing up, you agree to our Terms of Use and Privacy Policy.

EDUCBA
Free Data Science Course

Hadoop, Data Science, Statistics & others

*Please provide your correct email id. Login details for this Free course will be emailed to you

By signing up, you agree to our Terms of Use and Privacy Policy.

EDUCBA

*Please provide your correct email id. Login details for this Free course will be emailed to you

By signing up, you agree to our Terms of Use and Privacy Policy.

Let’s Get Started

By signing up, you agree to our Terms of Use and Privacy Policy.

This website or its third-party tools use cookies, which are necessary to its functioning and required to achieve the purposes illustrated in the cookie policy. By closing this banner, scrolling this page, clicking a link or continuing to browse otherwise, you agree to our Privacy Policy

Loading . . .
Quiz
Question:

Answer:

Quiz Result
Total QuestionsCorrect AnswersWrong AnswersPercentage

Explore 1000+ varieties of Mock tests View more