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.5.0.tar.gz (41.1 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.5.0-py3-none-any.whl (53.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: feature_sql_tool-2.5.0.tar.gz
  • Upload date:
  • Size: 41.1 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.5.0.tar.gz
Algorithm Hash digest
SHA256 2c9a22fda8b0f0570b89cfc257c6c1066ef4b65734810186813f33b61acb0f1c
MD5 4696fd07f0b55a41cb2f66f50ca55ab1
BLAKE2b-256 b523cf040b77901d7cc2c0d0599c11de318938a65b36a7cbefa0712c29e830ff

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for feature_sql_tool-2.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a77d0d6c6ae2b55485318cad79270bb4634de7670c76ddcddf1279bd0570cfec
MD5 776b920fed35d1aa499795075ec24672
BLAKE2b-256 572467335b7c6d9eba9c2ab17614c2dc32a49fe12d243b22e3e216f26b40b565

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