Skip to content

Spark SQL, Trino and DuckDB in one SQL editor.

Saved queries and SQL notebooks in team folders, each run on the engine you pick beside Run. Explain draws the plan as a graph, Profile describes every column of a result.

Three engines.
One editor.

Spark SQL and DuckDB come with every install, Trino with its module.

0:00 / 0:24
  1. Trino"ilum-hive".bank_gold.daily_spend
  2. Spark SQLbank_gold.daily_spend
  3. DuckDBhms.bank_gold.daily_spend

One query through Explain, Run and Profile

The November spend by merchant category code, a saved query of the Analytics folder, on Spark SQL. Press a clause to light the operators of the physical plan that carry it out, then open the rows it returned and the profile of each column.

The statementSpark SQL

WHERE txn_date txn_date is the partition column of card_transactions, so the condition picks folders before anything is read: 20 of the table’s 90 daily partitions.

AND status The condition goes down to the Parquet reader as a pushed filter, which can skip row groups whose statistics rule APPROVED out. Spark checks every row again in the Filter above the scan.

FROM Spark asks the Parquet files for three of the table’s 26 columns, mcc, status and amount_usd, and takes txn_date from the folder names. Parquet keeps each column apart, so the rest is never read.

JOIN The eleven codes are small enough to copy to every executor, so Spark broadcasts them and joins each transaction where it is read, without shuffling the transactions. The editor’s hint on their scan, no partition filters, does not apply here: the table has no partitions.

GROUP BY Grouping runs in two steps. Each executor counts and sums its own rows, the partial results are shuffled by group into 200 partitions, and a second HashAggregate merges them.

ORDER BY Sorting the whole result is a shuffle by ranges of volume_usd into 200 partitions and a sort of each range, so the partitions come out in order.

SELECT COUNT and SUM are worked out by the two HashAggregate steps of GROUP BY. Below them a Project keeps only the three columns still needed after the join.

Plan Insights14 operators11 tree depth3 exchanges2 aggregates7 columns read1 BroadcastHashJoin

  1. AdaptiveSparkPlanisFinalPlan=false
  2. Project[mcc, amount_usd]
  3. PartitionFilters [isnotnull(txn_date), (txn_date >= 2026-11-01)]

    Location 20 paths, txn_date=2026-11-01 … txn_date=2026-11-20

    PushedFilters [IsNotNull(status), EqualTo(status,APPROVED), IsNotNull(mcc)]

    ReadSchema struct<mcc:string,status:string,amount_usd:decimal(14,2)>

  4. Optimization hint No partition filters: merchant_category_codes

11 rows from Spark SQL, the largest volume first

mcc_groupdescriptionpaymentsvolume_usd
Transportation ServicesTravel Agencies and Tour Operators178,104202,858,169.38
Miscellaneous StoresElectronics Stores229,804118,196,182.51
Miscellaneous StoresFinancial Institutions - Automated Cash Disbursements475,18287,175,639.64
Miscellaneous StoresMiscellaneous and Specialty Retail Stores663,51685,516,829.33
Retail Outlet ServicesGrocery Stores, Supermarkets1,046,21277,357,985.81
Clothing StoresFamily Clothing Stores421,52461,071,464.61
Utility ServicesUtilities - Electric, Gas, Water, Sanitary184,54032,983,150.50
Miscellaneous StoresEating Places, Restaurants541,44630,655,552.90
Miscellaneous StoresDrug Stores and Pharmacies374,83123,873,974.41
Retail Outlet ServicesService Stations341,94523,648,325.42
Business ServicesMotion Picture Theaters241,66713,078,454.15

4 columns, 11 rows, Full, Avg: 100.0% complete

  • mcc_groupSTRING_TYPE100%~20 chars
  • descriptionSTRING_TYPE100%~30 chars
  • paymentsBIGINT_TYPE100%178,104 .. 1,046,212
  • volume_usdDECIMAL_TYPE100%13078454.15 .. 202858169.38

How the same statement reaches each engine, where the tables it reads are registered, and the rest of the console: how Ilum runs SQL on DuckDB, Trino and Spark SQL, tables and catalogs in Ilum and every screen of the console.

Saved queries and notebooks in team folders

The library keeps saved queries and notebooks together in folders, one for each team if you like. Search every folder at once, pin what you open daily and move items between folders.

0:00 / 0:24
Folders for every team

Key moments

  1. Notebooks and saved queries share one folder tree

    Data Engineering opens to its subfolder Pipelines, and a notebook kept there beside saved queries opens in a tab of its own.

  2. Filter the library to notebooks only

    Filter and sort keeps all items, only queries or only notebooks, and sorts them by name, by age or by last change.

  3. Search every folder, closest names first

    Typing card spend turns the tree into one list, each item with its folder under its name. Items are ranked by their Jaro-Winkler similarity to the search.

SQL notebooks: Markdown and SQL in one document

A notebook mixes Markdown cells, for what the numbers mean, with SQL cells. Each result lands under its cell, with the tabs of the editor: rows, chart, profile and statistics.

