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.4.2.tar.gz (38.5 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.4.2-py3-none-any.whl (51.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: feature_sql_tool-2.4.2.tar.gz
  • Upload date:
  • Size: 38.5 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.4.2.tar.gz
Algorithm Hash digest
SHA256 4348e08bdf4af3d07f31409f85184bdd687a6aec8be406605dae00cd9f38fd1f
MD5 b63cab8b2f274cdb06d4c0f574c48370
BLAKE2b-256 0794298a6625d5ad97b3124e2f329641f695901d0355bb6e7adc832b650bb513

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for feature_sql_tool-2.4.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c4ffe0dbfc075d398181d0655dc2d468ee9be9e952ceea8340feebdf79db1773
MD5 c599026bd96bdf616403fc446a0289e2
BLAKE2b-256 fd01e1a4eda79b3744ef3bb5c3d41cbb8cdb9ea608ca3ef2fd55c5ae9e10632c

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