Skip to content
This repository has been archived by the owner on Sep 17, 2024. It is now read-only.
/ narwhals-tpch Public archive

TPC-H queries written in a Narwhals-friendly way

Notifications You must be signed in to change notification settings

narwhals-dev/narwhals-tpch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Narwhals TPC-H queries

Utilities for running the TPC-H queries via Narwhals.

Here's an (opinionated) guide to how to get setup:

Environment setup:

  • install uv
  • install Python3.12: uv python install 3.12
  • create a virtual environment: uv venv -p 3.12 --seed
  • activate it as per instructions shown on the terminal
  • install requirements: uv pip install -r requirements.txt

Generate data

Run python generate_data.py.

Run queries

To run Q1, you can run python -m execute.q1.

Please add query definitions in queries, and scripts to execute them in execute (see queries/q1.py and execute/q1.py for examples).

About

TPC-H queries written in a Narwhals-friendly way

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages