sql-code-graph 1.34.1__py3-none-any.whl → 1.34.3__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {sql_code_graph-1.34.1.dist-info → sql_code_graph-1.34.3.dist-info}/METADATA +1 -1
- {sql_code_graph-1.34.1.dist-info → sql_code_graph-1.34.3.dist-info}/RECORD +7 -7
- sqlcg/__init__.py +1 -1
- sqlcg/indexer/indexer.py +14 -0
- sqlcg/parsers/base.py +2 -1
- {sql_code_graph-1.34.1.dist-info → sql_code_graph-1.34.3.dist-info}/WHEEL +0 -0
- {sql_code_graph-1.34.1.dist-info → sql_code_graph-1.34.3.dist-info}/entry_points.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: sql-code-graph
|
|
3
|
-
Version: 1.34.
|
|
3
|
+
Version: 1.34.3
|
|
4
4
|
Summary: SQL code graph analyzer and lineage tracer
|
|
5
5
|
Project-URL: Homepage, https://github.com/Warhorze/sql-code-graph
|
|
6
6
|
Project-URL: Repository, https://github.com/Warhorze/sql-code-graph
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
sqlcg/__init__.py,sha256=
|
|
1
|
+
sqlcg/__init__.py,sha256=rQsWa6I-2VM8CvG89ZxmHPH-4x9R0fhD8py7UiimDNs,116
|
|
2
2
|
sqlcg/__main__.py,sha256=1YoFLcqEgTwYq1J3TbUwpkdG0zeeLIf2fJvwWI-CLFU,109
|
|
3
3
|
sqlcg/cli/__init__.py,sha256=W8fD0LpMq2xm_5WKGNMvJh2WBL1ho5E8hUeAqXQYT1g,28
|
|
4
4
|
sqlcg/cli/coverage.py,sha256=Xm9ITzZDHv2mJ70Q5jCacVuhDStVrE3gq12_-Ypvtd8,43823
|
|
@@ -33,7 +33,7 @@ sqlcg/indexer/__init__.py,sha256=Wh20Unz2OHs1oIyWLrpurPAasF0BET2g4iXtNk7mh2U,56
|
|
|
33
33
|
sqlcg/indexer/dbt_adapter.py,sha256=EB5x1WU5Z9d-I97ADDj88S_hG1C4z4nbrv8JUCzXfy8,686
|
|
34
34
|
sqlcg/indexer/error_classify.py,sha256=-sp8cRmuOBHu_CxnCtaXf34YxHFYwIFNjIrn4LaEv6M,7142
|
|
35
35
|
sqlcg/indexer/git_delta.py,sha256=zYdH5q-jV7w_ne8Oxdywsy0N3rwUjpd5RjEDurlrMSA,5026
|
|
36
|
-
sqlcg/indexer/indexer.py,sha256=
|
|
36
|
+
sqlcg/indexer/indexer.py,sha256=u6fIhgLfBs9fKJoAyO4hJrm9152YMe08EHycncctQx8,102697
|
|
37
37
|
sqlcg/indexer/pool.py,sha256=iMmCQtpDRKBTQBep2_EUq9THcsE18Zgk0hdaFB_CwiA,19006
|
|
38
38
|
sqlcg/indexer/walker.py,sha256=Cft6JiJtdBFy0HR6L9pJdr5Fg0eRR3XBW1OMtM2apto,1947
|
|
39
39
|
sqlcg/indexer/watcher.py,sha256=mJQq1LASRLKKwhz0WhCUWPLLqyPR2_-FD_8efYU6gE8,8442
|
|
@@ -44,7 +44,7 @@ sqlcg/metrics/__init__.py,sha256=hLJ6wm4St8qqYwKh3o9QG7lcEt1BEYM31ccqO9tGpIg,133
|
|
|
44
44
|
sqlcg/metrics/store.py,sha256=KuDtxvyAgug9_KtiSCpvgKM2VZM7VSaI3D11uMLjJJk,10604
|
|
45
45
|
sqlcg/parsers/__init__.py,sha256=AamA8wBbDZV9_zEtZCI4Hyen5UAVKHmBwjTghTt2PZE,785
|
|
46
46
|
sqlcg/parsers/ansi_parser.py,sha256=Iayv93KDOs3qKrQlrPcpQRd4_K8dEsGHOaTY076e-GY,38032
|
|
47
|
-
sqlcg/parsers/base.py,sha256=
|
|
47
|
+
sqlcg/parsers/base.py,sha256=Q2X_qN7DmGFU2oA6Z9fcxyjpkeb6lOsia4BcwPvwNLo,97806
|
|
48
48
|
sqlcg/parsers/bigquery_parser.py,sha256=mOnWTfXB_Dp4JwFE1PVYOB6CDPf5nYE0Dea8kJCl9uQ,2827
|
|
49
49
|
sqlcg/parsers/postgres_parser.py,sha256=lYfUpQY6j4Qm7ndXBtXbgPoGzYqYddWt5YeFnWKdA6I,946
|
|
50
50
|
sqlcg/parsers/registry.py,sha256=LXy1F6rqQI6VdxpRvZg_tNpoEucW3mXZHYBMlMONbX4,1496
|
|
@@ -65,7 +65,7 @@ sqlcg/utils/__init__.py,sha256=--iqt5ThTXmT8Wz7da8hs3n0zDfYPl8P-z5OgRJ_77E,154
|
|
|
65
65
|
sqlcg/utils/hashing.py,sha256=H25-sYfxHKb3_IERFnHyAIYNiXN470Oqo5sJT_D3YOA,438
|
|
66
66
|
sqlcg/utils/ignore.py,sha256=6__DfiYgynI2b8nH52O2BzI1EZcZ_LRazhqEOJVGGcE,1955
|
|
67
67
|
sqlcg/utils/logging.py,sha256=u0fCmYsLj9o81vawm3xZTHaw68GQYVm7JxG-gP81u8A,840
|
|
68
|
-
sql_code_graph-1.34.
|
|
69
|
-
sql_code_graph-1.34.
|
|
70
|
-
sql_code_graph-1.34.
|
|
71
|
-
sql_code_graph-1.34.
|
|
68
|
+
sql_code_graph-1.34.3.dist-info/METADATA,sha256=v9KwyFFICF79HrcBi4rTSlyRJdVMw1U0R3rZCdMmwDk,17791
|
|
69
|
+
sql_code_graph-1.34.3.dist-info/WHEEL,sha256=mffPy8wBnZQn2VnJUU5jE99KsxaSfiyMHV9Yt0aLVxs,87
|
|
70
|
+
sql_code_graph-1.34.3.dist-info/entry_points.txt,sha256=Wfe49sVzV9p4eVFGo5RxcV-frr3HOP0yzzst8JBxQLQ,46
|
|
71
|
+
sql_code_graph-1.34.3.dist-info/RECORD,,
|
sqlcg/__init__.py
CHANGED
sqlcg/indexer/indexer.py
CHANGED
|
@@ -896,6 +896,20 @@ class Indexer:
|
|
|
896
896
|
if profile:
|
|
897
897
|
_t_catalog_end = time.perf_counter()
|
|
898
898
|
|
|
899
|
+
# Bug #4 (PR-4): re-run the star expansion AFTER the catalog is applied.
|
|
900
|
+
# The first pass at the top of this block expands STAR_SOURCE rows whose
|
|
901
|
+
# leaf table already had HAS_COLUMN rows (parsed DDL). A temp built as
|
|
902
|
+
# `CREATE TEMP t AS SELECT * FROM src` where `src` is catalogued ONLY via
|
|
903
|
+
# information_schema has NO columns at the first pass — its HAS_COLUMN rows
|
|
904
|
+
# arrive with the catalog above — so the temp (and any promote out of it)
|
|
905
|
+
# produced zero edges. The star-expansion SQL is idempotent
|
|
906
|
+
# (INSERT OR REPLACE) and chains both levels (src -> temp -> persisted) in a
|
|
907
|
+
# single pass once the leaf columns exist, so one extra invocation here is
|
|
908
|
+
# the full fix. Only re-run when the catalog actually added columns; a repo
|
|
909
|
+
# with no configured catalog pays nothing.
|
|
910
|
+
if catalog_result.get("columns_loaded", 0) > 0:
|
|
911
|
+
star_edges_expanded = self._expand_star_sources(db)
|
|
912
|
+
|
|
899
913
|
# Post-catalog: resolve JOIN_COL_RESOLVE markers against the full HAS_COLUMN
|
|
900
914
|
# catalog (Bug #5, PR-5 option b). MUST run after the catalog is applied so
|
|
901
915
|
# information_schema columns are present; the suppressed sqlglot mis-bind
|
sqlcg/parsers/base.py
CHANGED
|
@@ -591,7 +591,8 @@ class SqlParser(ABC):
|
|
|
591
591
|
case "PROCEDURE" | "FUNCTION":
|
|
592
592
|
return QueryKind.CREATE_PROC
|
|
593
593
|
case _:
|
|
594
|
-
|
|
594
|
+
# non-table CREATE (sequence/stage/file format/schema/index/etc.)
|
|
595
|
+
return QueryKind.OTHER
|
|
595
596
|
case exp.Merge():
|
|
596
597
|
return QueryKind.MERGE
|
|
597
598
|
case _:
|
|
File without changes
|
|
File without changes
|