Top 14 Apache Presto Interview Questions You Must Prepare 08.Dec.2023

MYSQL Connector is used to query an external MySQL database.

Presto verifier is used to test Presto against another database (such as MySQL).

Presto is a distributed SQL query engine. It is an open source software project to develop a database.

There are various Presto applications:

  • Facebook
  • Teradata
  • Airbnb

Presto architecture components are given below:

  • Client : Clint submits SQL statements to a coordinator to get the result.
  • Coordinator: It parses the SQL queries.
  • Connector : Storage plugin is called as connectors.
  • Worker : It assigns task to worker nodes.

The logs files of the Presto server are given below:

  • Launcher.log
  • Server.log
  • http-request.log

We can create table by using command:

presto:tutorials> create table mysql.tutorials.sample as   

select * from;  

We should use Presto because of its features:

  • It supports standard ANSI SQL.
  • It is built in Java.
  • It has connector architecture that is Hadoop.
  • It runs on multiple Hadoop distributions.

In Presto, there are various data types in Presto.

  • Varchar
  • Bigint
  • Double
  • Decimal
  • Json etc.

There are various functions of Presto that are given below:


Abs(x):It returns the absolute value of X.

Cbrt(x):It returns the cube root of x.

Ceiling(x):It returns the x value rounded up to nearest integer.

Ceil(x):Arial for ceiling(x)

Log2(x):It returns the base 2 logarithm of x.

JMX stands for Java Management Extension. It gives information about the java virtual machine and software running inside JVM.

The Config properties of Presto are given below table:

Config Properties----->Description

task. info -refresh-max-wait:It reduces coordinator work load.

task.max-worker-threads:It splits the process and assigns to each worker nodes.

distributed-joins-enabled:It is Hashed based distributed joins. sets network topology to scheduler.

The default port of Presto is 8080.

There are following features of Presto:

  • It is simple to use.
  • It provides pluggable connectors.
  • It provides pipelined executions.
  • It provides user define functions.