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_featuresclassification 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_onlyclassification- safe grouping of multiple feature queries into shared aggregate CTEs when their
WITH/FROM/JOIN/WHERE/GROUP/HAVING/QUALIFYsignatures 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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file feature_sql_tool-2.6.0.tar.gz.
File metadata
- Download URL: feature_sql_tool-2.6.0.tar.gz
- Upload date:
- Size: 41.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5627b4fbc419e8718c5e9d7a36915cfcb8a9005c2898c4b2c673caa1a9649c7c
|
|
| MD5 |
c10c1d1929717f7e880e434668f2d722
|
|
| BLAKE2b-256 |
7afedd95f103f05781038c54d044a4e23a767461fdacda212156e8ab0ba00fed
|
File details
Details for the file feature_sql_tool-2.6.0-py3-none-any.whl.
File metadata
- Download URL: feature_sql_tool-2.6.0-py3-none-any.whl
- Upload date:
- Size: 54.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b683078fe3ba8faba9ea881847db0c7a8cde40195d333d95d561d858ea141a26
|
|
| MD5 |
03dea152cc4bbcccd4ad279adf86e6aa
|
|
| BLAKE2b-256 |
346c349ac7838477c9ad89e77d3b7b9c1f60d6193d6809d13abcb2d9071d0909
|