Skip to main content

SQL feature lineage extraction and unified vector SQL planning

Project description

feature-sql-tool

Current implementation of feature-sql-tool focused on:

  • recursive column resolution through CTEs and scope aliases
  • computed-vs-passthrough alias classification
  • intermediate feature extraction
  • filter_only_intermediate_features classification through graph reachability
  • multi-feature unified graph building
  • safe SQL optimization by merging features with identical logical query shape

Current scope

This package is a practical implementation scaffold with working core logic for:

  • scope parsing
  • recursive lineage for one feature
  • filter_only classification
  • safe grouping of multiple feature queries into shared aggregate CTEs when their WITH/FROM/JOIN/WHERE/GROUP/HAVING/QUALIFY signatures are identical

Notes

The optimizer intentionally uses safe reuse only. It merges features only when their normalized query shape matches exactly.

Optimized reusable-stage SQL builder (2.0.0)

Use FeatureSqlTool.build_optimized_unified_sql(features) to build unified SQL with reusable base and aggregate CTE stages when possible.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

feature_sql_tool-2.6.2.tar.gz (43.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

feature_sql_tool-2.6.2-py3-none-any.whl (54.8 kB view details)

Uploaded Python 3

File details

Details for the file feature_sql_tool-2.6.2.tar.gz.

File metadata

  • Download URL: feature_sql_tool-2.6.2.tar.gz
  • Upload date:
  • Size: 43.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.6

File hashes

Hashes for feature_sql_tool-2.6.2.tar.gz
Algorithm Hash digest
SHA256 0617f46026fa260f32b9e0535335d2634e0a0b0b9d54230378e4baec05735ffb
MD5 a1eb57570734dc47660ba6eb4ec8bbbd
BLAKE2b-256 01c0779107f81a018e12e766b64676fcbf8eec43069e4e5119aaadc20ddf9688

See more details on using hashes here.

File details

Details for the file feature_sql_tool-2.6.2-py3-none-any.whl.

File metadata

File hashes

Hashes for feature_sql_tool-2.6.2-py3-none-any.whl
Algorithm Hash digest
SHA256 91d6a6c0acf217ee66688d5cf5fa1855842ffd168a103eb4f59f210e3207013b
MD5 0d1e0b7d80a911cbedafc144aa1c34e4
BLAKE2b-256 138f8260795f63b91df00b074eee7360faff059b16c7fb04e7e4187d95a2f5b1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page