-
Notifications
You must be signed in to change notification settings - Fork 3
fix(lineage): hint column-level needs existing table; pin jsp node-key tags (#154) #163
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1594,7 +1594,7 @@ fn cmd_lineage( | |
| } | ||
| graph::lineage::TableLookup::Missing => { | ||
| eprintln!( | ||
| "note: no table '{}' found — interpreting '{}' as a table reference", | ||
| "note: no table '{}' found — interpreting '{}' as a table reference (for column-level lineage, the table must exist)", | ||
|
Owner
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [suggestion] The new parenthetical Suggestion: Keep the original Missing note for the schema.table recovery. Add the column-level prerequisite only when the subsequent table-level resolve also fails (the |
||
| table_name, target | ||
| ); | ||
| (target, None) | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[suggestion] The new JSP cases only assert
split_type_prefix(key).is_some(). That does not pin the tagsjsp/jspsql.JspSqlDisplay (jspsql:file:line:hash) is one character away fromJavaSql(javasql:file:line); if theJspSqlarm were copy-pasted onto thejavasqlformat,split_type_prefixwould still succeed becausejavasqlis already inTYPE_TAG_PREFIXES, andjspsql:…CLI keys would again last-dot-split. That is the drift this follow-up is meant to lock.Suggestion: Assert the detected tag, e.g.
assert_eq!(split_type_prefix(&jsp_page).map(|(tag, _)| tag), Some("jsp"))andSome("jspsql")forJspSql, rather thanis_some().