A self-hostable CDN for databases. Spice provides a unified SQL query interface and portable runtime to locally materialize, accelerate, and query datasets across databases, data warehouses, and data lakes.
Queries that use e.g. extract(year), like some of those from TPCH (Q9) fail on SQLite accelerated datasets:
Query Error Unable to query arrow: ConnectionError Rusqlite("no such function: date_part in SELECT profit.nation, profit.o_year, sum(profit.amount) AS sum_profit FROM (SELECT nation.n_name AS nation, date_part('YEAR', orders.o_orderdate) AS o_year, ((lineitem.l_extendedprice * (CAST(1 AS DECIMAL(20,0)) - lineitem.l_discount)) - (partsupp.ps_supplycost * lineitem.l_quantity)) AS amount FROM part JOIN supplier ON true JOIN lineitem ON true JOIN partsupp ON true JOIN orders ON true JOIN nation ON true WHERE (((((((supplier.s_suppkey = lineitem.l_suppkey) AND (partsupp.ps_suppkey = lineitem.l_suppkey)) AND (partsupp.ps_partkey = lineitem.l_partkey)) AND (part.p_partkey = lineitem.l_partkey)) AND (orders.o_orderkey = lineitem.l_orderkey)) AND (supplier.s_nationkey = nation.n_nationkey)) AND part.p_name LIKE '%green%')) AS profit GROUP BY profit.nation, profit.o_year ORDER BY profit.nation ASC NULLS LAST, profit.o_year DESC NULLS FIRST at offset 108")
Queries that use e.g.
extract(year)
, like some of those from TPCH (Q9) fail on SQLite accelerated datasets: