A Lakehouse combines the low-cost, flexible storage of a data lake with the structured,
SQL-friendly capabilities of a data warehouse. Parquet is the open columnar file format that
makes this practical, and DuckDB is the lightweight analytical engine that makes querying
Parquet files fast and simple. This guide covers Parquet format, columnar storage, DuckDB SQL,
partitioning, schema evolution, and the 18 interview questions that actually come up.
🎯 Key Takeaways
Lakehouse combines data lake storage with warehouse-style SQL
Parquet is a columnar, compressed, schema-aware file format
DuckDB queries Parquet files directly with SQL
Partitioning improves query performance by skipping files
Schema evolution lets data structures change over time
18 Interview QuestionsBeginner to AdvancedParquet, DuckDB, Lakehouse, Data EngineeringUpdated Dec 3, 2026
KW
Kailas Warade
✓ Verified Author
Data Engineer · Oracle Certified · SQL & PL/SQL
Kailas works with SQL, PL/SQL, Python, and PySpark to build data pipelines.
He writes the SQL interview guides at Sankalan Data Tech, focused on
practical, real-world answers.
🏆 Oracle Certified💼 Data Engineer📝 SQL & PL/SQL Guides📍 Pune, India
A Lakehouse is a modern data architecture that combines the low-cost, flexible storage of a
data lake with the structured, SQL-friendly capabilities of a data warehouse.
In a traditional data lake, data is stored in raw files such as CSV, JSON, or Parquet on
cloud object storage. In a traditional data warehouse, data is stored in a structured,
SQL-friendly system. A Lakehouse brings these two worlds together.
The key idea is that data stays in open file formats like Parquet on cloud storage, but is
still queryable using SQL, supports schema management, and can handle transactions through
table formats like Delta Lake, Apache Iceberg, or Apache Hudi.
This makes the Lakehouse popular for modern data engineering because it reduces the need to
copy data between systems just to make it queryable.
Parquet Format and Columnar Storage
Parquet is a columnar storage file format designed for analytical workloads. Instead of
storing data row by row, it stores data column by column.
This matters because analytical queries often read only a few columns from a large dataset.
For example, a query that calculates average salary only needs the salary column, not the
entire row.
Parquet also supports compression, encoding, and schema information stored with the data.
This makes it efficient for both storage and query performance.
💡 Why Parquet Matters
Columnar layout reduces data read for analytical queries
Built-in compression reduces storage cost
Schema is stored with the data
Works well with Spark, DuckDB, Trino, and cloud warehouses
DuckDB and Direct File Querying
DuckDB is an in-process analytical database designed for fast SQL queries on local files
such as Parquet, CSV, and JSON. It runs embedded, without needing a separate database
server.
This makes DuckDB popular for local analytics, prototyping, and data engineering tasks
where you want SQL power without standing up a full warehouse.
-- Query a Parquet file directly in DuckDB
SELECT *
FROM read_parquet('sales.parquet');
DuckDB can query a single Parquet file, a folder of Parquet files, or files in cloud
storage. It uses standard SQL, so most queries look familiar if you already know SQL.
Partitioning organizes data into folders based on column values, such as year, month, or
country. This allows queries to skip irrelevant files and read only the required partitions.
When you query only 2026 data, DuckDB can skip the 2025 folders entirely. This is called
partition pruning, and it is one of the biggest performance wins in a Lakehouse.
-- Query only 2026 data
SELECT *
FROM read_parquet('sales/**/*.parquet', hive_partitioning=true)
WHERE year = 2026;
Good partitioning depends on how data is queried. Common choices are date, country, region,
or customer segment.
Schema Evolution
Schema evolution is the ability to add, remove, or change columns over time without breaking
existing data files. Parquet supports this through self-describing schemas stored with the
data.
-- Original schema
id, name, salary
-- After schema evolution
id, name, salary, department
In a Lakehouse, schema evolution is important because data changes over time. New columns
get added, old columns get removed, and data types may change.
Table formats like Delta Lake, Iceberg, and Hudi build on Parquet and add stronger schema
evolution guarantees, versioning, and transactional support.
18 Lakehouse SQL Interview Questions and Answers
These are the Lakehouse, Parquet, and DuckDB questions that come up most often in data
engineering interviews. Every answer stands on its own — read them in any order, or work
through them in sequence to build a complete understanding of Lakehouse SQL, Parquet files,
and DuckDB.
/
🔍
No matching questions found
Try a keyword like Parquet, DuckDB, Lakehouse, or partitioning.
A Lakehouse is a data architecture that combines the low-cost, flexible storage of a
data lake with the structured, SQL-friendly capabilities of a data warehouse.
Data Lake + Warehouse capabilities = Lakehouse
In a Lakehouse, data is typically stored in open file formats like Parquet on cloud
object storage, but is still queryable using SQL and supports schema management and
transactions through table formats like Delta Lake, Iceberg, or Hudi.
This reduces the need to copy data between systems just to make it queryable.
Parquet is a columnar storage file format designed for analytical workloads. It stores
data by columns rather than rows.
This makes Parquet efficient for queries that read only a few columns from a large
dataset. It also supports compression and schema information stored with the data.
Parquet is widely used in modern data engineering because it works well with Spark,
DuckDB, Trino, and cloud warehouses.
Parquet is preferred because it is columnar, compressed, schema-aware, and efficient
for analytical queries.
Aspect
Parquet
CSV
Storage layout
Columnar
Row-based
Compression
Built-in
Usually external
Schema
Stored with data
Often inferred
Analytical query performance
High
Lower
CSV is simple and human-readable, but it stores everything as text and usually
requires more storage and processing for large analytical workloads.
DuckDB is an in-process analytical database designed for fast SQL queries on local
files such as Parquet, CSV, and JSON.
-- Install DuckDB
pip install duckdb
-- Query a Parquet file
SELECT *
FROM read_parquet('sales.parquet');
DuckDB runs embedded, without needing a separate database server. This makes it
popular for local analytics, prototyping, and data engineering tasks.
It is often called the SQLite of analytics because of its lightweight, embedded
design.
You can query a Parquet file directly using read_parquet().
SELECT *
FROM read_parquet('sales.parquet');
You can also query a folder of Parquet files using a wildcard.
SELECT *
FROM read_parquet('sales/**/*.parquet');
DuckDB reads the Parquet metadata and schema automatically, so you do not need to
define the table structure manually.
Columnar storage stores data by columns rather than rows. This is efficient for
analytical queries that read only a few columns from a large dataset.
For example, a query that calculates average salary only needs the salary column, not
the entire row. This reduces I/O and improves query performance.
Partitioning organizes data into folders based on column values, such as year, month,
or country. This allows queries to skip irrelevant files and read only the required
partitions.
When you query only 2026 data, DuckDB can skip the 2025 folders entirely. This is
called partition pruning.
Good partitioning depends on how data is queried. Common choices are date, country,
region, or customer segment.
Schema evolution is the ability to add, remove, or change columns over time without
breaking existing data files.
-- Original schema
id, name, salary
-- After schema evolution
id, name, salary, department
Parquet supports this through self-describing schemas stored with the data. Table
formats like Delta Lake, Iceberg, and Hudi build on Parquet and add stronger schema
evolution guarantees.
A data lake stores raw data in flexible formats. A Lakehouse adds table formats,
schema management, ACID transactions, and SQL-friendly querying on top of lake
storage.
Aspect
Data Lake
Lakehouse
Storage
Raw files
Open file formats + table formats
Schema
Often inferred
Managed and versioned
Transactions
Usually not supported
Supported via table formats
SQL querying
Limited
Full SQL support
The Lakehouse is essentially a data lake with warehouse-like capabilities added on
top.
Yes. DuckDB can query Parquet files directly from cloud object storage such as Amazon
S3, Azure Blob Storage, and Google Cloud Storage.
-- Example: query Parquet from S3
SELECT *
FROM read_parquet('s3://bucket/path/sales.parquet');
This requires appropriate extensions and credentials. DuckDB handles the reading and
querying directly, without needing to download the file first.
Predicate pushdown means the query engine filters data early using metadata such as
min and max values in Parquet row groups.
-- Query with a filter
SELECT *
FROM read_parquet('sales.parquet')
WHERE amount > 1000;
If a row group's max amount is below 1000, DuckDB can skip that entire row group
without reading it. This reduces the amount of data read from disk.
Both Parquet and ORC are columnar file formats. Parquet is more common in the modern
Lakehouse ecosystem, while ORC is often associated with Hive and some Hadoop-based
systems.
Aspect
Parquet
ORC
Ecosystem
Modern Lakehouse, Spark, DuckDB
Hive, Hadoop
Compression
Good
Good
Adoption
Higher in modern stacks
Higher in legacy Hadoop stacks
Both are solid choices, but Parquet has become the default in most modern data
engineering stacks.
You can write a Parquet file using the COPY statement in DuckDB.
COPY (SELECT * FROM employees)
TO 'employees.parquet'
(FORMAT PARQUET);
This writes the result of the query to a Parquet file. DuckDB handles compression and
encoding automatically.
DuckDB is designed to handle large files efficiently through columnar reading,
predicate pushdown, and parallel execution.
-- Query with a filter to reduce data read
SELECT COUNT(*)
FROM read_parquet('large_file.parquet')
WHERE year = 2026;
For very large datasets, partitioning the files by a common filter column (like year
or month) improves performance further.
Parquet is columnar and optimized for analytical reads. Avro is row-based and
optimized for write-heavy, schema-evolution-heavy workloads like streaming.
Aspect
Parquet
Avro
Storage layout
Columnar
Row-based
Best for
Analytical reads
Streaming, write-heavy
Schema evolution
Good
Strong
Use Parquet for analytics and reporting. Use Avro for streaming and event-driven
pipelines.
A table format is a layer on top of Parquet files that adds table-like capabilities
such as schema management, versioning, transactions, and time travel.
-- Example: Delta Lake table
CREATE TABLE sales (
id INT,
amount DECIMAL
) USING DELTA;
Common table formats include Delta Lake, Apache Iceberg, and Apache Hudi. They make
Parquet files behave more like database tables.
DuckDB handles joins on Parquet files just like any other SQL join, using standard
SQL syntax.
SELECT e.employee_name, d.department_name
FROM read_parquet('employees.parquet') e
INNER JOIN read_parquet('departments.parquet') d
ON e.department_id = d.department_id;
DuckDB optimizes these joins using its query engine, and columnar storage helps
because only the required columns are read.
For a detailed explanation of joins, see the
SQL JOINs guide.
Use a Lakehouse when you need to store large volumes of raw and structured data in
open formats, support both batch and streaming workloads, and avoid the cost and
rigidity of a traditional warehouse.
-- Lakehouse pattern
Raw data (Parquet) → Table format (Delta/Iceberg) → SQL queries (DuckDB/Trino)
Use a traditional warehouse when you need strong governance, mature BI tooling, and
predictable performance for structured, curated data.
The Lakehouse is best when flexibility, cost, and open formats matter more than
warehouse-grade governance.
Mistakes I Keep Seeing in Interviews
These come up repeatedly. None of them are exotic, and every one of them is easy to avoid
once you know it is coming.
Mistake one: confusing a data lake with a Lakehouse. A data lake stores raw
files; a Lakehouse adds table formats, schema management, and SQL querying on top.
Mistake two: assuming Parquet is always faster than CSV. Parquet is faster
for analytical reads, but CSV may still be fine for small, simple, human-readable files.
Mistake three: not understanding partitioning. Candidates often know what
Parquet is but cannot explain how partitioning improves query performance.
Mistake four: assuming DuckDB is a replacement for a full data warehouse.
DuckDB is great for local analytics and prototyping, but it is not a distributed warehouse.
Mistake five: ignoring schema evolution. Data changes over time, and not
planning for it causes broken pipelines.
Mistake six: confusing Parquet with a table format. Parquet is a file
format; Delta Lake, Iceberg, and Hudi are table formats built on top of Parquet.
Follow-Up Questions Interviewers Ask
Getting the first answer right is only half the interview. What usually decides the
outcome is what happens next. Here is what to prepare for on the Lakehouse, Parquet, and
DuckDB topics.
After “What is a Lakehouse?” — expect
“How does it differ from a data lake?”
“What table formats are used?”
“When would you choose a Lakehouse over a warehouse?”
“What are the trade-offs?”
After “What is Parquet?” — expect
“Why is it columnar?”
“How does compression work?”
“What is predicate pushdown?”
“How does it compare to ORC and Avro?”
After “DuckDB” — expect
“How do you query Parquet files?”
“Can it query cloud storage?”
“How does it handle large files?”
“When would you not use DuckDB?”
After “Partitioning” — expect
“What columns make good partition keys?”
“What is partition pruning?”
“How does partitioning affect cost?”
“What happens with too many partitions?”
For every question above, prepare a second-level answer. The candidates who pass are not
the ones who memorized the first answer — they are the ones who kept going for another
thirty seconds and said something useful about why it matters.
Quick Quiz
Three questions to check whether the topics above have landed.
1. What storage layout does Parquet use?
2. Which DuckDB function is used to read a Parquet file?
3. What is the main benefit of partitioning in a Lakehouse?