0:00 / 0:17
A weekly review as a notebook

Key moments

  1. Markdown cells say what the numbers mean

    Weekly fraud review opens from the Fraud folder on Spark. Its first cell defines high risk as a risk score of 50 or more, and a heading introduces each query.

  2. Run all statements sends every SQL cell at once

    Each SQL cell goes to the notebook’s engine and its rows land under it, the five channels of the week under the first.

  3. Every result stays under the query that made it

    Further down, the states with the most high-risk payments, the AML alerts of the week and the fraud model’s runs each keep their rows under their own heading.

EXPLAIN as a graph, with hints

Explain asks the engine for its plan and draws it as a graph of operators. On Spark SQL it sends EXPLAIN EXTENDED, so the graph holds every plan from parsed to physical.

0:00 / 0:24
The plan of a join

Key moments

  1. The physical plan of a join, with Plan Insights

    Plan Insights counts the 14 operators of the plan and its 3 exchanges, the columns read, the join types and the table scans.

  2. A hint that zooms to the operator it is about

    Optimization Hints flags the scan of merchant_category_codes, which has no partition filters, and Go to node zooms the graph to it.

  3. The pushed filters and partitions of a scan

    The scan of card_transactions, opened, shows its partition filter on txn_date, the pushed filters and the partitions it reads.

  4. What each planning stage changed

    Section Comparison lists what each stage changed: the physical plan made the join a BroadcastHashJoin and added 3 exchanges.

A profile of every column of a result

Profile describes each column of a result: its nulls, distinct values, range, quartiles and skew. A column’s histogram and top values load when you ask for them.

0:00 / 0:20
Nulls in a credit limit

Key moments

  1. A profile of the 1,000 rows fetched, in the browser

    A join of cards and their accounts runs on Spark SQL and the editor fetches its first 1,000 rows. Profile describes their 7 columns, marked Client.

  2. Full Profile covers the whole result

    Profiling SQL goes to the engine over all 1,200,000 rows of the result, and the header turns from Client to Full.

  3. Nulls, distinct values and top values of a column

    Only credit cards carry a credit limit, so credit_limit has 838,946 nulls and 6 distinct values. Load Top Values asks the engine for the commonest ones.

From a file in a bucket to a table

A data file in the File Explorer offers Create Table from File and Analyze with SQL. For a text file such as a CSV, one dialog charts it, profiles its columns, infers a schema and writes the SQL that loads it.

Where the new table is registered

0:00 / 0:39
A CSV becomes a Delta table

Key moments

  1. Chart a CSV in a bucket before it is a table

    Analyze with SQL opens merchant-category-codes.csv in a chart builder, and the codes are counted by mcc_group.

  2. Quartiles, skew and outliers of each column

    Data Profile gives each column of the file its unique values, nulls, quartiles, skewness and outliers by the IQR method.

  3. An inferred schema and the SQL that loads the file

    Create Table names the table, offers Delta Lake, Parquet or CSV and writes the SQL: a temporary view over the file, the table, the insert.

  4. Edit the generated SQL, then run it

    Open in SQL Editor saves the SQL as a query. Here the table goes to bank_bronze and mcc becomes a STRING before it runs.

Questions and answers

Which SQL engines does the Ilum SQL editor run?

Spark SQL, Trino and DuckDB, chosen per query beside Run. Spark SQL and DuckDB are there after a default install, Trino once its module is enabled. A notebook runs its SQL cells on the engine picked in its own toolbar.

What does EXPLAIN show in the Ilum SQL editor?

The plan the engine returns, drawn as a graph you can switch to text. On Spark SQL the editor runs EXPLAIN EXTENDED, so the graph has the parsed, analyzed, optimized and physical plans, and Section Comparison lists what changed between them. DuckDB returns its plan as JSON. Plan Insights and Optimization Hints read the physical plan.

Which optimization hints does the plan view give?

A table scanned more than once, a scan without partition filters, data filters that were not pushed down to the storage, more than five shuffles, a sort-merge join that a broadcast hint could replace, a cartesian product, a scan of more than ten columns and a plan deeper than twenty operators. Each hint says what it found and what to try, and Go to node zooms the graph to the operator.

How does column profiling work on a large result?

The editor fetches the first 1,000 rows by default and profiles those in the browser, marked Client. When the result had more rows, Full Profile sends profiling SQL to the engine, twenty columns per statement, over the whole result, and marks the profile Full. Histograms and top values are further queries, run when you ask for them.

Can I create a table from a CSV file in Ilum?

Yes. In the File Explorer, Create Table from File reads the file, infers its columns and writes Spark SQL that stages the file as a temporary view, creates the table in Delta Lake, Parquet or CSV and loads it. The SQL opens in the editor, where you can change the database or the types before you run it.

Contact

Tell us about your cluster.

Name one workload you want to move.

Tell us where it runs today.

We answer with a plan, not a deck.

[email protected]

We reply within two working days.