{
 "schema_version": 1,
 "generated": "2026-11-01",
 "id": "dlt-hub-dlt--read-and-transform-loaded-data-with-the-dlt-dataset-api",
 "repo": "dlt-hub/dlt",
 "repo_url": "https://github.com/dlt-hub/dlt",
 "repo_slug": "dlt-hub-dlt",
 "title": "Query what you loaded without writing SQL",
 "page_title": "How to query what you loaded without writing SQL with DLT",
 "summary": "Reattach to a pipeline by name and compose transformations as Ibis expressions that compile to SQL.",
 "who": "An analyst who wants to work in Python on data already loaded.",
 "problem": "Switching to the warehouse console breaks the workflow.",
 "outcome": "Aggregated results computed in the destination, returned to Python.",
 "steps": [
  "Install the library with `pip install dlt`",
  "Reconnect with DLT.attach, passing pipeline_name, destination and dataset_name",
  "List tables with dataset.tables and pull one as a lazy relation, then call .df(), .arrow() or .to_ibis()",
  "Compose group_by and aggregate on the Ibis expression and call .to_pyarrow(), which compiles to SQL and runs on the destination"
 ],
 "agent_prompt": "Using dlt-hub/dlt, attach to <my pipeline>, aggregate <my table> by one column with Ibis and bring the result back as an Arrow table.",
 "agents": [
  "claude-code",
  "codex",
  "cursor",
  "gemini-cli"
 ],
 "difficulty": "Intermediate",
 "time": "45 minutes",
 "basis": "readme",
 "caveat": "Nothing runs until you ask for the result, so time the final call, not the expression.",
 "category": "Data and analytics",
 "tags": [
  "Data and analytics"
 ],
 "lang": "",
 "requirements": [
  "Python 3.10 through 3.14, with 3.14 support described as experimental",
  "`pip install dlt` plus the extras for your sources and destinations",
  "Credentials for your destination in secrets.toml or environment variables"
 ],
 "risk": "none",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [],
 "best": false,
 "score": 0.8,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/dlt-hub-dlt/read-and-transform-loaded-data-with-the-dlt-dataset-api/",
 "md": "https://dedupedai.com/use-cases/dlt-hub-dlt/read-and-transform-loaded-data-with-the-dlt-dataset-api/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/dlt-hub-dlt--read-and-transform-loaded-data-with-the-dlt-dataset-api.json",
 "api_version": "v1"
}
